[Flashcoders] Display Non-English Characters from XML?

2007-07-23 Thread Marc Hoffman
I am having trouble getting non-English 
characters to show up in Flash when they're read 
from an XML doc. For example, the French e with 
accent, as in resume (résumé). Here's what my xml 
doc looks like -- seems I'm doing something 
wrong, but I can't figure out what. By the way, 
I'm saving it as UTF-8. Can anyone give me an 
example of a non-English xml doc that gets 
displayed correctly in Flash using non-English 
characters? I need to create localized versions 
for French, Chinese (simple), Chinese 
(traditional), Korean, Japanese, and several other languages.


== XML =

?xml version=1.0 encoding=utf-8 xml:lang=fr?
questions

question
qText![CDATA[Quels sont les objectifs de cette formation ?]]/qText
qAnswers
qAns num=0![CDATA[a. M’aider à comprendre 
les règles et les politiques clés pour que je fasse les bons choix]]/qAns
qAns num=1![CDATA[b. Fournir des exemples 
concrets des domaines à risque]]/qAns
qAns num=2![CDATA[c. Renforcer l’idée que le 
respect des lois et politiques de Microsoft n’est pas négociable]]/qAns
qAns num=3![CDATA[d. M’aider à identifier 
les problèmes clés de conformité]]/qAns

qAns num=4![CDATA[e. Toutes les réponses ci-dessus]]/qAns
/qAnswers
qCorrect4/qCorrect
/question

/questions
==  end XML =

Thanks!

Marc Hoffman 
___

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

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


RE: [Flashcoders] AS2 Shared Fonts and dynamically created textFields

2007-07-23 Thread Michael Ypes
Hey Ivan,

Now your code is free :) Can you quickly confirm how you embedded the fonts at 
runtime without embedding the shared library at author time. I have done it 
based on something similar to yours but by someone else on flash coders. Is it 
because it is embedded into the external flash file which you are loading that 
it becomes available to the main movie. I hope this makes sense. Anyhow that is 
how I have got it to work but I don't know why it works as there is no 
documentation on this. I would really appreciate an insight to this just so 
that I can understand the logic behind it.

Cheers

M

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ivan Dembicki
Sent: 22 July 2007 22:03
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] AS2 Shared Fonts and dynamically created textFields

Hello,

Many materials about fonts sharing is here:
www.sharedfonts.com

PS:
Now SFM is free and sharedfonts.com domain is for sale.

Good luck!


2007/7/22, pedr browne [EMAIL PROTECTED]:
 Hello,

 I have a swf using a shared font. The font works fine in static or dynamic
 textFields created at author time, but does not work with dynamically
 created textFields. I am setting embedFonts = true. The dynamically created
 textfield's text property traces out the text I've set to it, but does not
 show the text.

 Can anyone help?

 Thanks

 --
 +44 (0) 788 0600 363 | +44 (0) 127 3208 079
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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



-- 
iv
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/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] Display Non-English Characters from XML?

2007-07-23 Thread Michael Ypes
Are you sure that the font supports é. If you are using unique font sets
then they may not be in the font set. An easy way to test is to just create
a static field in the flash file and cut and paste the text from the xml
into the textfield and see if the character displays.

What font are you using?

I do a lot of translation stuff and can send over an example file in French
if you need. Try the above first though.

Cheers

M

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Marc Hoffman
Sent: 23 July 2007 08:22
To: Flashcoders mailing list
Subject: [Flashcoders] Display Non-English Characters from XML?

I am having trouble getting non-English 
characters to show up in Flash when they're read 
from an XML doc. For example, the French e with 
accent, as in resume (résumé). Here's what my xml 
doc looks like -- seems I'm doing something 
wrong, but I can't figure out what. By the way, 
I'm saving it as UTF-8. Can anyone give me an 
example of a non-English xml doc that gets 
displayed correctly in Flash using non-English 
characters? I need to create localized versions 
for French, Chinese (simple), Chinese 
(traditional), Korean, Japanese, and several other languages.

== XML =

?xml version=1.0 encoding=utf-8 xml:lang=fr?
questions

question
qText![CDATA[Quels sont les objectifs de cette formation ?]]/qText
qAnswers
qAns num=0![CDATA[a. M’aider à comprendre 
les règles et les politiques clés pour que je fasse les bons choix]]/qAns
qAns num=1![CDATA[b. Fournir des exemples 
concrets des domaines à risque]]/qAns
qAns num=2![CDATA[c. Renforcer l’idée que le 
respect des lois et politiques de Microsoft n’est pas négociable]]/qAns
qAns num=3![CDATA[d. M’aider à identifier 
les problèmes clés de conformité]]/qAns
qAns num=4![CDATA[e. Toutes les réponses ci-dessus]]/qAns
/qAnswers
qCorrect4/qCorrect
/question

/questions
==  end XML =

Thanks!

Marc Hoffman 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/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] Never Mind :) [Was: Display Non-English Characters from XML?]

2007-07-23 Thread Marc Hoffman
Sheepishly, I must admit I forgot to embed the 
extended Latin I character set in my dynamic text 
field. As soon as I did that, of course, the 
accented characters were displayed. Honestly, 
I've had to do this enough times, I don't know why I forgot this time.


Marc

At 12:22 AM 7/23/2007, you wrote:
I am having trouble getting non-English 
characters to show up in Flash when they're read 
from an XML doc. For example, the French e with 
accent, as in resume (résumé). Here's what my 
xml doc looks like -- seems I'm doing something 
wrong, but I can't figure out what. By the way, 
I'm saving it as UTF-8. Can anyone give me an 
example of a non-English xml doc that gets 
displayed correctly in Flash using non-English 
characters? I need to create localized versions 
for French, Chinese (simple), Chinese 
(traditional), Korean, Japanese, and several other languages.


== XML =

?xml version=1.0 encoding=utf-8 xml:lang=fr?
questions

question
qText![CDATA[Quels sont les objectifs de cette formation ?]]/qText
qAnswers
qAns num=0![CDATA[a. M’aider à comprendre 
les règles et les politiques clés pour que je fasse les bons choix]]/qAns
qAns num=1![CDATA[b. Fournir des exemples 
concrets des domaines à risque]]/qAns
qAns num=2![CDATA[c. Renforcer l’idée que 
le respect des lois et politiques de Microsoft n’est pas négociable]]/qAns
qAns num=3![CDATA[d. M’aider à identifier 
les problèmes clés de conformité]]/qAns

qAns num=4![CDATA[e. Toutes les réponses ci-dessus]]/qAns
/qAnswers
qCorrect4/qCorrect
/question

/questions
==  end XML =

Thanks!

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

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



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

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


Re: [Flashcoders] How can you measure performance of your movie?

2007-07-23 Thread Earthling


Is there a program that records cpu/memory use as you run through a  
flash movie?


Any help appreciated


You could start by selecting 'Generate Size Report' in the 'Publish  
Settings'. This will give you a list of all the objects used in your  
Flash movie, though obviously it won't tell you how many are loaded  
at any particular time. But it is quantifiable.


There's also the Bandwidth Profiler / Streaming Graph, available from  
the 'View' menu when your project runs in the IDE. This will show you  
how quickly etc. your project is loading.


Hope this is a start.

Joolz




On 20 Jul 2007, at 17:54, Rick Schmitty wrote:


I've been tasked with optimizing/tuning a flash movie to try and get
it to run better on low end machines (100% cpu spikes, large memory,
etc)

I see many areas that I can improve the swf, but how do I quantify
what I have improved to my boss?

Is there any standard practice for measuring how fast your swf is
running?  Look at the FPS?

Is there a program that records cpu/memory use as you run through a  
flash movie?


Any help appreciated
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/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] [RESOLVED] Incredible Crashing Flash

2007-07-23 Thread Cedric Muller

Oh

I really thought I was crazy ...
I have been reporting this BUG to Adobe (previously: Macromedia) and  
Apple for 3 generations now .
Some developpers even contacted me directly: I prepared the FLAs and  
everything. They acted like if they were really trying to understand  
and fix this bug.

But no ... they didn't
Now, in my constant paranoid quest, I wondered if this crash/bug is  
happening with CFM (ColdFusion) queries ??

:P

Cedric



Ok, I found it.

Cedric asked if I had any server queries and I said 'yes', but  
dismissed that as the issue. I dismissed that as the issue because  
how I've seen that crash Flash in the past is that it fails to  
close the SWF if the query wasn't complete, and then took Flash  
down with it.


Well in this case I had no problems closing the SWF. The query was  
not complete, but the SWF gets closed. Flash doesn't complain. And  
then eventually (after 45 seconds or so), Flash tries eat its own  
head then explodes. I'm assuming this is tied to the call finally  
failing...ungracefully.


So for the record - that query-didnt-finish bug still exists! It  
just has different behavior than we're used to from previous Flash  
versions.


Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-882-1121
- Original Message - From: Jobe Makar [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Friday, July 20, 2007 10:32 AM
Subject: [Flashcoders] Incredible Crashing Flash



Hi guys,

I have one FLA file that crashes Flash about one in 3 or 4  
publishes. The FLA was created by someone on a Mac. It appears to  
be very clean. It is Flash CS3, AS3. This issue is not happening  
with any of my other projects.


Needless to say this is driving me crazy. Any ideas at all?

ps - I'm on Vista Ultimate. And by 'crash' I mean Flash stops  
responding and eventually I'm told by Windows that it needs to be  
closed forcefully.


Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-882-1121

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/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] Cross domain policy's and loading child SWF's

2007-07-23 Thread R�kos Attila

You do not need crossdomain.xml for loading SWFs from different
domains, this is not restricted. The only restriction which applies in
this case concerns the control of the loaded movie. If the domain of
the loader differs from that of the loadee, the loader is not allowed
to access anything inside the loaded movie (variables, functions,
etc.) until the loadee allows it by calling System.security.allowDomain()
or allowInsecureDomain() and passing the loaders domain as the parameter.

  Attila

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
From:Matt Muller [EMAIL PROTECTED]
To:  Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Date:Monday, July 23, 2007, 2:12:44 PM
Subject: [Flashcoders] Cross domain policy's and loading child SWF's
--===--
Hi, I am building a video player which loads its player skin from
domainA.com.
The player can be embedded on an external domain, domainB.com.

Is there a way of not using a cross domain policy file to load the child swf
in?
You will never know which domain the parent is in and it just seems a
security risk to use a wildcard in the cross domain policy file.

Thanks

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

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

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

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


Re: [Flashcoders] swf obfuscation - new challenge

2007-07-23 Thread Wagner Amaral

I got it too, not so hard (used Tamper Data - Firefox plugin)

Also, I'd like to point out a security vulnerability in your PHP code:

$content = file_get_contents(pathToRealSwf/$data);

You're not escaping or validating in any way the data coming from the user
(through HTTP GET), so you're open to many exploits.
Just a simple example, a user could view the source to every PHP file on the
server that he can guess or find the path.
As an example, the file itself:

http://jimbo.us/Games/jumpPeg/path.php?data=../path.php

Open it in your browser and view source.

I'd suggest you fix it or take it down right away (now that I made it
public).

Feel free to contact me if you need details on how to fix it.

Wagner




On 7/23/07, Rákos Attila [EMAIL PROTECTED] wrote:



http://www.tengerstudio.com/public/jumppeg2/

That was not harder than previous ones :) I think you are going on a
wrong way - hiding the real games source URL and preventing the user
from downloading is simply impossible. If I use some kind of a traffic
monitoring stuff everything is visible (personally I use Fiddler - not
for cracking Flash games :) just for debugging my applications).

  Attila


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
From:Jim Berkey [EMAIL PROTECTED]
To:  Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Date:Monday, July 23, 2007, 1:50:09 PM
Subject: [Flashcoders] swf obfuscation - new challenge

--===--
Okay, another brick in the wall to keep you from grabbing a swf (the old
joyluckclub.com peg game from flashkit again - my version 4, I upgraded
flash 5 as1 to flash 8, as2

http://jimbo.us/Games/jumpPeg/index.html

In the interest of transparency, here is what I've put together so far:

The goal is to have the best protection possible, while maintaining:
(1) - zero code obfuscation
(2) - technically easy enough for a n00b++ to implement
(3) - Sharing/knowing the technique does not make it weaker

To this end, since so many of you last grabbed the game so quickly, I've
added some noise to the Herring, and I think I nailed shut the door that
Eric Priou showed us (executing the php script directly from the browser
address bar). Hopefully the number of folks that can grab the game is
reduced??

Here is how it's done:

Container swf (game.swf) holds a Red Herring faux game to keep the --n00bs
busy, and a script loaded via smoke and mirrors - logo.gif is actually
logo.swf - suffix changed after compiling - Flashplayer obviously doesn't
use the dot-three suffix to determine what a file holds. None of this is
necessary for the system to work, but is easy, fun and does no harm.

The code in logo.gif checks to see that it is being loaded onto a trusted
url, and if so loads the real swf via a php script that conceals the
directory location of the real swf, and prevents caching. Here is the php
file that does this:

?php
$data = $_GET['data'];
header(Expires: Thu, 01 Jan 1970 00:00:00 GMT, -1 );
header(Cache-Control: no-cache, no-store, must-revalidate);
header(Pragma: no-cache);
$content = file_get_contents(pathToRealSwf/$data);
echo$content;
?

The only change you make to the php file is to change the 'pathToRealSwf/'
to your own relative or absolute path to the directory holding the real swf.
I eliminated a line in the script that typed the data as a shockwave/flash
file, and removed the dot three suffix from 'rainbow.swf' - the actual
file. So now, when one runs the php script from the browser window, the
browser doesn't know what it is opening, and just shows the bytecode.

If anyone wants the system so far, write me offlist and I will send the
source files for your examination. I'll also post the system online once all
the doors are closed that can be closed. It's probably premature to do this
yet, there are probably more doors to close, and more bricks to add to the
wall, but as we go along, anyone is welcome to what I've done so far. If you
have a suggestion for making the system stronger, I'd appreciate the help.

So grab this version of the game, and let me know what other doors might
be closed?

Thanks for kicking at my wall,
jimbo
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/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 movie background color not showing in Firefox browser...

2007-07-23 Thread Francis Turmel

Here's a wild guess:

Could you be using both an embed and an object tag when you're embedding?
Maybe you're defining the bgcolor attribute
in the embed tag only and not in the object? Firefox would use the
embed tag and IE the object tag.

That's really the only thing that could be browser specific I can think of.

If that turned out to be the problem, you should take a look at the
different javascript embedding solutions out there to
make this process less painful (SWFObject being the most common solution).

Hope this helps,

- Francis


On 7/22/07, Arul Prasad M L [EMAIL PROTECTED] wrote:


you dont have wmode set to transparent, do you?

~Arul Prasad.

On 7/23/07, BOYD SPEER [EMAIL PROTECTED] wrote:

 Yes I did check the html and the color is correct there (#99)... but
 as a workaround I will add a layer to insure the movie appears the same
in
 each browser. I am surprised that flash would behave in such a manner -
 re-loading the adobe flash player did not make any difference and the
 problem looked the same on both my, and my client's computers. If anyone
can
 think of the cause of this problem I would really appreciate your
thoughts
 on it

 Thanks guys,
 -Boyd

 - Original Message -
 From: Marc Hoffman [EMAIL PROTECTED]
 Date: Sunday, July 22, 2007 4:39 pm
 Subject: Re: [Flashcoders] Flash movie background color not showing in
 Firefox browser...
 To: flashcoders@chattyfig.figleaf.com

  Make sure the bgcolor in the html code for embedding the flash
  movie
  is correct. I can't think of any other reason you'd have these
  symptoms.
  Marc Hoffman
 
  At 01:52 PM 7/22/2007, you wrote:
  Hi,
  You probably want to create a bg layer in you flash movie that
  has the
  correct color!
  
  A:)=
  
  
  On 7/22/07 11:48 AM, BOYD SPEER [EMAIL PROTECTED] wrote:
  
Is there any special setting that would affect the movie
   background color when
displayed in Firefox as opposed to Internet Explorer? My
  webpage
   looks fine in
IE but the background color in Firefox changes to white
  instead
   of the #99
dark red (that it shows in IE). This means the white text
  becomes
   invisible!
   
Thanks,
-Boyd
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/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




--
Arul Prasad
http://arulprasad.blogspot.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] swf obfuscation - new challenge

2007-07-23 Thread Jim Berkey

Thank you Rákos,

I see now how one can get the data from Fiddler, I got it quite easily 
without knowing or seeing the location of the file online, just saving the 
response was enough.


Of course, now with Amaral's input on the php file, it is easily readable, 
so the location can be easily found.


more work, . . . I must move outside another box somehow.

Thanks,
jimbo

- Original Message - 
From: Rákos Attila [EMAIL PROTECTED]

To: Jim Berkey flashcoders@chattyfig.figleaf.com
Sent: Monday, July 23, 2007 9:49 AM
Subject: Re: [Flashcoders] swf obfuscation - new challenge




http://www.tengerstudio.com/public/jumppeg2/

That was not harder than previous ones :) I think you are going on a
wrong way - hiding the real games source URL and preventing the user
from downloading is simply impossible. If I use some kind of a traffic
monitoring stuff everything is visible (personally I use Fiddler - not
for cracking Flash games :) just for debugging my applications).

 Attila

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
From:Jim Berkey [EMAIL PROTECTED]
To:  Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Date:Monday, July 23, 2007, 1:50:09 PM
Subject: [Flashcoders] swf obfuscation - new challenge
--===--
Okay, another brick in the wall to keep you from grabbing a swf (the old 
joyluckclub.com peg game from flashkit again - my version 4, I upgraded 
flash 5 as1 to flash 8, as2


http://jimbo.us/Games/jumpPeg/index.html

In the interest of transparency, here is what I've put together so far:

The goal is to have the best protection possible, while maintaining:
(1) - zero code obfuscation
(2) - technically easy enough for a n00b++ to implement
(3) - Sharing/knowing the technique does not make it weaker

To this end, since so many of you last grabbed the game so quickly, I've 
added some noise to the Herring, and I think I nailed shut the door that 
Eric Priou showed us (executing the php script directly from the browser 
address bar). Hopefully the number of folks that can grab the game is 
reduced??


Here is how it's done:

Container swf (game.swf) holds a Red Herring faux game to keep the --n00bs 
busy, and a script loaded via smoke and mirrors - logo.gif is actually 
logo.swf - suffix changed after compiling - Flashplayer obviously doesn't 
use the dot-three suffix to determine what a file holds. None of this is 
necessary for the system to work, but is easy, fun and does no harm.


The code in logo.gif checks to see that it is being loaded onto a trusted 
url, and if so loads the real swf via a php script that conceals the 
directory location of the real swf, and prevents caching. Here is the php 
file that does this:


?php
$data = $_GET['data'];
header(Expires: Thu, 01 Jan 1970 00:00:00 GMT, -1 );
header(Cache-Control: no-cache, no-store, must-revalidate);
header(Pragma: no-cache);
$content = file_get_contents(pathToRealSwf/$data);
echo$content;
?

The only change you make to the php file is to change the 'pathToRealSwf/' 
to your own relative or absolute path to the directory holding the real 
swf. I eliminated a line in the script that typed the data as a 
shockwave/flash file, and removed the dot three suffix from 
'rainbow.swf' - the actual file. So now, when one runs the php script from 
the browser window, the browser doesn't know what it is opening, and just 
shows the bytecode.


If anyone wants the system so far, write me offlist and I will send the 
source files for your examination. I'll also post the system online once 
all the doors are closed that can be closed. It's probably premature to do 
this yet, there are probably more doors to close, and more bricks to add 
to the wall, but as we go along, anyone is welcome to what I've done so 
far. If you have a suggestion for making the system stronger, I'd 
appreciate the help.


So grab this version of the game, and let me know what other doors might 
be closed?


Thanks for kicking at my wall,
jimbo
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/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:

[Flashcoders] ASDoc with Flash CS3

2007-07-23 Thread Sherri
Just wondering if anyone has successfully used ASDoc with AS3 classes for
flash? I have used it for Flex projects no problem (so I don't need help
with that). but it seems to take a lot of tinkering to get it to work with
Flash projects and I still have the asdoc tool failing. 

 

If not, I'd be interested in learning about other similar doc tools to use
with Flash AS3 projects.

 

Thanks

 

*.*   Sherri

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

2007-07-23 Thread James Marsden

Hey Sherri,

I got it working, but it took a lot of code tweaking - I'd converted a 
game engine from AS2, so there were endless compile errors on syntax etc.


J




Sherri wrote:

Just wondering if anyone has successfully used ASDoc with AS3 classes for
flash? I have used it for Flex projects no problem (so I don't need help
with that). but it seems to take a lot of tinkering to get it to work with
Flash projects and I still have the asdoc tool failing. 

 


If not, I'd be interested in learning about other similar doc tools to use
with Flash AS3 projects.

 


Thanks

 


*.*   Sherri

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

2007-07-23 Thread Sherri
YAY! Someone got it working. I'm getting a bunch of compile errors too, so I
tried setting -strict=false but that seemed to just break it altogether...
is it possible for you to send me a snippet of what worked for you? It might
show me what I'm missing. 

*.*   Sherri

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of James
Marsden
Sent: Monday, July 23, 2007 11:24 AM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] ASDoc with Flash CS3

Hey Sherri,

I got it working, but it took a lot of code tweaking - I'd converted a 
game engine from AS2, so there were endless compile errors on syntax etc.

J




Sherri wrote:
 Just wondering if anyone has successfully used ASDoc with AS3 classes for
 flash? I have used it for Flex projects no problem (so I don't need help
 with that). but it seems to take a lot of tinkering to get it to work with
 Flash projects and I still have the asdoc tool failing. 

  

 If not, I'd be interested in learning about other similar doc tools to use
 with Flash AS3 projects.

  

 Thanks

  

 *.*   Sherri

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


-- 
No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.476 / Virus Database: 269.10.14/912 - Release Date: 7/22/2007
7:02 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] ASDoc with Flash CS3

2007-07-23 Thread Frank Pepermans
I have this in a .bat file in the root of the project I want to export
in asdoc

@ECHO OFF
:BEGIN
C:\Program Files\Adobe\Flex Builder 3\sdks\moxie\bin\asdoc.exe
-source-path . -doc-sources . -main-title Documentation -window-title
Documentation -output asdoc
PAUSE  NUL
:END

This generally works, but it does have problems with classes in library
paths
I keep a lot of code in multiple swc files which are then imported in a
new as3 project and unless I copy the swc code packages directly to my
project class directory, asdoc throws errors. 

Also it seems that -exclude-classes [className] doesn't work?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sherri
Sent: 23 July 2007 17:17
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] ASDoc with Flash CS3

Just wondering if anyone has successfully used ASDoc with AS3 classes
for
flash? I have used it for Flex projects no problem (so I don't need help
with that). but it seems to take a lot of tinkering to get it to work
with
Flash projects and I still have the asdoc tool failing. 

 

If not, I'd be interested in learning about other similar doc tools to
use
with Flash AS3 projects.

 

Thanks

 

*.*   Sherri

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

2007-07-23 Thread chris duke

Trying to setup a CheckBox component to show red/green when its checked
correctly/incorrectly and I am having trouble setting the
symbolBackgroundColor style to make it show red or green.

If i understand the steps I'm taking are:

Drag CheckBox onto stage and name it cb1.
Goto File-import external library - find the sampleTheme and drag the
CheckBoxAssets library into my library
Set CheckBoxAssets to export in first frame
In the first frame of my FLA I put: cb1.setStyle(symbolBackgroundColor,
0xFF);

However when i test the movie it shows up as just a regular checkbox with no
change in color. What am i doing wrong here or am i missing something?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] swf obfuscation - new challenge

2007-07-23 Thread Alan MacDougall

Danny Kodicek wrote:

 The only method I can think of that might do what you're looking for is to
have some of the actual code work on the server. So for example you'd do
something that has a fundamental effect in the game, but you make its code
run on your server instead of on the client and just return the result (not
that different from making a multiplayer game with server-side scripting and
a dumb client).
  
That's a good idea. It would have to be something with a real effect on 
the game, though, not just some authorization token which could easily 
be replaced or commented out. And then we're getting away from the real 
point of this sort of effort -- clients often want to keep their methods 
or innovations secret. You can't hide, say, a GUI component by 
backending part of it.


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

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


Re: [Flashcoders] ASDoc with Flash CS3

2007-07-23 Thread James Marsden

Here's my snip:



// naviation to FlexSDK
cd ../../Program Files/FlexSDK/bin

// Run ASDoc
asdoc -source-path S:\demo\game\source\com -doc-classes 
prism.engine.World -main-title Prism Game Engine Documentation 
-window-title Prism Game Engine Documentation -output 
S:\demo\game\source\docs




-- this worked for me because the World.as class links to all classes in 
the project


I used this for reference:

http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=asdoc_127_2.html

Click the link at the bottom 'Running the ASDoc tool'



HTH,

James





Sherri wrote:

YAY! Someone got it working. I'm getting a bunch of compile errors too, so I
tried setting -strict=false but that seemed to just break it altogether...
is it possible for you to send me a snippet of what worked for you? It might
show me what I'm missing. 


*.*   Sherri

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of James
Marsden
Sent: Monday, July 23, 2007 11:24 AM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] ASDoc with Flash CS3

Hey Sherri,

I got it working, but it took a lot of code tweaking - I'd converted a 
game engine from AS2, so there were endless compile errors on syntax etc.


J




Sherri wrote:
  

Just wondering if anyone has successfully used ASDoc with AS3 classes for
flash? I have used it for Flex projects no problem (so I don't need help
with that). but it seems to take a lot of tinkering to get it to work with
Flash projects and I still have the asdoc tool failing. 

 


If not, I'd be interested in learning about other similar doc tools to use
with Flash AS3 projects.

 


Thanks

 


*.*   Sherri

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

2007-07-23 Thread Zárate

Hi people,

I was wondering if anyone knows if Adobe is planning to bring Seamless
tabbing work on non-IE browsers. I have a proof of concept working on
FF but involves a fairly amount of JS and ActionScript.

I would really appreciate if anyone can point me to anyone else trying
this (whether successfull or not).

Thanks!

Juan

ps: I wonder when are we going to get rid of IE-only-features, not
just on Flash but on the whole internet ¬¬

--
Juan Delgado - Zárate
http://zarate.tv
http://dandolachapa.com
http://loqueyosede.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] swf obfuscation - new challenge

2007-07-23 Thread Danny Kodicek
 The only method I can think of that might do what you're looking for is to
have some of the actual code work on the server. So for example you'd do
something that has a fundamental effect in the game, but you make its code
run on your server instead of on the client and just return the result (not
that different from making a multiplayer game with server-side scripting and
a dumb client).



 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Jim Berkey
 Sent: 23 July 2007 15:44
 To: Rákos Attila; flashcoders@chattyfig.figleaf.com
 Subject: Re: [Flashcoders] swf obfuscation - new challenge
 
 Thank you Rákos,
 
 I see now how one can get the data from Fiddler, I got it 
 quite easily without knowing or seeing the location of the 
 file online, just saving the response was enough.
 
 Of course, now with Amaral's input on the php file, it is 
 easily readable, so the location can be easily found.
 
 more work, . . . I must move outside another box somehow.
 
 Thanks,
 jimbo
 
 - Original Message -
 From: Rákos Attila [EMAIL PROTECTED]
 To: Jim Berkey flashcoders@chattyfig.figleaf.com
 Sent: Monday, July 23, 2007 9:49 AM
 Subject: Re: [Flashcoders] swf obfuscation - new challenge
 
 
 
  http://www.tengerstudio.com/public/jumppeg2/
 
  That was not harder than previous ones :) I think you are going on a
  wrong way - hiding the real games source URL and preventing the user
  from downloading is simply impossible. If I use some kind 
 of a traffic
  monitoring stuff everything is visible (personally I use 
 Fiddler - not
  for cracking Flash games :) just for debugging my applications).
 
   Attila
 
  
 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 =-=-=-=-=-=-=-=-=
  From:Jim Berkey [EMAIL PROTECTED]
  To:  Flashcoders mailing list 
 flashcoders@chattyfig.figleaf.com
  Date:Monday, July 23, 2007, 1:50:09 PM
  Subject: [Flashcoders] swf obfuscation - new challenge
  
 --
 ===--
  Okay, another brick in the wall to keep you from grabbing a 
 swf (the old 
  joyluckclub.com peg game from flashkit again - my version 
 4, I upgraded 
  flash 5 as1 to flash 8, as2
 
  http://jimbo.us/Games/jumpPeg/index.html
 
  In the interest of transparency, here is what I've put 
 together so far:
 
  The goal is to have the best protection possible, while maintaining:
  (1) - zero code obfuscation
  (2) - technically easy enough for a n00b++ to implement
  (3) - Sharing/knowing the technique does not make it weaker
 
  To this end, since so many of you last grabbed the game so 
 quickly, I've 
  added some noise to the Herring, and I think I nailed shut 
 the door that 
  Eric Priou showed us (executing the php script directly 
 from the browser 
  address bar). Hopefully the number of folks that can grab 
 the game is 
  reduced??
 
  Here is how it's done:
 
  Container swf (game.swf) holds a Red Herring faux game to 
 keep the --n00bs 
  busy, and a script loaded via smoke and mirrors - logo.gif 
 is actually 
  logo.swf - suffix changed after compiling - Flashplayer 
 obviously doesn't 
  use the dot-three suffix to determine what a file holds. 
 None of this is 
  necessary for the system to work, but is easy, fun and does no harm.
 
  The code in logo.gif checks to see that it is being loaded 
 onto a trusted 
  url, and if so loads the real swf via a php script that 
 conceals the 
  directory location of the real swf, and prevents caching. 
 Here is the php 
  file that does this:
 
  ?php
  $data = $_GET['data'];
  header(Expires: Thu, 01 Jan 1970 00:00:00 GMT, -1 );
  header(Cache-Control: no-cache, no-store, must-revalidate);
  header(Pragma: no-cache);
  $content = file_get_contents(pathToRealSwf/$data);
  echo$content;
  ?
 
  The only change you make to the php file is to change the 
 'pathToRealSwf/' 
  to your own relative or absolute path to the directory 
 holding the real 
  swf. I eliminated a line in the script that typed the data as a 
  shockwave/flash file, and removed the dot three suffix from 
  'rainbow.swf' - the actual file. So now, when one runs the 
 php script from 
  the browser window, the browser doesn't know what it is 
 opening, and just 
  shows the bytecode.
 
  If anyone wants the system so far, write me offlist and I 
 will send the 
  source files for your examination. I'll also post the 
 system online once 
  all the doors are closed that can be closed. It's probably 
 premature to do 
  this yet, there are probably more doors to close, and more 
 bricks to add 
  to the wall, but as we go along, anyone is welcome to what 
 I've done so 
  far. If you have a suggestion for making the system stronger, I'd 
  appreciate the help.
 
  So grab this version of the game, and let me know what 
 other doors might 
  be closed?
 
  Thanks for kicking at my wall,
  jimbo
  ___
  

[Flashcoders] flash developers project

2007-07-23 Thread digits033

I need the services for an advanced Flash developer on a RIA product
configurator.
Please reply off-list if you are interested in learning more.

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

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


RE: [Flashcoders] ASDoc with Flash CS3

2007-07-23 Thread Sherri
Hi Frank,

I'm not using any .swc's in this project... perhaps that's causing my
problem. 

I did actually get -exclude-classes [className] to work... but only if I
also use -exclude-dependencies true 
If any classes you document are including classes you want to exclude, they
magically get included unless you exclude dependencies as well. (That's a
mouthful)

*.*   Sherri

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Frank
Pepermans
Sent: Monday, July 23, 2007 11:35 AM
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] ASDoc with Flash CS3

I have this in a .bat file in the root of the project I want to export
in asdoc

@ECHO OFF
:BEGIN
C:\Program Files\Adobe\Flex Builder 3\sdks\moxie\bin\asdoc.exe
-source-path . -doc-sources . -main-title Documentation -window-title
Documentation -output asdoc
PAUSE  NUL
:END

This generally works, but it does have problems with classes in library
paths
I keep a lot of code in multiple swc files which are then imported in a
new as3 project and unless I copy the swc code packages directly to my
project class directory, asdoc throws errors. 

Also it seems that -exclude-classes [className] doesn't work?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sherri
Sent: 23 July 2007 17:17
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] ASDoc with Flash CS3

Just wondering if anyone has successfully used ASDoc with AS3 classes
for
flash? I have used it for Flex projects no problem (so I don't need help
with that). but it seems to take a lot of tinkering to get it to work
with
Flash projects and I still have the asdoc tool failing. 

 

If not, I'd be interested in learning about other similar doc tools to
use
with Flash AS3 projects.

 

Thanks

 

*.*   Sherri

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


-- 
No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.476 / Virus Database: 269.10.14/912 - Release Date: 7/22/2007
7:02 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] flashvars repeater?

2007-07-23 Thread Kevin Newman
Anyone who might be following,

It seems kind of silly, but you have to use MMplayerType to pass in the
player Type instead of using your own variable name.

From the Adobe Flash Detection Kit:

function loadComplete()
{
loaderClip.redirectURL = _root.MMredirectURL;
loaderClip.MMplayerType = _root.MMplayerType;
loaderClip.MMdoctitle = _root.MMdoctitle;
loaderClip.startUpdate();
}

At least the second line within the function (playerType) doesn't seem
to do anything, as the update movie that is downloaded from the
macromedia address, seems to use _root.MMplayerType no matter what you
set the above to (and it seems to default to ActiveX if you don't have
_root.MMplayerType set).

I guess someone hard coded _root.MMplayerType, instead of using the one
that's set above. Oh well, I guess I'll just use those MM* variable
names. :-)

This is actually promising for the original question of this post -
maybe flashvars are automatically available to loaded swfs? I'll test
and let you know what I find.

Thanks,

Kevin N.



Kevin Newman wrote:
 Hello Everyone,

 So here's what I got so far:

 /*_root.requireVersion = '9';
 _root.redirectURL = 'http://www.unfocus.com';
 _root.useExpressInstall = 'true';
 _root.documentTitle = foo bar;
 _root.movieSrc = 'movie.swf';
 _root.playerType = PlugIn;
 */
 var playerVersion:Number = parseInt(System.capabilities.version.split('
 ')[1]);

 // clean the flashvars
 _root.requireVersion = (typeof _root.requireVersion !=
 undefined)?parseInt(_root.requireVersion):0;
 if (typeof _root.redirectURL != undefined)
 _root.redirectURL = new String(_root.redirectURL);
 _root.useExpressInstall = _root.useExpressInstall == true?true:false;
 if (typeof _root.documentTitle != undefined)
 _root.documentTitle = new String(_root.documentTitle);
 if (typeof _root.playerType != 'undefined')
 _root.playerType = new String(_root.playerType);

 trace('Checking Version');
 // determine if Express Install is necessary:
 if (
 _root.useExpressInstall 
 playerVersion  _root.requireVersion 
 _root.redirectURL 
 _root.documentTitle 
 _root.playerType
 ) {
 trace('Express Install Started');

 System.security.allowDomain(fpdownload.macromedia.com);

 _root.installStatus = function(status)
 {
 switch (status) {
 //case Download.Complete:
 // Express Install worked. There's really nothing to do
 here.
 //break;
 case Download.Cancelled:
 // User chose not to Express Install new Flash version
 case Download.Failed:
 // The Download failed for some reason, so kick out
 message to javascript
 sendEIResults(status);
 break;
 }
 }
 //var updateClip:MovieClip;

 _root.createEmptyMovieClip('updateClip', _root.getNextHighestDepth());

 updateClipOnLoad = function()
 {
 trace('checking');
 if (typeof updateClip.startUpdate == 'function') {
 clearInterval(updateInterval);
 trace('Express Install SWF Loaded');
 updateClip.redirectURL = _root.redirectURL;
 //updateClip.MMplayerType = _root.playerType;
 updateClip.MMplayerType = PlugIn;
 updateClip.MMdoctitle = _root.documentTitle;
 updateClip.startUpdate();
 }
 };

 updateClip.loadMovie (

 http://fpdownload.macromedia.com/pub/flashplayer/update/current/swf/autoUpdater.swf?+Math.random()
 );

 var updateInterval:Number = setInterval(updateClipOnLoad, 20);

 }
 else if (typeof _root.movieSrc == 'string') // load content
 {
 trace('loading content');
 _root.loadMovie(_root.movieSrc);
 }
 else // complete breakdown (probably left out a variable)
 {
 trace(typeof _root.movieSrc);
 trace('complete breakdown: misconfiguration');
 /* probably do some kind of javascript communication here
 and let javascript turn off the movie, and use whatever
 non-flash content was specified there.*/
 var EIResultsMSg:String = 'Misconfiguration';
 sendEIResults(EIResultsMSg);

 var intervalID = setInterval('SendEIResultsBackup', 200, EIResultsMSg);

 _root.unFocusShimMsgConfirm = false;
 _root.watch('unFocusShimMsgConfirm', function(prop, oldVal, newVal,
 intervalID) {
 clearInterval(intervalID);
 return newValue;
 }, intervalID);

 }

 // this isn't all worked out yet
 function sendEIResults(result:String):Void
 {
 // this should respond through swfRef.SetVariable - setting
 // unFocusShimMsgConfirm to true;
 fscommand('unFocusShim.EIResults', result);
 }
 // fscommand doesn't always work, so we do a backup with this in that case
 function sendIERsultsBackup(result:String):Void
 {
 getURL('javascript:unFocus.Shim.EIRsultsMsg('+results+')');
 // :TODO: turn on generic English message as a final backup plan:
 }


 

Re: [Flashcoders] Casting to Array

2007-07-23 Thread Steven Sacks
 The solution I used works much the same way as Ian's: essentially it 
takes
 advantage of the fact that Flash's compiler isn't able to check the 
object

 type of sub-items of an object or array, so it ignores them (and assumes
 you've done your job correctly).

Danny,

It seems to me if you're willing to use a hack like this, you might as 
well take the :Object off your tObj parameter and call it a day.  :)


If you look at it objectively, you're adding extra lines of code for no 
reason.  AS2 has absolutely no gains from strict typing.  The compiled 
code looks exactly the same whether you use typing or not.  Also, you're 
tricking the compiler here anyway, so any benefit from typing the 
parameter is lost.  Why not do it by deleting 7 characters instead of 
adding a couple of lines of code?


If you were using AS3, you could use :* but you're not so the equivalent 
in AS2 is to leave off the type.


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

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


Re: [Flashcoders] How to use media server alongwith webserver for video streaming

2007-07-23 Thread Bob Wohl

You store the FLVs on the flash media server and then all data would be
stored on the server. All FMS does is pipes the video for you, you get to
handle everything else like any other web app.




On 7/23/07, creativity [EMAIL PROTECTED] wrote:


Hi,

Can anyone guide me on how to use flash media server with a web server for
streaming media asses like videos and audios.
I wish to know how to set up this service and how web application running
on
webserver handles media related requests using flash media server.
--
Abhishek Kumar
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/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] ComboBoxV2 Preloader problem

2007-07-23 Thread Holth, Daniel C.

Hello,

We have a main_preloader.swf that loads our main_app.swf.  The
main_app.swf has a ComboBox V2 component.  When main_app.swf is run by
itself, it works beautifully, but when its loaded into the
main_preloader.swf the ComboBox is broken.  It highlights when clicked,
but won't open or do anything else.

When I drop the combo box in the main_preloader.swf, it works fine, but
that jumps the size of the main_preloader.swf to 58kb - much too big to
be a good preloader.  Anyone have thoughts on how to solve this?

Thanks!

Daniel Holth
I.S. Programmer
x5217   ||  J401



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

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


Re: [Flashcoders] Casting to Array

2007-07-23 Thread Ian Thomas

On 7/23/07, Steven Sacks [EMAIL PROTECTED] wrote:


If you look at it objectively, you're adding extra lines of code for no
reason.  AS2 has absolutely no gains from strict typing.


The compiled code doesn't gain anything - but if (like me) you're
writing code libraries to
be used by other programmers, the gain is type-checking at
compile-time. Which is
no small thing.

I grant you the hack I use throws away type safety (unless you
surround it with a run-time
check for instanceof Array), but if the hack is useful in that it lets
you present a type-checked API
to other coders, then it most definitely is worth it. Never
underestimate the ability of someone
to pass in the wrong parameters to a function. (Even yourself). And
then to spend hours scratching their (your) head to work out what's
wrong.


If you were using AS3, you could use :* but you're not so the equivalent
in AS2 is to leave off the type.


As I said earlier, in AS3 you can use the 'as' cast operator instead
of Array(a):

var b:Array=a as Array;

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

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


Re: [Flashcoders] Casting to Array

2007-07-23 Thread Ian Thomas

Steven,
 I do see what you're getting at - having reviewed Danny's code, in
this instance, you're right (and I was being too general and should
have paid more attention!).

 In the more general case, I disagree that AS2 gains nothing from
type-checking. But you weren't being general. :-)

Ian

On 7/23/07, Steven Sacks [EMAIL PROTECTED] wrote:

You're hacking it either way.  This one function is not going to cause
coder confusion.  You're leaving the type off so you can pass any type.
  Considering you type everything else, it's pretty obvious to anyone
who looks at it what's going on.

Adding extra lines of code that put a parameter into an object is
possibly MORE confusing than leaving off a type which the next line
shows exactly why (if param instanceof).

AS3 has *, AS2 has blank.  I think it's hacky to add more lines of code
versus what I don't think is hacky which is leaving off a type in AS2.
That's HOW you accept any type of param in AS2.

Keep It Simple Stupid: http://en.wikipedia.org/wiki/KISS_principle

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

2007-07-23 Thread Steven Sacks
You're hacking it either way.  This one function is not going to cause 
coder confusion.  You're leaving the type off so you can pass any type. 
 Considering you type everything else, it's pretty obvious to anyone 
who looks at it what's going on.


Adding extra lines of code that put a parameter into an object is 
possibly MORE confusing than leaving off a type which the next line 
shows exactly why (if param instanceof).


AS3 has *, AS2 has blank.  I think it's hacky to add more lines of code 
versus what I don't think is hacky which is leaving off a type in AS2. 
That's HOW you accept any type of param in AS2.


Keep It Simple Stupid: http://en.wikipedia.org/wiki/KISS_principle

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

2007-07-23 Thread Steven Sacks

 In the more general case, I disagree that AS2 gains nothing from
type-checking. But you weren't being general. :-)


I thought I was, but I realize now that I made a flawed assumption.  You 
don't know my coding practices and how I write everything as strict as I 
can and use MTASC for compiling, etc.  If you did, you would have known 
I was being general, heh.  ;)

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

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


[Flashcoders] Slightly OT: Flex vs. Flex Builder

2007-07-23 Thread Mendelsohn, Michael
Hi list...

Is there an actual difference between Flex and Flex Builder or is it the
same thing?

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

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


[Flashcoders] Why is the CS3 IDE intercepting keypresses?

2007-07-23 Thread Joshua Sera
Why the devil is the IDE intercepting keypresses whike
I'm testing a movie? Like, if I test movie, then hit
Z, instead of sending that keypress to the movie, it
thinks, Oh, The user's testing a movie, he must want
to select the zoom tool! and selects the zoom tool.
Is this some fancy new feature? How do I turn it off?

Also, if anyone knows how to turn off the alpha fade
transitions on the toolbar/panels when you give focus
to the IDE, please let me know.


  

Shape Yahoo! in your own image.  Join our Network Research Panel today!   
http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 


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

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


[Flashcoders] Hebrew input

2007-07-23 Thread Pieter Michels

Hi,

I'm building an application that requires users to be abe to type in almost
any language.
It has basically two types of fields: 1 input and 2 dynamic fields.
I was able to get things working in the Flash IDE where I could type in
hebrew and any other language and got correct output in the dynamic fields.

However, once uploaded Internet Explorer did some strange things behind the
scene but I was able to type in hebrew.
In firefox I wasn't able to type in hebrew at all.
Both browser did output the hebrew correctly in the dynamic fields.

I'm not embedding any font; just Verdana is used as a font.

Any suggestions or directions where I should be looking to?

Thanks.


pieter.michels _at_ wellconsidered.be

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

2007-07-23 Thread Dave Watts
 Is there an actual difference between Flex and Flex Builder 
 or is it the same thing?

FlexBuilder is an Eclipse plugin that lets you easily develop Flex
applications. The Flex SDK is available separately for free, and is also
bundled with FlexBuilder.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

This email has been processed by SmoothZap - www.smoothwall.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] Why is the CS3 IDE intercepting keypresses?

2007-07-23 Thread Helmut Granda

On 7/23/07, Joshua Sera [EMAIL PROTECTED] wrote:


Why the devil is the IDE intercepting keypresses whike
I'm testing a movie? Like, if I test movie, then hit
Z, instead of sending that keypress to the movie, it
thinks, Oh, The user's testing a movie, he must want
to select the zoom tool! and selects the zoom tool.
Is this some fancy new feature? How do I turn it off?




First take a deep breath...
then.. while you are previewing your movie, on your menu select
ControlDiable Keyboard Shorcuts


Also, if anyone knows how to turn off the alpha fade
transitions on the toolbar/panels when you give focus
to the IDE, please let me know.




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

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


[Flashcoders] bitmapData object placing.

2007-07-23 Thread ilteris kaplan

Hello FlashCoders,

I am loading an image into a MC and then copying this into a  
bitmapData object and then creating multiple bitmap objects in order  
to copy various parts of this image. What I am wondering is, in order  
to display  those slices on the screen in different locations I can  
go two different ways. One is, creating those small bitmaps and then  
attaching them into their separate MCs and then setting _x and _y  
properties of those movieclips. The other is, supplying a translated  
matrix argument when drawing this bitmap which would set it again in  
my desired place.


Which way would you recommend me to go in this junction preferably  
CPU wise.


best,
ilteris

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

2007-07-23 Thread David Ngo
Actually, FlexBuilder comes in two flavors: 1 is an Eclipse plug-in to use
with an existing Eclipse installation. The other is a stand-alone IDE
(essentially the same as Eclipse 3.1 with some modifications for
Flex-specific functionality) billed as FlexBuilder.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dave Watts
Sent: Monday, July 23, 2007 3:13 PM
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Slightly OT: Flex vs. Flex Builder

 Is there an actual difference between Flex and Flex Builder 
 or is it the same thing?

