[Flashcoders] External Interface with looped parameters

2010-05-26 Thread Ashim D'Silva
This seems fairly impossible but if there's an awesome way to do it
I'll be heaps grateful.

I receive a function name and a set of parameters via XML

analytics
function
namewebtrends/name
params
param98780/param
paramJoseph/param
paramIceland/param
/params
/function
/analytics

I'm hoping there's a way for me to fire an ExternalInterface.call()
function with any amount of parameters provided to me.
I'm one step away from telling the other side I'll send them an array,
but hoping for the long shot.

Cheers,

Ashim

The Random Lines
www.therandomlines.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] External Interface with looped parameters

2010-05-26 Thread kennethkawam...@gmail.com
You can pass any number of parameters with ExternalInterface.call()
method - or are you talking about something else...?
-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/

On 26 May 2010 08:07, Ashim D'Silva as...@therandomlines.com wrote:
 This seems fairly impossible but if there's an awesome way to do it
 I'll be heaps grateful.

 I receive a function name and a set of parameters via XML

 analytics
        function
                namewebtrends/name
                params
                        param98780/param
                        paramJoseph/param
                        paramIceland/param
                /params
        /function
 /analytics

 I'm hoping there's a way for me to fire an ExternalInterface.call()
 function with any amount of parameters provided to me.
 I'm one step away from telling the other side I'll send them an array,
 but hoping for the long shot.

 Cheers,

 Ashim

 The Random Lines
 www.therandomlines.com

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


Re: [Flashcoders] External Interface with looped parameters

2010-05-26 Thread Glen Pike

On 26/05/2010 09:33, kennethkawam...@gmail.com wrote:

You can pass any number of parameters with ExternalInterface.call()
method - or are you talking about something else...?
   

I think he means a variable number of parameters.

Can you pass an object like an array?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] External Interface with looped parameters

2010-05-26 Thread kennethkawam...@gmail.com
You can count them in the receiving function, e.g. arguments.length in
JavaScript. (Then may be I misunderstood again ;)

-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/

On 26 May 2010 09:39, Glen Pike g...@engineeredarts.co.uk wrote:
 On 26/05/2010 09:33, kennethkawam...@gmail.com wrote:

 You can pass any number of parameters with ExternalInterface.call()
 method - or are you talking about something else...?


 I think he means a variable number of parameters.

 Can you pass an object like an array?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] preventing control characters from being typed

2010-05-26 Thread Mattheis, Erik (MIN-WSW)
I need to make a form that can be used without a mouse. I have

private function keyHandler(e:KeyboardEvent):void {
   if (e.controlKey) {
switch (e.keyCode) {
  case SAVE :
  saveCurrentContent();
  break;

etc, which captures a control-s just fine, but it types a box character into 
the textfield. How do I go about preventing this?
_ _ _
Erik Mattheis
Senior Web Developer
Minneapolis
T  952 346 6610
C 612 377 2272

Weber Shandwick
Advocacy starts here.

PRWeek Global Agency Report Card 2009 - Gold Medal Winner
The Holmes Report Global Agency of the Year
PR News Agency of the Year

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


Re: [Flashcoders] preventing control characters from being typed

2010-05-26 Thread Glen Pike
You can set the restrict property to a list of characters - see 
TextField docs.


On 26/05/2010 16:54, Mattheis, Erik (MIN-WSW) wrote:

I need to make a form that can be used without a mouse. I have

private function keyHandler(e:KeyboardEvent):void {
if (e.controlKey) {
 switch (e.keyCode) {
   case SAVE :
   saveCurrentContent();
   break;

etc, which captures a control-s just fine, but it types a box character into 
the textfield. How do I go about preventing this?
_ _ _
Erik Mattheis
Senior Web Developer
Minneapolis
T  952 346 6610
C 612 377 2272

Weber Shandwick
Advocacy starts here.

PRWeek Global Agency Report Card 2009 - Gold Medal Winner
The Holmes Report Global Agency of the Year
PR News Agency of the Year

___
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] preventing control characters from being typed

2010-05-26 Thread Henrik Andersson

Mattheis, Erik (MIN-WSW) wrote:

I need to make a form that can be used without a mouse. I have

etc, which captures a control-s just fine, but it types a box character into 
the textfield. How do I go about preventing this?


There is a preventDefault method in the Event class. But I am not sure 
that it is used for this particular event. If it is not, just prevent 
the event from being dispatched to the final object by calling 
stopPropagation before that happens. You may need to use a capturing 
listener for that.

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


RE: [Flashcoders] preventing control characters from being typed

2010-05-26 Thread Mattheis, Erik (MIN-WSW)
Thanks - event.preventDefault() works if I'm listening for KEY_DOWN - had tried 
it before but was listening for KEY_UP.

_ _ _
Erik Mattheis
Senior Web Developer
Minneapolis
T  952 346 6610
C 612 377 2272

Weber Shandwick
Advocacy starts here.

PRWeek Global Agency Report Card 2009 - Gold Medal Winner
The Holmes Report Global Agency of the Year
PR News Agency of the Year


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Henrik Andersson
Sent: Wednesday, May 26, 2010 11:02 AM
To: Flash Coders List
Subject: Re: [Flashcoders] preventing control characters from being typed

Mattheis, Erik (MIN-WSW) wrote:
 I need to make a form that can be used without a mouse. I have

 etc, which captures a control-s just fine, but it types a box character 
 into the textfield. How do I go about preventing this?

There is a preventDefault method in the Event class. But I am not sure 
that it is used for this particular event. If it is not, just prevent 
the event from being dispatched to the final object by calling 
stopPropagation before that happens. You may need to use a capturing 
listener for that.
___
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] Dynamic Text Boxes in Flash CS4

2010-05-26 Thread Donald Talcott
I have some static text boxes that I need to make dynamic.
Questions;
1. Do you have to render text as HTML in a Dynamic text box in order to use 
multiple font sizes and colors within each box?
2. When I render the text as HTML, format the type, get it looking good. Then I 
click outside the text box, the text weight and line spacing changes.
When I select the text box again with the text tool, the type appears correct 
as I originally set it.

Is this normal or is Flash messing with my mind.



Don Talcott
316 Greenwood Ave
Decatur, GA 30030
404 538-1642
dtalc...@mindspring.com



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


Re: [Flashcoders] Dynamic Text Boxes in Flash CS4

2010-05-26 Thread Karl DeSaulniers

On May 26, 2010, at 4:07 PM, Donald Talcott wrote:


I have some static text boxes that I need to make dynamic.
Questions;
1. Do you have to render text as HTML in a Dynamic text box in  
order to use multiple font sizes and colors within each box?


I have found this to be the case, but you can control it with CSS as  
well. Others may be able to tell you different.


2. When I render the text as HTML, format the type, get it looking  
good. Then I click outside the text box, the text weight and line  
spacing changes.
When I select the text box again with the text tool, the type  
appears correct as I originally set it.


That has to do with how you have the text displayed.
Wither its for readability, animation or a device font.

Look at the properties panel when you have the text box selected.
There should be a drop-down menu that lets you select how to display.
Well it is that way in CS3, I don't have CS4.

Best way though to see how your text is going to display is after the  
file is published, not inside the fla and your workspace necessarily.

Why this is the case, I could not tell you.

HTHS,

Karl DeSaulniers
Design Drumm
http://designdrumm.com

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


Re: [Flashcoders] Dynamic Text Boxes in Flash CS4

2010-05-26 Thread Nathan Mynarcik
You have to embed the font for that textfield so it will render the text 
correctly. 
--Original Message--
From: Donald Talcott
Sender: flashcoders-boun...@chattyfig.figleaf.com
To: Flash Coders List
ReplyTo: Flash Coders List
Subject: [Flashcoders] Dynamic Text Boxes in Flash CS4
Sent: May 26, 2010 5:07 PM

I have some static text boxes that I need to make dynamic.
Questions;
1. Do you have to render text as HTML in a Dynamic text box in order to use 
multiple font sizes and colors within each box?
2. When I render the text as HTML, format the type, get it looking good. Then I 
click outside the text box, the text weight and line spacing changes.
When I select the text box again with the text tool, the type appears correct 
as I originally set it.

Is this normal or is Flash messing with my mind.



Don Talcott
316 Greenwood Ave
Decatur, GA 30030
404 538-1642
dtalc...@mindspring.com



___
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] Object Oriented Programming with Actionscript source files

2010-05-26 Thread Donald O. Davis

Hello,

Does anyone know where I can get the Object Oriented Programming with 
Actionscript source files?



Thanks,

Don

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


Re: [Flashcoders] Dynamic Text Boxes in Flash CS4

2010-05-26 Thread Ktu
You can use multiple TextFormat object in one text field affecting different
parts of the text. I think most people think that its more hassle that way
than using htmlText.

TextField.setTextFormat( format:Textformat, beginIndex:int = -1,
endIndex:int = -1 ) :void

Ktu
http://help.adobe.com/en_US/AS3LCR/Flash_10.0/specialTypes.html#void
On Wed, May 26, 2010 at 5:43 PM, Nathan Mynarcik nat...@mynarcik.comwrote:

 You have to embed the font for that textfield so it will render the text
 correctly.
 --Original Message--
 From: Donald Talcott
 Sender: flashcoders-boun...@chattyfig.figleaf.com
 To: Flash Coders List
 ReplyTo: Flash Coders List
 Subject: [Flashcoders] Dynamic Text Boxes in Flash CS4
 Sent: May 26, 2010 5:07 PM

 I have some static text boxes that I need to make dynamic.
 Questions;
 1. Do you have to render text as HTML in a Dynamic text box in order to use
 multiple font sizes and colors within each box?
 2. When I render the text as HTML, format the type, get it looking good.
 Then I click outside the text box, the text weight and line spacing changes.
 When I select the text box again with the text tool, the type appears
 correct as I originally set it.

 Is this normal or is Flash messing with my mind.



 Don Talcott
 316 Greenwood Ave
 Decatur, GA 30030
 404 538-1642
 dtalc...@mindspring.com



 ___
 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