Re: [Flashcoders] Uncover the Flash Files

2007-06-09 Thread Hans Wichman

Hi,

cool site, nice to have all those 'misconceptions' and other helpful info
combined.

It does fall off the screen, (just as it would with a wrong css sheet).

keep it up
JC


On 6/9/07, Snepo - Arse [EMAIL PROTECTED] wrote:


I also missed content because of the window size. The Flash Times
link, for example, cannot be scrolled to if the window is to small.

Fonts are hard to read, no preloader, mystery meat navigation etc

Why don't you just offer the information in a usable and clear
fashion... no wonder there is a lot of anti-flash sentiment of this
is how we address the issues.

A


On 09/06/2007, at 9:03 AM, Glen Pike wrote:

 Hi,

Looks nice, except I only have a 1024 x 768 monitor - you are
 not really establishing a good case for flash being used to create
 usable sites because the bottom part of the page is cut off in my
 browser...

Make it work before making it look good - then Jakob will shut up.

Glen

 Frederic Caron wrote:
 Hi there,

 Since there have been many rumours circulating about Flash -
 monolithic 100%
 Flash-based sites are complex and unmanageable, they can't be
 optimized to
 be search engine friendly, they can't be bookmarked, and sending a
 URL of a
 specific page is next to impossible. But is any of that really true?
 With all the bad press surrounding Flash sites, we have decided to
 create a
 Website to put an end to the biggest misconceptions, including:
 * SEO-friendly Flash sites
 * Accessibility for disabled users
 * Browser functionalities of 100% Flash sites
 * Bookmarking
 * Deep linking
 * The use of Express Install
 * Three-tier architectures
 * Content management systems
 * Analytics
 Rifle through the Flash Files and be part of the investigation. We
 want your
 feedback. Do you agree? Do you disagree? Have anything to add?
 Tell us what
 you think about the arguments presented. Do your friends have the
 same
 opinion? Let them know about the site. Let's spark a worldwide
 debate!
 Just drop us an email with any questions and/or comments!
 http://www.the-flash-files.com
  Frédéric Caron  Flash team lead
 Nurun inc.
  www.nurun.com
 Tel : (514) 392 1292 # 2128




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

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



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

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


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

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


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

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


[Flashcoders] create a TXT from flash

2007-06-09 Thread Laurent CUCHET
I got a form in my movie with 2 questions :
Name and AGE

How can I do to create a txt with these 2 vars and make it downlable ??
(with PHP)
Than you very much
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] html in XML

2007-06-09 Thread promo+biboune.net

hi there
i am having trouble to parse Html tags in a Xml file that is loaded  
in a flash file

can anyone help

here is the XML

?xml version=1.0 encoding=UTF-8 ?
icons
icon image=gif/images.gif tooltip=tooltip content= here i want  
to have HTML tags like a href=somewhere.comclick here to go  
somewhere /a  /

/icons

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

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


Re: [Flashcoders] Using Vista, Flash doesn't reload in FF or IE

2007-06-09 Thread James Marsden

Cheers for the replies folks.

Firstly, we're unable to export as a projector.exe as the pitch requires 
the use of a browser.


Not sure about commenting stuff until it works as the ActionScript 
involved is enormously complex, but we'll have a go at commenting the 
initial class instantiation and see if that makes a difference.


The only thing I could think that might be causing an issue is that the 
swf uses LocalConnection and ExternalInterface to communicate with 
another SWF. I thought perhaps the security for this kind of thing might 
have been tightened up.


I guess we'll have to create a bare bones ExtInt and LoCo test to see if 
that works...


I'll post our findings back...

Thanks again,

James



Ian Thomas wrote:

For the record, SWFObject works fine on Vista - so it's not that.

Ian

On 6/8/07, James Marsden [EMAIL PROTECTED] wrote:

Hallo,

We've got a presentation to give with some Flash using a Vista laptop,
and reloading the page with the Flash on it causes the Flash to stall on
the first frame (no code executed either). We're using SWFObject to
embed, and it works fine on XP with IE 6, 7 and FF, and on OSX with both
Safari and FF.

Does Vista suck or are we missing a Make this OS good setting 
somewhere?


Thanks all,

James

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

2007-06-09 Thread Latcho


Hi there,

It's a restriction in XML that you cannot have markop, nor the 
open-angle bracket
in an attribute value.  or ; If you really want to use the 
attribute you have to escape the content, and unescaope while parsing in 
flash.


W3.org:

The ampersand character () and the left angle bracket () /MUST NOT/ 
appear in their literal form, except when used as markup delimiters, or 
within a comment 
http://www.w3.org/TR/2006/REC-xml11-20060816/#dt-comment, a processing 
instruction http://www.w3.org/TR/2006/REC-xml11-20060816/#dt-pi, or a 
CDATA section 
http://www.w3.org/TR/2006/REC-xml11-20060816/#dt-cdsection. If they 
are needed elsewhere, they /MUST/ be escaped 
http://www.w3.org/TR/2006/REC-xml11-20060816/#dt-escape using either 
numeric character references 
http://www.w3.org/TR/2006/REC-xml11-20060816/#dt-charref or the 
strings |amp;| and |lt;| respectively. The right angle bracket () 
may be represented using the string |gt;|, and /MUST/, for 
compatibility http://www.w3.org/TR/2006/REC-xml11-20060816/#dt-compat, 
be escaped using either |gt;| or a character reference when it 
appears in the string |]]| in content, when that string is not 
marking the end of a CDATA section 
http://www.w3.org/TR/2006/REC-xml11-20060816/#dt-cdsection.


In the content of elements, character data is any string of characters 
which does not contain the start-delimiter of any markup or the 
CDATA-section-close delimiter, |]]|. In a CDATA section, character 
data is any string of characters not including the CDATA-section-close 
delimiter.



*CDATA sections* may occur anywhere character data may occur; they are 
used to escape blocks of text containing characters which would 
otherwise be recognized as markup. CDATA sections begin with the string 
|![CDATA[| and end with the string |]]|:]


you open the cdata with ![CDATA[ and close it with  ]] inbetween 
the html.


source  check:
http://www.w3.org/TR/2006/REC-xml11-20060816/#syntax


promo+biboune.net wrote:

hi there
i am having trouble to parse Html tags in a Xml file that is loaded in 
a flash file

can anyone help

here is the XML

?xml version=1.0 encoding=UTF-8 ?
icons
icon image=gif/images.gif tooltip=tooltip content= here i want 
to have HTML tags like a href=somewhere.comclick here to go 
somewhere /a  /

/icons

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

2007-06-09 Thread David Ngo
You won't be able to put special characters within attribute elements of a
node. Instead, place it within a CDATA node:

?xml version=1.0 encoding=UTF-8 ?
icons
icon image=gif/images.gif tooltip=tooltip
content![CDATA[here i want  
to have HTML tags like a href=somewhere.comclick here to go  
somewhere/a]]/content
/icon
/icons



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
promo+biboune.net
Sent: Saturday, June 09, 2007 10:20 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] html in XML

hi there
i am having trouble to parse Html tags in a Xml file that is loaded  
in a flash file
can anyone help

here is the XML

?xml version=1.0 encoding=UTF-8 ?
icons
icon image=gif/images.gif tooltip=tooltip content= here i want  
to have HTML tags like a href=somewhere.comclick here to go  
somewhere /a  /
/icons

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

2007-06-09 Thread promo+biboune.net

well i tried this but it does not work either

?xml version=1.0 encoding=UTF-8 ?
icons
icon image=gif/guillaume.gif tooltip=tooltip content=![CDATA[  
a href=http://www.google.com;link/a  ]] /

/icons

any idea??

thanlks for your help
jeanphy




Le 07-06-09 à 11:00, David Ngo a écrit :

You won't be able to put special characters within attribute elements  
of a

node. Instead, place it within a CDATA node:

?xml version=1.0 encoding=UTF-8 ?
icons
icon image=gif/images.gif tooltip=tooltip
content![CDATA[here i want
to have HTML tags like a href=somewhere.comclick here to go
somewhere/a]]/content
/icon
/icons



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
promo+biboune.net
Sent: Saturday, June 09, 2007 10:20 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] html in XML

hi there
i am having trouble to parse Html tags in a Xml file that is loaded
in a flash file
can anyone help

here is the XML

?xml version=1.0 encoding=UTF-8 ?
icons
icon image=gif/images.gif tooltip=tooltip content= here i want
to have HTML tags like a href=somewhere.comclick here to go
somewhere /a  /
/icons

best
jeanphy
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/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[2]: [Flashcoders] html in XML

2007-06-09 Thread R�kos Attila

CDATA elements cannot be placed inside attributes. In attributes you
can escape special characters with entities like
  gt; = 
  lt; = 
  amp; = 
  quot; = 

But storing long texts in attributes seems to be not the best solution.
  
If you use an XML handling library for creating your XML, you don't
have to care about escaping - it is necessary only when you assemble
it manually.

  Attila


pbn well i tried this but it does not work either
pbn 
pbn ?xml version=1.0 encoding=UTF-8 ?
pbn icons
pbn icon image=gif/guillaume.gif tooltip=tooltip content=![CDATA[  
pbn a href=http://www.google.com;link/a  ]] /
pbn /icons
pbn 
pbn any idea??
pbn 
pbn thanlks for your help
pbn jeanphy

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

2007-06-09 Thread Muzak
?xml version=1.0 encoding=UTF-8 ?
icons
 icon image=gif/images.gif tooltip=tooltip
 ![CDATA[HTML content here/a]]
/icon
/icons

 hi there
 i am having trouble to parse Html tags in a Xml file that is loaded in a 
 flash file
 can anyone help

 here is the XML

 ?xml version=1.0 encoding=UTF-8 ?
 icons
 icon image=gif/images.gif tooltip=tooltip content= here i want to have 
 HTML tags like a href=somewhere.comclick here to 
 go somewhere /a  /
 /icons

 best
 jeanphy


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

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


[Flashcoders] Found an AS3 RegExp Bug.

2007-06-09 Thread Isaac Rivera

The following code:

var pattern:RegExp = /[^\\]'/;
var code:String = alert(\'foo\');;
code = code.replace(pattern, \\');
code = code.replace(pattern, \\');

traces alert\'fo\'); instead of alert(\'foo\');

Isaac Rivera
Technology Director :: Experience Design Group
America Online :: New York City
p 212 652-6308 :: c 347 342-2195


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

2007-06-09 Thread Isaac Rivera

Let me correct a paste mistake there:

THE FOLLOWING CODE:

var pattern:RegExp = /[^\\]'/;
var code:String = alert('foo');;
code = code.replace(pattern, \\');
code = code.replace(pattern, \\');

traces: alert\'fo\');

Should it not trace: alert(\'foo\'); instead?

Isaac Rivera
Technology Director :: Experience Design Group
America Online :: New York City
p 212 652-6308 :: c 347 342-2195


On Jun 9, 2007, at 1:04 PM, Isaac Rivera wrote:


The following code:

var pattern:RegExp = /[^\\]'/;
var code:String = alert(\'foo\');;
code = code.replace(pattern, \\');
code = code.replace(pattern, \\');

traces alert\'fo\'); instead of alert(\'foo\');

Isaac Rivera
Technology Director :: Experience Design Group
America Online :: New York City
p 212 652-6308 :: c 347 342-2195


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

2007-06-09 Thread ben deroo

hi,
small sample:
ankematheve
   concept
   image path=images/a1.jpg br=413 ho=550 thumbpath=
thumbnails/a1.jpg thumbwidth=56 thumbheight=75/image
   image path=images/vue.jpg br=550 ho=309 thumbpath=
thumbnails/vue.jpg thumbwidth=56 thumbheight=75/image
   /concept
   details
   image path=images/a1.jpg br=413 ho=550 thumbpath=
thumbnails/a1.jpg thumbwidth=56 thumbheight=75/image
   image path=images/a2.jpg br=550 ho=413 thumbpath=
thumbnails/a2.jpg thumbwidth=56 thumbheight=75/image
   /details
/ankematheve



I'd like to be able to load and /or replace sections of this xml file.

meaning:
when I click a button on stage, i'd like thumbnails(that code has allready
been done) to appear from the concept node.
when I click another button on stage, i'd like that content to be removed
(deleted from the stage, but not from the xml file ofcourse) and be replaced
by content from the details node.

yup, I feel stupid, but that's ok!

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] Found an AS3 RegExp Bug.

2007-06-09 Thread Benny
The results you get are as expected.
To get the output you desire try:

var code:String = alert('foo');;
code = code.replace(/'/g,\\');
trace(code);

- Benny

-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Namens Isaac Rivera
Verzonden: zaterdag 9 juni 2007 19:09
Aan: flashcoders@chattyfig.figleaf.com
Onderwerp: Re: [Flashcoders] Found an AS3 RegExp Bug.

Let me correct a paste mistake there:

THE FOLLOWING CODE:

var pattern:RegExp = /[^\\]'/;
var code:String = alert('foo');;
code = code.replace(pattern, \\');
code = code.replace(pattern, \\');

traces: alert\'fo\');

Should it not trace: alert(\'foo\'); instead?

Isaac Rivera
Technology Director :: Experience Design Group
America Online :: New York City
p 212 652-6308 :: c 347 342-2195


On Jun 9, 2007, at 1:04 PM, Isaac Rivera wrote:

 The following code:

 var pattern:RegExp = /[^\\]'/;
 var code:String = alert(\'foo\');;
 code = code.replace(pattern, \\');
 code = code.replace(pattern, \\');

 traces alert\'fo\'); instead of alert(\'foo\');

 Isaac Rivera
 Technology Director :: Experience Design Group
 America Online :: New York City
 p 212 652-6308 :: c 347 342-2195


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


__ NOD32 2320 (20070609) Informatie __

Dit bericht is gecontroleerd door het NOD32 Antivirus Systeem.
http://www.nod32.nl


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

2007-06-09 Thread R�kos Attila

You are the only one who may know how to remove the thumbnails from
the stage, since you are the only one who knows how did you created
them, stored their references, etc. Your question is totally
independent of XML, it's a matter of basic scripting and movieclip
handling.

  Attila

bd hi,
bd small sample:
bd  ankematheve
bd concept
bd image path=images/a1.jpg br=413 ho=550 thumbpath=
bd thumbnails/a1.jpg thumbwidth=56 thumbheight=75/image
bd image path=images/vue.jpg br=550 ho=309 thumbpath=
bd thumbnails/vue.jpg thumbwidth=56 thumbheight=75/image
bd /concept
bd details
bd image path=images/a1.jpg br=413 ho=550 thumbpath=
bd thumbnails/a1.jpg thumbwidth=56 thumbheight=75/image
bd image path=images/a2.jpg br=550 ho=413 thumbpath=
bd thumbnails/a2.jpg thumbwidth=56 thumbheight=75/image
bd /details
bd /ankematheve
bd 
bd 
bd 
bd I'd like to be able to load and /or replace sections of this xml file.
bd 
bd meaning:
bd when I click a button on stage, i'd like thumbnails(that code has allready
bd been done) to appear from the concept node.
bd when I click another button on stage, i'd like that content to be removed
bd (deleted from the stage, but not from the xml file ofcourse) and be replaced
bd by content from the details node.
bd 
bd yup, I feel stupid, but that's ok!
bd 
bd 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] another stupid XML question

2007-06-09 Thread robert
for me i'd parse the entire xml in one go when the swf is loading. In  
parsing, save each subsection of the xml data into an array. When the  
button needs it, simply access the array.


this is not a stupid question because I've seen similar scenarios in  
which the xml was completely reloaded only to target the desired  
subsection of the xml. You might consider going to FlashNewbies for  
help:


  http://chattyfig.figleaf.com/mailman/listinfo/flashnewbie



On Jun 9, 2007, at 10:17 AM, ben deroo wrote:


hi,
small sample:
ankematheve
   concept
   image path=images/a1.jpg br=413 ho=550 thumbpath=
thumbnails/a1.jpg thumbwidth=56 thumbheight=75/image
   image path=images/vue.jpg br=550 ho=309 thumbpath=
thumbnails/vue.jpg thumbwidth=56 thumbheight=75/image
   /concept
   details
   image path=images/a1.jpg br=413 ho=550 thumbpath=
thumbnails/a1.jpg thumbwidth=56 thumbheight=75/image
   image path=images/a2.jpg br=550 ho=413 thumbpath=
thumbnails/a2.jpg thumbwidth=56 thumbheight=75/image
   /details
/ankematheve



I'd like to be able to load and /or replace sections of this xml file.

meaning:
when I click a button on stage, i'd like thumbnails(that code has  
allready

been done) to appear from the concept node.
when I click another button on stage, i'd like that content to be  
removed
(deleted from the stage, but not from the xml file ofcourse) and be  
replaced

by content from the details node.

yup, I feel stupid, but that's ok!

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] Found an AS3 RegExp Bug.

2007-06-09 Thread Isaac Rivera
Thank you benny. I can see how this works, but why does my pattern(/[^ 
\\]'/) does not?



Isaac Rivera
Technology Director :: Experience Design Group
America Online :: New York City
p 212 652-6308 :: c 347 342-2195


On Jun 9, 2007, at 1:30 PM, Benny wrote:


var code:String = alert('foo');;
code = code.replace(/'/g,\\');
trace(code);


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

2007-06-09 Thread ben deroo

let me rephrase the question then:
when I click a button, i want xml1.xml to be loaded
when I click another button, i want xml1.xml to be replaced with xml2.xml

thx
Ben

On 6/9/07, Rákos Attila [EMAIL PROTECTED] wrote:



You are the only one who may know how to remove the thumbnails from
the stage, since you are the only one who knows how did you created
them, stored their references, etc. Your question is totally
independent of XML, it's a matter of basic scripting and movieclip
handling.

  Attila

bd hi,
bd small sample:
bd  ankematheve
bd concept
bd image path=images/a1.jpg br=413 ho=550 thumbpath=
bd thumbnails/a1.jpg thumbwidth=56 thumbheight=75/image
bd image path=images/vue.jpg br=550 ho=309 thumbpath=
bd thumbnails/vue.jpg thumbwidth=56 thumbheight=75/image
bd /concept
bd details
bd image path=images/a1.jpg br=413 ho=550 thumbpath=
bd thumbnails/a1.jpg thumbwidth=56 thumbheight=75/image
bd image path=images/a2.jpg br=550 ho=413 thumbpath=
bd thumbnails/a2.jpg thumbwidth=56 thumbheight=75/image
bd /details
bd /ankematheve
bd
bd
bd
bd I'd like to be able to load and /or replace sections of this xml file.
bd
bd meaning:
bd when I click a button on stage, i'd like thumbnails(that code has
allready
bd been done) to appear from the concept node.
bd when I click another button on stage, i'd like that content to be
removed
bd (deleted from the stage, but not from the xml file ofcourse) and be
replaced
bd by content from the details node.
bd
bd yup, I feel stupid, but that's ok!
bd
bd 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] another stupid XML question

2007-06-09 Thread Jesse Graupmann

//
//  USING ONLOAD
//


Loading XML Into Flash
http://www.kirupa.com/web/xml/XMLwithFlash3.htm 

BadassXML
http://www.mosessupposes.com/utilities/index.html

This is very odd, but... if you want to replace xml with another xml:

my_xml = new XML();
function loadXML1 (){
my_xml = new XML();
my_xml.onLoad = loadXML1_loaded;
my_xml.load(data1.xml);
}
function loadXML2 (){
my_xml = new XML();
my_xml.onLoad = loadXML2_loaded;
my_xml.load(data2.xml);
}

function loadXML1_loaded ( success ){
{
if (success)trace(this);
}

function loadXML2_loaded ( success )
{
if (success)trace(this);
}


//
//  USING XPATH
//


But maybe you want to load a single xml and query parts of it - enter XPath.

Using XPath
http://www.informit.com/articles/article.asp?p=169633rl=1  

XPath – by xfactor
http://www.xfactorstudio.com/ 



//
//  USING XML2OBJECT
//


XML2Object
http://www.sephiroth.it/file_detail.php?id=129 


I think Attila is right in saying you need to not worry about changing the
xml, but rather how you use the data. In order for you to do that, you need
to convert ( parse ) the xml into a useable object. Then get the information
you need from that object.

Start by making an object that is like the xml;

obj = {
concept: [ {path: images/a1.jpg, br:413, ho:550,
thumbpath:thumbnails/a1.jpg, thumbwidth:56,thumbheight:75 },
  {path: images/vue.jpg, br:550, ho:309,
thumbpath:thumbnails/vue.jpg, thumbwidth:56,thumbheight:75 } ],
details: [ {path: images/a1.jpg, br:413, ho:550,
thumbpath:thumbnails/a1.jpg, thumbwidth:56,thumbheight:75 },
  {path: images/a2.jpg, br:550, ho:413,
thumbpath:thumbnails/a2.jpg, thumbwidth:56,thumbheight:75 } ]
}

Then access parts of your information when needed;

var array = obj.concept;
for ( var i = 0; i  array.length; i++ ){
var thumbData = array [i];
var path = thumbData.path;
trace( 'concept path: ' + path );
}

var array = obj.details;
for ( var i = 0; i  array.length; i++ ){
var thumbData = array [i];
var path = thumbData.path;
trace( 'details path: ' + path );
}

Once you get your thumbnails working, you can go back to the xml and work on
parsing it into that object above. You can try your own parser, or the handy
XML2Object - everything after this is just logic.


_

Jesse Graupmann
www.jessegraupmann.com 
www.justgooddesign.com/blog/ 
_


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of ben deroo
Sent: Saturday, June 09, 2007 11:10 AM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] another stupid XML question

let me rephrase the question then:
when I click a button, i want xml1.xml to be loaded
when I click another button, i want xml1.xml to be replaced with xml2.xml

thx
Ben

On 6/9/07, Rákos Attila [EMAIL PROTECTED] wrote:


 You are the only one who may know how to remove the thumbnails from
 the stage, since you are the only one who knows how did you created
 them, stored their references, etc. Your question is totally
 independent of XML, it's a matter of basic scripting and movieclip
 handling.

   Attila

 bd hi,
 bd small sample:
 bd  ankematheve
 bd concept
 bd image path=images/a1.jpg br=413 ho=550 thumbpath=
 bd thumbnails/a1.jpg thumbwidth=56 thumbheight=75/image
 bd image path=images/vue.jpg br=550 ho=309 thumbpath=
 bd thumbnails/vue.jpg thumbwidth=56 thumbheight=75/image
 bd /concept
 bd details
 bd image path=images/a1.jpg br=413 ho=550 thumbpath=
 bd thumbnails/a1.jpg thumbwidth=56 thumbheight=75/image
 bd image path=images/a2.jpg br=550 ho=413 thumbpath=
 bd thumbnails/a2.jpg thumbwidth=56 thumbheight=75/image
 bd /details
 bd /ankematheve
 bd
 bd
 bd
 bd I'd like to be able to load and /or replace sections of this xml file.
 bd
 bd meaning:
 bd when I click a button on stage, i'd like thumbnails(that code has
 allready
 bd been done) to appear from the concept node.
 bd when I click another button on stage, i'd like that content to be
 removed
 bd (deleted from the stage, but not from the xml file ofcourse) and be
 replaced
 bd by content from the details node.
 bd
 bd yup, I feel stupid, but that's ok!
 bd
 bd 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] another stupid XML question

2007-06-09 Thread Jesse Graupmann
So I gave you links to loading, parsing, and querying - all that is left is
creating.

Create and Edit XML in Flash
http://www.kirupa.com/developer/actionscript/create_edit_xml.htm


_

Jesse Graupmann
www.jessegraupmann.com 
www.justgooddesign.com/blog/ 
_


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of ben deroo
Sent: Saturday, June 09, 2007 11:10 AM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] another stupid XML question

let me rephrase the question then:
when I click a button, i want xml1.xml to be loaded
when I click another button, i want xml1.xml to be replaced with xml2.xml

thx
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] Firefox bug? external jpg's not loading in Firefox, are loading in IE7

2007-06-09 Thread ben deroo

http://www.citogrid.com/ankematheve/testfolder/index.html

view in Firefox, then view in IE7.

is there a fix for this problem, or am I doing something wrong, i've cut and
pasted the actionscript code for the .fla on the page.

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

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


Re: [Flashcoders] Having MovieClip behaviours in a class..

2007-06-09 Thread O. Fouad

Jesse i got a problem with the static methods u wrote... a second box
overrides the first...
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Having MovieClip behaviours in a class..

2007-06-09 Thread O. Fouad

Oh... fixed it..never mind my last post :D

Thanks all!
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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: EventDispatcher.initialize() andsuper()conflict?

2007-06-09 Thread Alain Rousseau
On another note, if you only need to listen to another class events 
simply register that class with the one you use. (like a controller)

Unless you need to dispatch an event afterwards.


import classToListen;
class myClass extends otherClass
{

private var _classToListen:classToListen;
   function myClass(m:Model)
   {
   super();
   }

   public function register(registeredClass)
   {
   _classToListen = registeredClass;
   _classToListen.addEventListener(onEvent, Delegate.create(this, 
eventHandler);

   }

   public function eventHandler(evtObj:Object)
   {
   //do stuff
   }
}


if you need to dispatch events then decorate with EventDispatcher as 
Jesse and Muzak recommand.


Alain

Muzak wrote:

As Jesse said, use the static way instead of initializing it in the constructor.
This serves 2 purposes:
- mixin only occurs once (rather than which each instance created)
- mixin occurs before the constructor is run

With that said, any reason why you're not decorating the super class with 
EventDispatcher?
When decorating the super class every subclass will have event dispatching 
(which is usually what you want).

regards,
Muzak

- Original Message - 
From: Jesse Graupmann [EMAIL PROTECTED]

To: flashcoders@chattyfig.figleaf.com
Sent: Saturday, June 09, 2007 1:57 AM
Subject: RE: [Flashcoders] AS2: EventDispatcher.initialize() andsuper()conflict?


  

I never use super() so I have no idea, but see what happens when you throw
the initialize in a static variable like;


class myClass extends otherClass
{
private static var EventDispatcherDependancy  =
mx.events.EventDispatcher.initialize ( myClass.prototype );
public var addEventListener:Function;
public var removeEventListener:Function;
public var dispatchEvent:Function;

public function myClass (m:Model) {
super();
}
}

_

Jesse Graupmann
www.jessegraupmann.com
www.justgooddesign.com/blog/
_



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: Friday, June 08, 2007 4:31 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] AS2: EventDispatcher.initialize() and
super()conflict?

I have a class that has to call it's superclass in the constructor.
However, it also needs to initialize EventDispatcher to listen to
dispatch events that another class is listening to.  It seems, and I
could be wrong, that EventDispatcher does not work if it's not the first
thing in the constructor.  I thought someone had said once, or I read
it, that EventDispatcher has to be first in the constructor.  And of
course, probkem then is super() will not work if it's not first, so it
seems to be a catch-22.  Is this true regarding
EventDispatcher.initialize() and how to avoid?

code snippet:

  /*=Constructor=*/
public function MyClass(m:Model)
{
super(m);
EventDispatcher.initialize(this);
}

If this is OK then maybe something else is wrong in my code, I just
wanted to find out if maybe this is why the events aren't firing.

Thanks,





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

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


  

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

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


Re: [Flashcoders] Using Vista, Flash doesn't reload in FF or IE

2007-06-09 Thread Martin Scott Goldberg
I was just presenting some of my work at a conference tonight where the
laptop available was a Dell vista laptop.  Absolutely terrible.
Everything crawled or was very choppy frame rate wise.  Even PONG.  

I had downloaded and installed the latest plugin on there myself, so I
know it wasn't an installation issue.  Had know such problems on the
plethora of XP boxes (I.E. and firefox) and OSX versions we've been
play testing this on for months.  So I have to assume its a Vista issue.



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

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