[Flashcoders] Creating a XMLList in the source code

2010-02-10 Thread Alexander Farber
Sorry for one more probably basic XML question,
but how do you create an XMLList object? I've tried:

var list:XMLList =
user pos=0 money=123 changed=2 pool=10.20.30 whist1=10.20
whist2=100 /
user pos=2 money=-123 changed=4 mount=1.2.3
whist1=10.20.100.300 whist2=100 /
;

var list:XMLList = XMLList(
user pos=0 money=123 changed=2 pool=10.20.30 whist1=10.20
whist2=100 /
user pos=2 money=-123 changed=4 mount=1.2.3
whist1=10.20.100.300 whist2=100 /
);

var list:XMLList = XMLList('
user pos=0 money=123 changed=2 pool=10.20.30 whist1=10.20
whist2=100 /
user pos=2 money=-123 changed=4 mount=1.2.3
whist1=10.20.100.300 whist2=100 /
');

These all return errors, like for the 2nd one:

1084: Syntax error: expecting rightparen before pos.

Regards
Alex
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Creating a XMLList in the source code

2010-02-10 Thread allandt bik-elliott (thefieldcomic.com)
as far as i know, xml list is really designed to be a way of accessing
multiple nodes in an xml doc so you would start with an XML object and pull
the list from there

var xml:XML =
users
user pos=0 money=123 changed=2 pool=10.20.30 whist1=10.20
whist2=100 /
user pos=2 money=-123 changed=4 mount=1.2.3
whist1=10.20.100.300 whist2=100 /
/users;

var list:XMLList = xml.user;

best
a

On Wed, Feb 10, 2010 at 2:37 PM, Alexander Farber 
alexander.far...@gmail.com wrote:

 Sorry for one more probably basic XML question,
 but how do you create an XMLList object? I've tried:

 var list:XMLList =
 user pos=0 money=123 changed=2 pool=10.20.30 whist1=10.20
 whist2=100 /
 user pos=2 money=-123 changed=4 mount=1.2.3
 whist1=10.20.100.300 whist2=100 /
 ;

 var list:XMLList = XMLList(
 user pos=0 money=123 changed=2 pool=10.20.30 whist1=10.20
 whist2=100 /
 user pos=2 money=-123 changed=4 mount=1.2.3
 whist1=10.20.100.300 whist2=100 /
 );

 var list:XMLList = XMLList('
 user pos=0 money=123 changed=2 pool=10.20.30 whist1=10.20
 whist2=100 /
 user pos=2 money=-123 changed=4 mount=1.2.3
 whist1=10.20.100.300 whist2=100 /
 ');

 These all return errors, like for the 2nd one:

 1084: Syntax error: expecting rightparen before pos.

 Regards
 Alex
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Creating a XMLList in the source code

2010-02-10 Thread David Hunter

maybe add the new word in. the below doesn't trace any errors for me. but 
i've never used XMLList before.
var myList:XMLList = new XMLList(xmlnode val='1' /node val='2' //xml);

 Date: Wed, 10 Feb 2010 15:37:19 +0100
 From: alexander.far...@gmail.com
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] Creating a XMLList in the source code
 
 Sorry for one more probably basic XML question,
 but how do you create an XMLList object? I've tried:
 
 var list:XMLList =
 user pos=0 money=123 changed=2 pool=10.20.30 whist1=10.20
 whist2=100 /
 user pos=2 money=-123 changed=4 mount=1.2.3
 whist1=10.20.100.300 whist2=100 /
 ;
 
 var list:XMLList = XMLList(
 user pos=0 money=123 changed=2 pool=10.20.30 whist1=10.20
 whist2=100 /
 user pos=2 money=-123 changed=4 mount=1.2.3
 whist1=10.20.100.300 whist2=100 /
 );
 
 var list:XMLList = XMLList('
 user pos=0 money=123 changed=2 pool=10.20.30 whist1=10.20
 whist2=100 /
 user pos=2 money=-123 changed=4 mount=1.2.3
 whist1=10.20.100.300 whist2=100 /
 ');
 
 These all return errors, like for the 2nd one:
 
 1084: Syntax error: expecting rightparen before pos.
 
 Regards
 Alex
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
_
Do you have a story that started on Hotmail? Tell us now
http://clk.atdmt.com/UKM/go/195013117/direct/01/___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Creating a XMLList in the source code

2010-02-10 Thread Glen Pike

Hi,

   I don't think you can do this - you have to create a single XML node 
around the list then pull the list out from that..


   Glen

Alexander Farber wrote:

Sorry for one more probably basic XML question,
but how do you create an XMLList object? I've tried:

var list:XMLList =
user pos=0 money=123 changed=2 pool=10.20.30 whist1=10.20
whist2=100 /
user pos=2 money=-123 changed=4 mount=1.2.3
whist1=10.20.100.300 whist2=100 /
;

var list:XMLList = XMLList(
user pos=0 money=123 changed=2 pool=10.20.30 whist1=10.20
whist2=100 /
user pos=2 money=-123 changed=4 mount=1.2.3
whist1=10.20.100.300 whist2=100 /
);

var list:XMLList = XMLList('
user pos=0 money=123 changed=2 pool=10.20.30 whist1=10.20
whist2=100 /
user pos=2 money=-123 changed=4 mount=1.2.3
whist1=10.20.100.300 whist2=100 /
');

These all return errors, like for the 2nd one:

1084: Syntax error: expecting rightparen before pos.

Regards
Alex
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


  


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Creating a XMLList in the source code

2010-02-10 Thread kennethkawam...@gmail.com
In this case you may use String as parameter for the constructor.

var xmlList:XMLList = new XMLList('user pos=0 money=123
changed=2 pool=10.20.30 whist1=10.20 whist2=100 /user
pos=2 money=-123 changed=4 mount=1.2.3whist1=10.20.100.300
whist2=100 /');

You can also use Boolean and Number as parameter :)
-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/

On 10 February 2010 14:37, Alexander Farber alexander.far...@gmail.com wrote:
 Sorry for one more probably basic XML question,
 but how do you create an XMLList object? I've tried:

 var list:XMLList =
 user pos=0 money=123 changed=2 pool=10.20.30 whist1=10.20
 whist2=100 /
 user pos=2 money=-123 changed=4 mount=1.2.3
 whist1=10.20.100.300 whist2=100 /
 ;

 var list:XMLList = XMLList(
 user pos=0 money=123 changed=2 pool=10.20.30 whist1=10.20
 whist2=100 /
 user pos=2 money=-123 changed=4 mount=1.2.3
 whist1=10.20.100.300 whist2=100 /
 );

 var list:XMLList = XMLList('
 user pos=0 money=123 changed=2 pool=10.20.30 whist1=10.20
 whist2=100 /
 user pos=2 money=-123 changed=4 mount=1.2.3
 whist1=10.20.100.300 whist2=100 /
 ');

 These all return errors, like for the 2nd one:

 1084: Syntax error: expecting rightparen before pos.

 Regards
 Alex
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Error #2101 - String passed to URLVariables.decode() ... must be URL encoded...

2010-02-10 Thread Karim Beyrouti
Hello List - 

I am using 'URLLoader' to get some data from the server and get an error:
Error: Error #2101: The String passed to URLVariables.decode() must be a 
URL-encoded query string containing name/value pairs.

The dataFormat is set to :  URLLoaderDataFormat.VARIABLES;
The Data source is here:
http://www.100fair-trades.com/widget/getTradeInfo.php

it works if i set the dataFormat to TEXT, however it does not split the 
values not sure why this is happening here

Thank you in advance...


Karim


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Error #2101 - String passed to URLVariables.decode() ... must be URL encoded...

2010-02-10 Thread Glen Pike

Hi,

   Is it the fact that your ampersands are not encoded as amp;
   ?

   Glen

Karim Beyrouti wrote:
Hello List - 


I am using 'URLLoader' to get some data from the server and get an error:
Error: Error #2101: The String passed to URLVariables.decode() must be a 
URL-encoded query string containing name/value pairs.

The dataFormat is set to :  URLLoaderDataFormat.VARIABLES;
The Data source is here:
http://www.100fair-trades.com/widget/getTradeInfo.php

it works if i set the dataFormat to TEXT, however it does not split the 
values not sure why this is happening here

Thank you in advance...


Karim


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


  


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Runtime Font embedding

2010-02-10 Thread Glen Pike

Hi,

   I am working on some runtime font embedding with Flash CS3 by 
loading in a SWF at runtime with font symbols defined in library, 
exported for Actionscript, but not for sharing.


   I wish to use Arabic and Chinese characters in my fonts, so I have 
symbols for Arial and MingLiU Bold fonts.


   The problem I am having is that the Arabic / Chinese characters do 
not seem to be included in the Font Symbol / SWF.  I have tried putting 
a text field on stage and embedding the character ranges for each 
symbol, but still no luck. 

   In my Loader, I am loading the fonts, then some XML and using 
Font.hasGlyphs(string) to see if my Chinese / Arabic / other characters 
can be rendered with any of my loaded fonts, then defaulting to system 
fonts if they are not.


   I can get that far, but I would really like to embed / anti-alias 
the fonts better, etc.


   So, is it possible to ensure that the CS3 IDE embeds a range of 
characters, or would I have to do the fonts using Flex / Flash Develop 
and [Embed] with unicode ranges to create my font swfs?


   Thanks in advance.
  
   Glen

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Flash 10 - using basic RTL features without CS4

2010-02-10 Thread Glen Pike

Hi,
 
   Quick question.


   If I am publishing with CS3, but running swfs in FP10, can I take 
get RTL rendering in standard text fields without using CS4 and / or the 
Text Layout Framework - i.e. does putting Arabic text into a dynamic 
text field just work, or do I have to fiddle?


   Thanks

   Glen
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] AS2: blank input text field when clicked

2010-02-10 Thread Alan Neilsen
I am working in AS2. I have an input text field I am using with an AS2 flipbook 
component so users can type a page number then go to that page in the flipbook. 
I want to make it so when the text field is clicked, any existing text is 
removed and focus set so the user is then ready to type a page number (then 
click a 'GO' button to go to that page). Flash won't let me apply code to the 
text field, so I thought I could code it so if that area of the stage is 
clicked it will do what I want. This is really basic coding with no classes, 
external scripts, etc.; so if anybody has a really basic solution I would be 
extremely grateful. This should be the sort of thing people use all the time 
(an input text field that is cleared when clicked), so I assume I am not the 
first to try and do this.
I thought the following might work, but Flash tells me, The class or interface 
'MouseEvent' could not be loaded. So maybe I have left something out, or I am 
mixing up my AS2 with AS3, or I am just approaching this all wrong.

stage.addEventListener(MouseEvent.MOUSE_DOWN, blankText);
function blankText(event:MouseEvent):void {
if (mouseX = 370) {
if (mouseX = 430) {
If (mouseY = 50) {
if (mouseY = 72) {
enterPage.text = ;
}
}
}
}
}
Alan Neilsen


This message is for the named person’s use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or; lost by any mistransmission. If
you receive this message in error, please immediately delete it and all
copies of it from your system, destroy any hard copies of it and notify
the sender. You must not directly or indirectly, use, disclose,
distribute, print or copy any part of this message if you are not the
intended recipient. GOULBURN OVENS INSTITUTE OF TAFE and
any of its subsidiaries each reserve the right to monitor all e-mail
communications through its networks. Any views expressed in this
message are those of the individual sender, except where the
message states otherwise and the sender is authorised to state them
to be the views of any such entity.

#
This e-mail message has been scanned for Viruses and Content and cleared 
by MailMarshal
#
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Combining embedded and device fonts in one textfield

2010-02-10 Thread confustic...@gmail.com
I have paragraphs of text which includes phonemic symbols: pretty much
any character found here should be included:
http://www.e-lang.co.uk/mackichan/call/pron/type.html

I thought I was home and hosed, as Lucida Sans Unicode / Lucida
Grande, which seems pretty standard, covers all that.

The problem came when I found out that I also have to be able to
display the undertie character:
http://en.wikipedia.org/wiki/Tie_(typography) (HTML code #8255;)

It seems that the only font on Windows that covers the undertie is
Arial Unicode MS. Unfortunately, Arial Unicode MS doesn't seem to be a
standard font.

I don't want to have to embed Arial Unicode MS because that would
really add to my file sizes, as well as restricting my ability to do
things like textfield.htmlText = bbold/b text. It seems like
such overkill for ONE SINGLE GLYPH.

Would anyone be able to suggest any alternatives? ALL I WANT IS AN
UNDERTIE ... *sob*
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Combining embedded and device fonts in one textfield

2010-02-10 Thread Ktu
If you have Flash CS4 or Flex, you could embed just that one character from
that font using the [Embed] syntax. Check out this tutorial
http://gotoandlearn.com/play?id=102

Ktu

On Wed, Feb 10, 2010 at 11:08 PM, confustic...@gmail.com 
confustic...@gmail.com wrote:

 I have paragraphs of text which includes phonemic symbols: pretty much
 any character found here should be included:
 http://www.e-lang.co.uk/mackichan/call/pron/type.html

 I thought I was home and hosed, as Lucida Sans Unicode / Lucida
 Grande, which seems pretty standard, covers all that.

 The problem came when I found out that I also have to be able to
 display the undertie character:
 http://en.wikipedia.org/wiki/Tie_(typography)http://en.wikipedia.org/wiki/Tie_%28typography%29(HTML
  code #8255;)

 It seems that the only font on Windows that covers the undertie is
 Arial Unicode MS. Unfortunately, Arial Unicode MS doesn't seem to be a
 standard font.

 I don't want to have to embed Arial Unicode MS because that would
 really add to my file sizes, as well as restricting my ability to do
 things like textfield.htmlText = bbold/b text. It seems like
 such overkill for ONE SINGLE GLYPH.

 Would anyone be able to suggest any alternatives? ALL I WANT IS AN
 UNDERTIE ... *sob*
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Combining embedded and device fonts in one textfield

2010-02-10 Thread confustic...@gmail.com
Thanks for that link, Ktu. I didn't know you could specify Unicode
ranges to embed - very handy.

Unfortunately, the problem still remains of having to combine an
embedded font and a device font in the same textfield. As Lee Brimelow
demonstrates near the end of the tutorial, the lowercase 'u' didn't
display because only uppercase glyphs were embedded. It seems like if
I choose to embed only the undertie character, my textfield will only
be capable of displaying ... the undertie character!

It seems like this is the conundrum:

1) I need to embed the undertie character, as Arial Unicode MS is not
guaranteed to be found on all machines.

2) That means that any textfield which would have an undertie in it,
would have to have embedFonts = true;

3) Any textfield which has embedFonts = true can only display
characters included in the embedded font. Which, referring back to
(1), would just be an undertie.

4) This means that if I want to have an undertie, I'd have to embed
the undertie AND every single other glyph which might be used in that
textfield. Uppercase, lowercase, punctuation, numbers, etc. Further,
I'd have to embed separate versions for each of bold, italic, and
bold-italic.