FlexBuilder is an Eclipse plugin that lets you easily develop Flex
applications. The Flex SDK is available separately for free, and is also
bundled with FlexBuilder.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

This email has been processed by SmoothZap - www.smoothwall.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

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Why is the CS3 IDE intercepting keypresses?

2007-07-23 Thread Charles Parcell

Are you running the Player in the IDE as a tab or as a window?

Try it as a window.

Charles P.


On 7/23/07, Joshua Sera [EMAIL PROTECTED] wrote:


Why the devil is the IDE intercepting keypresses whike
I'm testing a movie? Like, if I test movie, then hit
Z, instead of sending that keypress to the movie, it
thinks, Oh, The user's testing a movie, he must want
to select the zoom tool! and selects the zoom tool.
Is this some fancy new feature? How do I turn it off?

Also, if anyone knows how to turn off the alpha fade
transitions on the toolbar/panels when you give focus
to the IDE, please let me know.



  

Shape Yahoo! in your own image.  Join our Network Research Panel today!
http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/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] OT: Adobe onAIR bus making a pit stop in North Carolina

2007-07-23 Thread ben gomez farrell
Hey everyone, I apologize if this is off topic, cause I'm basically 
advertising something, but I thought there would be some folks on here 
definitely interested in this.


I know there's at least a couple folks on this list from North Carolina, 
as I've talked to ya briefly.  I'm the Raleigh Durham Adobe User group 
manager, and even though the onair.adobe.com bus is not currently listed 
as stopping in NC, I can assure you it is.  It will be stopping in RTP 
(Durham).  It's not a full day event like DC, or NY, but we do get a 
Saturday evening user group meeting out of it with Mike Chambers and 
possibly others.


We're also holding a contest for the best AIR application.  The winner 
(who must be present at the meeting) receives a copy of Flex 2.

Details are at http://www.rdaug.org/airshow

Again apologies for those that consider this spam, but I thought there 
would be a bunch of folks on this list that aren't normally interested 
in the local NC user group scene, but would like to know this is happening.


Thanks!
ben


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

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


Re: [Flashcoders] OT: Adobe onAIR bus making a pit stop in NorthCarolina

2007-07-23 Thread Jobe Makar

Awesome! Finally something is happening in my own back yard :)

Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-882-1121
- Original Message - 
From: ben gomez farrell [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Monday, July 23, 2007 3:45 PM
Subject: [Flashcoders] OT: Adobe onAIR bus making a pit stop in 
NorthCarolina



Hey everyone, I apologize if this is off topic, cause I'm basically 
advertising something, but I thought there would be some folks on here 
definitely interested in this.


I know there's at least a couple folks on this list from North Carolina, 
as I've talked to ya briefly.  I'm the Raleigh Durham Adobe User group 
manager, and even though the onair.adobe.com bus is not currently listed 
as stopping in NC, I can assure you it is.  It will be stopping in RTP 
(Durham).  It's not a full day event like DC, or NY, but we do get a 
Saturday evening user group meeting out of it with Mike Chambers and 
possibly others.


We're also holding a contest for the best AIR application.  The winner 
(who must be present at the meeting) receives a copy of Flex 2.

Details are at http://www.rdaug.org/airshow

Again apologies for those that consider this spam, but I thought there 
would be a bunch of folks on this list that aren't normally interested in 
the local NC user group scene, but would like to know this is happening.


Thanks!
ben


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/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] Why is the CS3 IDE intercepting keypresses?

2007-07-23 Thread Joshua Sera
BREATHE

Thanks. Very helpful.

--- Helmut Granda [EMAIL PROTECTED] wrote:

 On 7/23/07, Joshua Sera [EMAIL PROTECTED]
 wrote:
 
  Why the devil is the IDE intercepting keypresses
 whike
  I'm testing a movie? Like, if I test movie, then
 hit
  Z, instead of sending that keypress to the movie,
 it
  thinks, Oh, The user's testing a movie, he must
 want
  to select the zoom tool! and selects the zoom
 tool.
  Is this some fancy new feature? How do I turn it
 off?
 
 
 
 First take a deep breath...
 then.. while you are previewing your movie, on your
 menu select
 ControlDiable Keyboard Shorcuts
 
  Also, if anyone knows how to turn off the alpha
 fade
  transitions on the toolbar/panels when you give
 focus
  to the IDE, please let me know.
 
 
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the
 archive:

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



  

Park yourself in front of a world of choices in alternative vehicles. Visit the 
Yahoo! Auto Green Center.
http://autos.yahoo.com/green_center/ 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Hebrew input

2007-07-23 Thread John Dowdell

Pieter Michels wrote:

[Any tips on getting Hebrew to display in Adobe Flash Player?]


Not many, I'm afraid. Right-to-left scripts turn out to be more complex 
than might be anticipated. Most applications rely on system-level 
support, which is okay for your own machine, but harder when playing on 
other peoples machines.


Two bits:

 o  Player Product Manager Emmy Huang has announced that right-to-left 
scripts will be one focus of work in the next generation of Adobe Flash 
Player:

http://weblogs.macromedia.com/jd/archives/2007/05/swf9_docs_bi-di.cfm
   (lots of links here to background information)

 o  Work has been proceeding on Flaraby, but I haven't investigated its 
implementation myself:

http://www.arabicode.com/flaraby/

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


[Flashcoders] Options for generating pdf files

2007-07-23 Thread Mendelsohn, Michael
Hi list...

I'm working on an app that generates a pdf based on user settings.  It
will be about 20 pages in length, with some graphics but mostly
formatted text.  I had been planning to embed this swf in Director and
use the pdf xtra.  However, I'm wondering what other options are out
there.

I've never used Cold Fusion before, but I hear there's pdf generation
capability in it.  Would Flash + CF work best, or are there other routes
to take?

Thanks,
- Michael 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] How to determine when an externally loaded swf has ended playing.

2007-07-23 Thread Christopher Whiteford

I have a situation where I don't have control of the external swf files that
my prog is using.

I have created a movieClip that uses a movieClipLoader and loads an external
swf into it, I am trying to detect when the end of that external swf has
been reached.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] AS2 Shared Fonts and dynamically created textFields

2007-07-23 Thread Ivan Dembicki

Hello Michael,

- my english is bad but I will try.
I think a fonts inside shared libraries have different realisation
than movies in libraries.
Previously if font is shared than this font have something like
property I'm shared and can be used outside his movie.
Second difference is garbage collector behaviour for fonts:
if some font don't used this font will not removed if any
TextFormat object have his name (not link!).

This behaviour isn't documented because it's incorrect realisation.
Correct realisation must work like all other libraries objects.

I hope my english is understandable.

Good luck!
--
iv

2007/7/23, Michael Ypes [EMAIL PROTECTED]:

Hey Ivan,

Now your code is free :) Can you quickly confirm how you embedded the fonts at 
runtime without embedding the shared library at author time. I have done it 
based on something similar to yours but by someone else on flash coders. Is it 
because it is embedded into the external flash file which you are loading that 
it becomes available to the main movie. I hope this makes sense. Anyhow that is 
how I have got it to work but I don't know why it works as there is no 
documentation on this. I would really appreciate an insight to this just so 
that I can understand the logic behind it.

Cheers

M

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ivan Dembicki
Sent: 22 July 2007 22:03
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] AS2 Shared Fonts and dynamically created textFields

Hello,

Many materials about fonts sharing is here:
www.sharedfonts.com

PS:
Now SFM is free and sharedfonts.com domain is for sale.

Good luck!


2007/7/22, pedr browne [EMAIL PROTECTED]:
 Hello,

 I have a swf using a shared font. The font works fine in static or dynamic
 textFields created at author time, but does not work with dynamically
 created textFields. I am setting embedFonts = true. The dynamically created
 textfield's text property traces out the text I've set to it, but does not
 show the text.

 Can anyone help?

 Thanks

 --
 +44 (0) 788 0600 363 | +44 (0) 127 3208 079
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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



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




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

2007-07-23 Thread Dave Watts
 I've never used Cold Fusion before, but I hear there's pdf 
 generation capability in it.  Would Flash + CF work best, or 
 are there other routes to take?

Yes, there's very nice PDF generation in CF 7, and even better PDF
generation in the upcoming CF 8. Now that Adobe owns it, the sky's the
limit!

However, you can generate PDFs directly from Java, using the same basic
functionality as CF has (but with a lot more coding on your part). There are
similar libraries available for other environments as well. None is as easy
as CF for this, though, in my experience.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

This email has been processed by SmoothZap - www.smoothwall.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] AS2 Shared Fonts and dynamically created textFields

2007-07-23 Thread Michael Ypes
Hey buddy

Your English is great :) I can't speak any other language so I appreciate your 
effort. I  get the idea of what you are talking about and roughly guessed the 
same thing. The great thing is that you can do this sort of thing and it is so 
simple to do that so many developers will find it useful to use. I do alot of 
multilingual stuff and they are always concerned with file size which this can 
help with.

Language library loaded prior to application = major file saving :)

Thanks for your response Ivan, i've always seen you as the pioneer of font 
embedding :)

And that's serious

(M) 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ivan Dembicki
Sent: 23 July 2007 22:00
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] AS2 Shared Fonts and dynamically created textFields

Hello Michael,

- my english is bad but I will try.
I think a fonts inside shared libraries have different realisation
than movies in libraries.
Previously if font is shared than this font have something like
property I'm shared and can be used outside his movie.
Second difference is garbage collector behaviour for fonts:
if some font don't used this font will not removed if any
TextFormat object have his name (not link!).

This behaviour isn't documented because it's incorrect realisation.
Correct realisation must work like all other libraries objects.

I hope my english is understandable.

Good luck!
--
iv

2007/7/23, Michael Ypes [EMAIL PROTECTED]:
 Hey Ivan,

 Now your code is free :) Can you quickly confirm how you embedded the fonts 
 at runtime without embedding the shared library at author time. I have done 
 it based on something similar to yours but by someone else on flash coders. 
 Is it because it is embedded into the external flash file which you are 
 loading that it becomes available to the main movie. I hope this makes sense. 
 Anyhow that is how I have got it to work but I don't know why it works as 
 there is no documentation on this. I would really appreciate an insight to 
 this just so that I can understand the logic behind it.

 Cheers

 M

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ivan Dembicki
 Sent: 22 July 2007 22:03
 To: flashcoders@chattyfig.figleaf.com
 Subject: Re: [Flashcoders] AS2 Shared Fonts and dynamically created textFields

 Hello,

 Many materials about fonts sharing is here:
 www.sharedfonts.com

 PS:
 Now SFM is free and sharedfonts.com domain is for sale.

 Good luck!


 2007/7/22, pedr browne [EMAIL PROTECTED]:
  Hello,
 
  I have a swf using a shared font. The font works fine in static or dynamic
  textFields created at author time, but does not work with dynamically
  created textFields. I am setting embedFonts = true. The dynamically created
  textfield's text property traces out the text I've set to it, but does not
  show the text.
 
  Can anyone help?
 
  Thanks
 
  --
  +44 (0) 788 0600 363 | +44 (0) 127 3208 079
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 


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



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

2007-07-23 Thread Danny Kodicek



You're hacking it either way.  This one function is not going to cause
coder confusion.  You're leaving the type off so you can pass any type. 
Considering you type everything else, it's pretty obvious to anyone who 
looks at it what's going on.


Adding extra lines of code that put a parameter into an object is possibly 
MORE confusing than leaving off a type which the next line shows exactly 
why (if param instanceof).


AS3 has *, AS2 has blank.  I think it's hacky to add more lines of code 
versus what I don't think is hacky which is leaving off a type in AS2. 
That's HOW you accept any type of param in AS2.


That's a fair point. It's more the principle of the thing - it was 
frustrating not to be *able* to make it strict. But yes, leaving off the 
:Object would be a better solution.


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] Hebrew input

2007-07-23 Thread Danny Kodicek



Hi,

I'm building an application that requires users to be abe to type in 
almost

any language.
It has basically two types of fields: 1 input and 2 dynamic fields.
I was able to get things working in the Flash IDE where I could type in
hebrew and any other language and got correct output in the dynamic 
fields.


However, once uploaded Internet Explorer did some strange things behind 
the

scene but I was able to type in hebrew.
In firefox I wasn't able to type in hebrew at all.
Both browser did output the hebrew correctly in the dynamic fields.

I'm not embedding any font; just Verdana is used as a font.


That's the key point. If you look back over several posts of mine on this 
list, you'll see that when using embedded fonts, you're in much more control 
than non-embedded. Without embedding, you're at the mercy of the browser and 
OS, and the result is that you really have no idea what will show up (quite 
aside from the question of whether your end-user will be able to see 
anything at all).


Unfortunately, embedding means that you definitely *won't* get RTL for free. 
Fortunately, if you're working with Hebrew rather than Arabic, the RTL 
algorithm is reasonably simple so you may find you can manage it by hand 
(it's less simple if you're allowing Bidirectional text, but still 
manageable). You could also try FlashRTL, which is pretty good but doesn't 
include any solutions for input.


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] Casting to Array

2007-07-23 Thread Steven Sacks

 That's a fair point. It's more the principle of the thing - it was
 frustrating not to be *able* to make it strict. But yes, leaving off
 the :Object would be a better solution.

Well, you can't do argument overloading in AS2 (nor AS3, I believe), so 
you can't have pure polymorphism in Flash the way you can in other 
languages like Java.  Such is life.


Alternatively, you could write your own class for the argument that 
could be an array or an object and then cast it strictly as that class. 
 Seems a lot of work for what amounts to almost no gain.  ;)

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

2007-07-23 Thread Danny Kodicek



 That's a fair point. It's more the principle of the thing - it was
 frustrating not to be *able* to make it strict. But yes, leaving off
 the :Object would be a better solution.

Well, you can't do argument overloading in AS2 (nor AS3, I believe), so 
you can't have pure polymorphism in Flash the way you can in other 
languages like Java.  Such is life.


Alternatively, you could write your own class for the argument that could 
be an array or an object and then cast it strictly as that class.


Well, it would work just as well to have

Class StrictArray extends Array {
}

Ought to work perfectly (although I'd be interested to see whether bracket 
access still works). But yes, why bother? :)


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] Video recording using Flash

2007-07-23 Thread Imran M Yousuf
Dear Users,

I have posted a simple blog on Video Capturing using Red5 and Flash. I
need your help in hosting the demo, can someone please help me?

Thanks in advance,



Imran

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

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


[Flashcoders] Fw: Video Capturing and streaming

2007-07-23 Thread Imran M Yousuf
The link to the post is as follows:

http://imyousuf-tech.blogspot.com/

Imran


- Forwarded Message 
From: Imran M Yousuf [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 24, 2007 8:32:17 AM
Subject: Video Capturing and streaming

Dear Users,

I have posted a simple blog on Video Capturing using Red5 and Flash. I
need your help in hosting the demo, can someone please help me?

Thanks in advance,



Imran





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

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


[Flashcoders] Fw: Video recording using Flash

2007-07-23 Thread Imran M Yousuf
The link to the post is as follows:


http://imyousuf-tech.blogspot.com/



Imran

- Forwarded Message 
From: Imran M Yousuf [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Tuesday, July 24, 2007 8:34:09 AM
Subject: Video recording using Flash

Dear Users,

I have posted a simple blog on Video Capturing using Red5 and Flash. I
need your help in hosting the demo, can someone please help me?

Thanks in advance,



Imran





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

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