All this for an undertie!!

On Thu, Feb 11, 2010 at 4:18 PM, Ktu ktu_fl...@cataclysmicrewind.com wrote:
 If you have Flash CS4 or Flex, you could embed just that one character from
 that font using the [Embed] syntax. Check out this tutorial
 http://gotoandlearn.com/play?id=102

 Ktu

 On Wed, Feb 10, 2010 at 11:08 PM, confustic...@gmail.com 
 confustic...@gmail.com wrote:

 I have paragraphs of text which includes phonemic symbols: pretty much
 any character found here should be included:
 http://www.e-lang.co.uk/mackichan/call/pron/type.html

 I thought I was home and hosed, as Lucida Sans Unicode / Lucida
 Grande, which seems pretty standard, covers all that.

 The problem came when I found out that I also have to be able to
 display the undertie character:
 http://en.wikipedia.org/wiki/Tie_(typography)http://en.wikipedia.org/wiki/Tie_%28typography%29(HTML
  code #8255;)

 It seems that the only font on Windows that covers the undertie is
 Arial Unicode MS. Unfortunately, Arial Unicode MS doesn't seem to be a
 standard font.

 I don't want to have to embed Arial Unicode MS because that would
 really add to my file sizes, as well as restricting my ability to do
 things like textfield.htmlText = bbold/b text. It seems like
 such overkill for ONE SINGLE GLYPH.

 Would anyone be able to suggest any alternatives? ALL I WANT IS AN
 UNDERTIE ... *sob*
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders