[Flashcoders] Flex demos

2006-03-20 Thread Jim Kremens
Hi all,

I'm trying to sell a client on Flex.  I want to be able to show him some
examples.

I've seen this page:

http://www.macromedia.com/cfusion/showcase/index.cfm
?event=finderresults&contenttype=casestudy&productID=26724&loc=en_us

but even using the links provided there, it's pretty hard to find the Flex
app.  These are all RIAs of course, but they require login, and so don't
make the best demos.


Is there a page with links to some demo-type, completely public apps?

--
Jim Kremens
___
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] preloader, again (ugh)

2006-03-20 Thread Ryan Potter
One thing you may want to look into is a program like web speed simulator.
http://www.xat.com/wo/index.html
 
I use it to test preloaders all the time and it works great allowing you to 
test locally as if it were uploaded.  And you can test at different connection 
speeds.
 
Ryan 

-Original Message- 
From: [EMAIL PROTECTED] on behalf of Andy Johnston 
Sent: Mon 3/20/2006 4:31 PM 
To: Flashcoders mailing list 
Cc: 
Subject: Re: [Flashcoders] preloader, again (ugh)



G'Day Edward,

Heres my code for a preloader. I use the movieClipLoader for good call
backs and now onEnterFrame functions (sooo flash 5 ;))

var mcl:MovieClipLoader = new MovieClipLoader();
var loadingListener:Object = new Object();

mcl.addListener(loadingListener);

var target_mc = this.createEmptyMovieClip(loadClipInstance, 
loadClipDepth);

loadingListener.onLoadStart = function(target:MovieClip) {
// starting load
};

loadingListener.onLoadProgress = function(target:MovieClip,
loadedBytes:Number, totalBytes:Number) {
progressBar._xscale = (loadedBytes/totalBytes)*100;
};

loadingListener.onLoadInit = function(target:MovieClip) {
// stuff is loaded
};

mcl.loadClip(loadClipPath, target_mc);



you can only test preloaders on a live website.. testing locally or
within flash will not work, so upload your stuff to a server and test it
out.

cheers

andy


>So you guys tell me that a single frame, single file site with a 
preloader 100% dynamic is pretty much impossible, ok i accept that. here is my 
external preloader, any ideas ... site loads, no progress appearance at all.
>
>// begin code
>// -
>// text formats section
>var format1_fmt:TextFormat = new TextFormat();
>with (format1_fmt) {
> color = 0xFF;
> font = "swfitslim99";
> size = 8;
>};
>// -
>function preloader() {
> // create movieclip to load swf in
> _root.createEmptyMovieClip("target_mc", this.getNextHighestDepth() );
> _root.target_mc.loadMovie("site.swf");
> // draw preloader
> _root.createEmptyMovieClip("preloader_mc", 
_root.getNextHighestDepth() );
> _root.preloader_mc.createTextField("preloader_txt", 
_root.getNextHighestDepth, 0, 0, 200, 20);
> with (_root.preloader_mc.preloader_txt) {
>  embedFonts = true;
>  selectable = false;
>  setNewTextFormat(format1_fmt);
>  text = "LOADING SITE: 00"
> };
> _root.preloader_mc._x = (Stage.width/2) - 
(_root.preloader_mc.preloader_txt._width/2);
> _root.preloader_mc._y = (Stage.height/2) - 
(_root.preloader_mc.preloader_txt._height/2);
> // -
> // preload
> _root.onEnterFrame = function() {
>  tBytes = _root.target_mc.getBytesTotal();
>  bLoaded = _root.target_mc.getBytesLoaded();
>  percent = Math.round((bLoaded/tBytes)*100);
>  if (bLoaded < tBytes) {
>   _root.preloader_mc.preloader_txt.text = "loading site: " + percent;
>  } else {
>   trace("completed loading!");
>   _root.preloader_mc.removeMovieClip();
>   _root.preloader_mc.preloader_txt.removeTextField();
>   delete this.onEnterFrame;
>  };
> };
>};
>// -
>preloader();
>// -
>
>// http://www.murderdesign.com/preloader.swf
>___
>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 L

Re: [Flashcoders] XPathAPI question

2006-03-20 Thread Patrick Matte

Thanks, it works with the xfactorstudio library.

- Original Message - 
From: "Chris Allen" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Monday, March 20, 2006 7:08 PM
Subject: Re: [Flashcoders] XPathAPI question


On 3/20/06, Patrick Matte <[EMAIL PROTECTED]> wrote:

Is it just me or the mx.xpath library doesn't support the "//" syntax to
select every nodes that match the selection no matter where they are?

Like this for example doesn't work:

XPathAPI.selectNodeList(menuXML,"//[EMAIL PROTECTED]'true']");


I'm pretty sure that Macromedia's implementation does not support
global (anywhere in the XML) lookups like that.. You may want to try
the beefier yet more full-featured version from
http://xfactorstudio.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] movieclip actions not working

2006-03-20 Thread Byron Canfield
I was able to get it to work by deleting the m1 button event handler
function, however, the button event handler for m2 cannot be executed
before m2 actually exists, and since it comes into existence on frame 20
of m1, the button event handler function must also be run on frame 20 of
m1.

-- 
Byron "Barn" Canfield


> thanks for the help. If you say it can never work, then I assume it can
> never work... I'll do a little rethinking as you suggest and use the
> oldstyle buttons where needed.
>
> Ben
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Andy
> Johnston
> Sent: maandag 20 maart 2006 1:41
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] movieclip actions not working
>
> ben, you cannot have a button inside another button...
>
> That is why your code wont work.
>
> paste this over your current code
>
> m1.onRollOver = function ():Void
> {
> this.gotoAndStop (20);
> };
> m1.onRollOut = function ():Void
> {
> this.gotoAndStop (1);
> };
> m1.m2.onPress = function ():Void
> {
> trace("HI")
> getURL ("http://www.cnn.com";, "_blank");
> };
>
> as you will see the trace("HI") will never fire because the m1 button
> movieClips hit area will expand to the total size of the movieClip.
>
> rethink your setup, this will never work despite all the help in the world
>
>>have you tried that Byron, and does that work for you? I've tried it
>> here,
>>and makes no difference at all...
>>
>>strange that such a simple thing is so hard to solve...
>>
>>-Original Message-
>>From: [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED] On Behalf Of Byron
>>Canfield
>>Sent: maandag 20 maart 2006 1:18
>>To: flashcoders@chattyfig.figleaf.com
>>Subject: RE: [Flashcoders] movieclip actions not working
>>
>>Actually try this, instead.
>>
>>m1.onRollOver = function(){
>>  delete this.onRollOver;
>>  //this.play();
>>  this.gotoAndStop(20);
>>}
>>
>>
>>
>
> ___
> 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] XPathAPI question

2006-03-20 Thread Chris Allen
On 3/20/06, Patrick Matte <[EMAIL PROTECTED]> wrote:
> Is it just me or the mx.xpath library doesn't support the "//" syntax to
> select every nodes that match the selection no matter where they are?
>
> Like this for example doesn't work:
>
> XPathAPI.selectNodeList(menuXML,"//[EMAIL PROTECTED]'true']");
>
I'm pretty sure that Macromedia's implementation does not support
global (anywhere in the XML) lookups like that.. You may want to try
the beefier yet more full-featured version from
http://xfactorstudio.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] Mail + php huey

2006-03-20 Thread stone larsen
Can someone please lend a hand, might be staring to
long at the screen. This is suppose to write to a .txt
file, all I get is "failed".

ok, this is the AS.

var serverLang:String = "php";
var myVars:LoadVars = new LoadVars();
myVars.onLoad = function() {
if (myVars.verify == "success") {
email_txt.text = "Data Saved";
} else {
email_txt.text = "Failed Save";
}
};
submit_btn.onRelease = function() {
if (!email_txt.length || email_txt.indexOf("@") == -1
|| email_txt.indexOf(".") == -1) {
email_txt.text = "Invalid Email.";
} else {
myVars.userEmail = email_txt.text;
myVars.sendAndLoad("writeToFile."+serverLang,
myVars, "POST");
}
};

php for the app:

 

PLEASE, some assistance.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.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] Mail + php huey

2006-03-20 Thread stone larsen
Can someone please lend a hand, might be staring to
long at the screen. This is suppose to write to a .txt
file, all I get is "failed".

ok, this is the AS.

var serverLang:String = "php";
var myVars:LoadVars = new LoadVars();
myVars.onLoad = function() {
if (myVars.verify == "success") {
email_txt.text = "Data Saved";
} else {
email_txt.text = "Failed Save";
}
};
submit_btn.onRelease = function() {
if (!email_txt.length || email_txt.indexOf("@") == -1
|| email_txt.indexOf(".") == -1) {
email_txt.text = "Invalid Email.";
} else {
myVars.userEmail = email_txt.text;
myVars.sendAndLoad("writeToFile."+serverLang,
myVars, "POST");
}
};

php for the app:

 

PLEASE, some assistance.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.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] XPathAPI question

2006-03-20 Thread Patrick Matte
Is it just me or the mx.xpath library doesn't support the "//" syntax to
select every nodes that match the selection no matter where they are?

Like this for example doesn't work:

XPathAPI.selectNodeList(menuXML,"//[EMAIL PROTECTED]'true']");


___
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] Determining width of rotatedMC'simaginaryboundingbox

2006-03-20 Thread Odie Bracy PhD
Actually, your width will change with the rotation. The greatest  
width will be when the diagonal line of your rectangle is a flat,  
horizontal line. This width will be equal to the square root of the  
sum of the squares of the original height and width before the rotation.


Odie


On Mar 20, 2006, at 5:00 PM, David Stiller wrote:


Danny,


My MC is a 150x30 rectangle rotated to 45 degrees.
My results show width and height both at 180, when
they should be closer to 130.  Here's my code:



That's odd: when I go through those calculations
with a calculator, they come out with about 130,
just as you say [...].  Are you sure your mc._width
and mc._height are returning the correct values?


Well, I checked, and am beginning to feel dumber and dumberer.
Somewhere, when I was dealing with this last night, my head must  
have been
clouded up.  If I take a 150x30 movie clip in the IDE and rotate  
it, the
width and height, as indicated in the Properties inspector, updates  
the way

your calculation and the getBounds approach dictate they should.

I was expecting mc._width to always return 150, even when it was
rotated.  After all, the clip's width, from its own POV, hasn't  
changed.  In
fact, I would swear this is what was happening last night -- but,  
sheesh,

maybe not?  If I simply trace mc's _width and _height from the main
timeline, the values returned by those properties give me the data  
I want.

This happens with dot notation as well as onClipEvent(load) {trace()}.

So ... I guess my whole question is moot.  But now I'm scratching my
head.


David
[EMAIL PROTECTED]

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

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


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

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


Re: [Flashcoders] preloader, again (ugh)

2006-03-20 Thread Andy Johnston

G'Day Edward,

Heres my code for a preloader. I use the movieClipLoader for good call 
backs and now onEnterFrame functions (sooo flash 5 ;))


var mcl:MovieClipLoader = new MovieClipLoader();
var loadingListener:Object = new Object();

mcl.addListener(loadingListener);

var target_mc = this.createEmptyMovieClip(loadClipInstance, loadClipDepth);

loadingListener.onLoadStart = function(target:MovieClip) {
   // starting load
};

loadingListener.onLoadProgress = function(target:MovieClip, 
loadedBytes:Number, totalBytes:Number) {

   progressBar._xscale = (loadedBytes/totalBytes)*100;
};

loadingListener.onLoadInit = function(target:MovieClip) {
   // stuff is loaded
};

mcl.loadClip(loadClipPath, target_mc);



you can only test preloaders on a live website.. testing locally or 
within flash will not work, so upload your stuff to a server and test it 
out.


cheers

andy


So you guys tell me that a single frame, single file site with a preloader 100% dynamic is pretty much impossible, ok i accept that. here is my external preloader, any ideas ... site loads, no progress appearance at all. 


// begin code
// -
// text formats section
var format1_fmt:TextFormat = new TextFormat();
with (format1_fmt) {
color = 0xFF;
font = "swfitslim99";
size = 8;
};
// -
function preloader() {
// create movieclip to load swf in
_root.createEmptyMovieClip("target_mc", this.getNextHighestDepth() );
_root.target_mc.loadMovie("site.swf");
// draw preloader
_root.createEmptyMovieClip("preloader_mc", _root.getNextHighestDepth() );
_root.preloader_mc.createTextField("preloader_txt", _root.getNextHighestDepth, 
0, 0, 200, 20);
with (_root.preloader_mc.preloader_txt) {
 embedFonts = true;
 selectable = false;
 setNewTextFormat(format1_fmt);
 text = "LOADING SITE: 00"
};
_root.preloader_mc._x = (Stage.width/2) - 
(_root.preloader_mc.preloader_txt._width/2);
_root.preloader_mc._y = (Stage.height/2) - 
(_root.preloader_mc.preloader_txt._height/2);
// -
// preload 
_root.onEnterFrame = function() {

 tBytes = _root.target_mc.getBytesTotal();
 bLoaded = _root.target_mc.getBytesLoaded();
 percent = Math.round((bLoaded/tBytes)*100);
 if (bLoaded < tBytes) {
  _root.preloader_mc.preloader_txt.text = "loading site: " + percent;
 } else {
  trace("completed loading!");
  _root.preloader_mc.removeMovieClip();
  _root.preloader_mc.preloader_txt.removeTextField();
  delete this.onEnterFrame;
 };
};
};
// -
preloader();
// -

// http://www.murderdesign.com/preloader.swf
___
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] Determining width of rotatedMC'simaginaryboundingbox

2006-03-20 Thread Yotam Laufer
Hi David,

First of all you're welcome. When using the mathematical approace, are you
feeding the Math.sin (a) method radian or degrees? It should be radians
could that be your problem?

Good luck, Yotam.
___
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] preloader, again (ugh)

2006-03-20 Thread Edward Hotchkiss
So you guys tell me that a single frame, single file site with a preloader 100% 
dynamic is pretty much impossible, ok i accept that. here is my external 
preloader, any ideas ... site loads, no progress appearance at all. 

// begin code
// -
// text formats section
var format1_fmt:TextFormat = new TextFormat();
with (format1_fmt) {
 color = 0xFF;
 font = "swfitslim99";
 size = 8;
};
// -
function preloader() {
 // create movieclip to load swf in
 _root.createEmptyMovieClip("target_mc", this.getNextHighestDepth() );
 _root.target_mc.loadMovie("site.swf");
 // draw preloader
 _root.createEmptyMovieClip("preloader_mc", _root.getNextHighestDepth() );
 _root.preloader_mc.createTextField("preloader_txt", _root.getNextHighestDepth, 
0, 0, 200, 20);
 with (_root.preloader_mc.preloader_txt) {
  embedFonts = true;
  selectable = false;
  setNewTextFormat(format1_fmt);
  text = "LOADING SITE: 00"
 };
 _root.preloader_mc._x = (Stage.width/2) - 
(_root.preloader_mc.preloader_txt._width/2);
 _root.preloader_mc._y = (Stage.height/2) - 
(_root.preloader_mc.preloader_txt._height/2);
 // -
 // preload 
 _root.onEnterFrame = function() {
  tBytes = _root.target_mc.getBytesTotal();
  bLoaded = _root.target_mc.getBytesLoaded();
  percent = Math.round((bLoaded/tBytes)*100);
  if (bLoaded < tBytes) {
   _root.preloader_mc.preloader_txt.text = "loading site: " + percent;
  } else {
   trace("completed loading!");
   _root.preloader_mc.removeMovieClip();
   _root.preloader_mc.preloader_txt.removeTextField();
   delete this.onEnterFrame;
  };
 };
};
// -
preloader();
// -

// http://www.murderdesign.com/preloader.swf
___
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] proportional image/clip scaling

2006-03-20 Thread Alan Queen
anybody have the math handy to proportionally scale one clip to another?

Meaning, let's say I load in an image that is 100w - 300h.

and I want to display it in an area that is 320w - 240h.

So I want to scale the original image clip to fit within the display
area, but show the entire image.

--
- Alan Queen
___
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] Determining width of rotatedMC'simaginaryboundingbox

2006-03-20 Thread David Stiller
Danny,

>> My MC is a 150x30 rectangle rotated to 45 degrees.
>> My results show width and height both at 180, when
>> they should be closer to 130.  Here's my code:

> That's odd: when I go through those calculations
> with a calculator, they come out with about 130,
> just as you say [...].  Are you sure your mc._width
> and mc._height are returning the correct values?

Well, I checked, and am beginning to feel dumber and dumberer.
Somewhere, when I was dealing with this last night, my head must have been
clouded up.  If I take a 150x30 movie clip in the IDE and rotate it, the
width and height, as indicated in the Properties inspector, updates the way
your calculation and the getBounds approach dictate they should.

I was expecting mc._width to always return 150, even when it was
rotated.  After all, the clip's width, from its own POV, hasn't changed.  In
fact, I would swear this is what was happening last night -- but, sheesh,
maybe not?  If I simply trace mc's _width and _height from the main
timeline, the values returned by those properties give me the data I want.
This happens with dot notation as well as onClipEvent(load) {trace()}.

So ... I guess my whole question is moot.  But now I'm scratching my
head.


David
[EMAIL PROTECTED]

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

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


[Flashcoders] When are component getters and setters from the panel called

2006-03-20 Thread Manuel Saint-Victor
If I'm building a custom component that does not use the V@ architecture and
am users the getters and setters within the component inspector panel
(Inspectable etc) when are these called?  Are they called automatically by
the person putting the info in the panel or are they like other functions
where during my inti() method I need to call those setters to get those
values into those variables.

To give a more concrete example if I have a set boxColor(selectedColor){
  _boxColor=selectedColor;
}

is there a point where this is automatically called for a non-V2 component?

Thanks in advance.
Mani
___
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] CSS with input text

2006-03-20 Thread Marcelo Volmaro

On the SVN, under deploy... i don´t have it currently online...

On Mon, 20 Mar 2006 17:34:56 -0300, Danny Kodicek  
<[EMAIL PROTECTED]> wrote:



Take a look at FlashTextArea at osflash.

I already did all that work.

Ooh, I was looking for a while at text editors, but I missed that one.  
Got a

demo up somewhere? (incidentally, I got mine working pretty well, so I'll
probably not need it, but if it's more reliable, I might switch)

Danny





--
_
Marcelo Volmaro
___
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] batch converting flv to swf

2006-03-20 Thread Marc Hoffman

Search at
http://chattyfig.figleaf.com/mailman/mmsearch/flashcoders

for "batch fla swf"

First return is "Batch FLA 2 SWF exporter !"
http://chattyfig.figleaf.com/mailman/htdig/flashcoders/2003-February/062992.html

- Marc


At 11:39 AM 3/20/2006, you wrote:

I have to convert a ton of flv into swf with embedded flv track and 
playback controls... (damned linux offline compatibility)


is there a tool to automatize this process?

thanks in advance

alfonso florio



___
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 MX2004, Video CD with "auto-play" {Director v. Flash??}

2006-03-20 Thread Ian Thomas
Michael,
  I use Flash for CD authoring all the time. The only caveat, really,
is that I use Zinc as a wrapper for the main Flash application rather
than just using Flash projectors, as I want extended functionality
(Resolution changing, registry access, file access, that sort of
thing). But other than that I've never had any issues relating to
running Flash off the CD at all - works well for me.

Cheers,
  Ian

On 3/20/06, Michael Hulse <[EMAIL PROTECTED]> wrote:
> On Mar 20, 2006, at 2:04 AM, Jim Tann wrote:
> > I reguarly use flash for projects like this. I don't like director,
> > just
> > a personal thing. I never feel my assets are organized when using it &
> > I
> > hate Lingo. But I guess what it comes down to is what you are used to.
> > I
> > love flash & hate director.
>
___
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] Alphabetize XML

2006-03-20 Thread eric dolecki
Thanks all - i converted it over to an an array of objs & it works
perfectly. No need for xpath at 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] CSS with input text

2006-03-20 Thread Danny Kodicek
>Take a look at FlashTextArea at osflash.
I already did all that work.

Ooh, I was looking for a while at text editors, but I missed that one. Got a
demo up somewhere? (incidentally, I got mine working pretty well, so I'll
probably not need it, but if it's more reliable, I might switch)

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] Determining width of rotated MC'simaginaryboundingbox

2006-03-20 Thread Danny Kodicek

> >> Adrian Park wrote:
> >> if you could enclose the rotated clip in a wrapper
> >> clip [...] you will have the width of imaginery
> >> bounding box.
>
> True, but in this scenario I'm writing a class that needs to
> determine this with the user's MCs as they are.  Definitely the way I'd
go,
> though, if the MCs were under my control.  :)
>
> > Danny Kodicek wrote:
> > assuming your original clip is rectangular; or that
> > you;re looking for the dimensions of *its* bounding
> > box when rotated,
>
> Bingo!
>
> > then at an angle of A, the new width will be
> > Math.abs(w*cos(A))+Math.abs(h*sin(A)), the new height will be
> > Math.abs(w*sin(A))+Math.abs(h*cos(A)).
> > Remember that if A is measured in degrees, you need
> > to multiply it by pi/180 to convert to radians.
>
> In my implementation, that gets *close*, but not quite there.  My MC
> is a 150x30 rectangle rotated to 45 degrees.  My results show width and
> height both at 180, when they should be closer to 130.  Here's my code:
>
> var a:Number = mc._rotation * Math.PI / 180;
> //
> var w:Number = Math.abs(mc._width * Math.cos(a)) + Math.abs(mc._height *
> Math.sin(a));
> var h:Number = Math.abs(mc._width * Math.sin(a)) + Math.abs(mc._height *
> Math.cos(a));

That's odd: when I go through those calculations with a calculator, they
come out with about 130, just as you say (it's a simple calculation, since
cos(a) and sin(a) are both the same value, 1/sqrt(2), so the total is just
180/sqrt(2)). Are you sure your mc._width and mc._height are returning the
correct values?

Best
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] Alphabetize XML

2006-03-20 Thread Johannes Nel
yeah, your right, dunnot why i was thinking that...

On 3/20/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:
>
> >>a hard ine break will also cause a cause attributes to break.
>
> Hard line breaks never cause my attributes to break.
>
> Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com
>
>
>
>
>
>
>
>
>
>
> >>-Original Message-
> >>From: [EMAIL PROTECTED] [mailto:flashcoders-
> >>[EMAIL PROTECTED] On Behalf Of Johannes Nel
> >>Sent: Monday, March 20, 2006 2:55 PM
> >>To: Flashcoders mailing list
> >>Subject: Re: [Flashcoders] Alphabetize XML
> >>
> >>a hard ine break will also cause a cause attributes to break. anyway,
> >>if it cannot be done on the server (aka in your select statement) then
> the
> >>best is to get it into an array and use the sortOn functionality. i am
> 100%
> >>that this can be doen with xfactorstusdio's path  implementation as
> well,
> >>but i bet you that using that will be slower.
> >>
> >>On 3/20/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:
> >>>
> >>> >>that;s not always appropriate, for some languaes you have to use
> >>> >>CDATA.so extra nodes aore needed
> >>>
> >>> I agree, it's not always appropriate, but I didn't see any CDATA
> nodes
> >>> in his example.
> >>>
> >>> Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> >>-Original Message-
> >>> >>From: [EMAIL PROTECTED]
> [mailto:flashcoders-
> >>> >>[EMAIL PROTECTED] On Behalf Of Martin Weiser
> >>> >>Sent: Monday, March 20, 2006 2:44 PM
> >>> >>To: Flashcoders mailing list
> >>> >>Subject: Re: [Flashcoders] Alphabetize XML
> >>> >>
> >>> >>that;s not always appropriate, for some languaes you have to use
> >>> >>CDATA.so extra nodes aore needed
> >>> >>
> >>> >>M
> >>> >>
> >>> >>
> >>> >>- Original Message -
> >>> >>From: "Merrill, Jason" <[EMAIL PROTECTED]>
> >>> >>To: "Flashcoders mailing list" 
> >>> >>Sent: Monday, March 20, 2006 8:32 PM
> >>> >>Subject: RE: [Flashcoders] Alphabetize XML
> >>> >>
> >>> >>
> >>> >>> You could also save some file space and processing time by
> >>> structuring
> >>> >>> it like this instead:
> >>> >>>
> >>> >>> 
> >>> >>> 
> >>> >>> 
> >>> >>> 
> >>> >>>
> >>> >>>
> >>> >>> Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com
> >>> >>>
> >>> >>>
> >>> >>>
> >>> >>>
> >>> >>>
> >>> >>>
> >>> >>>
> >>> >>>
> >>> >>>
> >>> >-Original Message-
> >>> >From: [EMAIL PROTECTED]
> >>> [mailto:flashcoders-
> >>> >[EMAIL PROTECTED] On Behalf Of eric dolecki
> >>> >Sent: Monday, March 20, 2006 2:28 PM
> >>> >To: Flashcoders mailing list
> >>> >Subject: Re: [Flashcoders] Alphabetize XML
> >>> >
> >>> >Ahh - thats right. Forgot about sortOn - thanks :)
> >>> >
> >>> >On 3/20/06, Martin Weiser <[EMAIL PROTECTED]> wrote:
> >>> >>
> >>> >>
> >>> >> just parse it in mode:  to object:
> {name:Alice,title:foo}
> >>> and
> >>> >>> push
> >>> >> to
> >>> >> array
> >>> >>
> >>> >> the use array.sortOn(property),
> >>> >> much more is in livedocs, on flags like asc,desc, numerical
> etc
> >>> >>
> >>> >> M
> >>> >>
> >>> >>
> >>> >>
> >>> >> - Original Message -
> >>> >> From: "eric dolecki" <[EMAIL PROTECTED]>
> >>> >> To: "Flashcoders mailing list"
> >>> 
> >>> >> Sent: Monday, March 20, 2006 7:27 PM
> >>> >> Subject: [Flashcoders] Alphabetize XML
> >>> >>
> >>> >>
> >>> >> > Quick question...
> >>> >> >
> >>> >> > I have XML coming in with nodes something like this:
> >>> >> >
> >>> >> > 
> >>> >> > 
> >>> >> > Alice
> >>> >> > Foo
> >>> >> > 
> >>> >> > 
> >>> >> > John
> >>> >> > Bar
> >>> >> > 
> >>> >> > 
> >>> >> >
> >>> >> > I'd like to be able to sort the item chunks alphabetically
> on
> >>> the
> >>> >>> name
> >>> >> > nodes. Whats the best approach to do this?
> >>> >> > ___
> >>> >> > 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 MX2004, Video CD with "auto-play" {Director v. Flash??}

2006-03-20 Thread Michael Hulse

On Mar 20, 2006, at 2:04 AM, Jim Tann wrote:
I reguarly use flash for projects like this. I don't like director, 
just
a personal thing. I never feel my assets are organized when using it & 
I
hate Lingo. But I guess what it comes down to is what you are used to. 
I

love flash & hate director.


I think I am in same boat... I only think director has more to offer 
when it comes to 3D.



What do you prefer using?


Flash, for sure.


Are you used to using both?


Used to be, but it has been a while since I used Director regularly... 
couple years or more...



Do you need any of the plugins director gives you access to
or can flash handle everything you need to do?


Seems like Flash should be able to do it all... this should be a basic 
interface, not any animation (just rollovers) and I would have it jump 
to 3 or 4 different videos.


I had mentioned Flash as an option to client, but he stated that he 
thought that Flash did not make graphics as crisp (I disagree).


Maybe he was not using .png's, or maybe he was compressing them badly 
for other projects... But I have gotten great-looking and crisp 
graphics by using .png's (mostly for transparency) and turning-off the 
"allow smoothing" option for the imported bitmaps.


I think that the person who hired me is just used to Director, and I am 
used to Flash... It sounds like he really wants to go the Director 
route, but he is open to Flash if I can get the graphics to be crisp 
and behave just like director when it comes to CD-authoring.


Anyone know of any good links to tutorials when it comes to 
CD-authoring with Flash? I am more used to using flash for web... I 
guess if I make it a projector (self-contained executable) then people 
will not need a plugin...


Any tips, or pitfalls, I should be aware of when it comes to using 
Flash for CD-authoring?


Many many thanks Jim/all,
I appreciate your input and responses.
Cheers,
Micky

___
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] Alphabetize XML

2006-03-20 Thread Merrill, Jason
>>a hard ine break will also cause a cause attributes to break. 

Hard line breaks never cause my attributes to break.  

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Johannes Nel
>>Sent: Monday, March 20, 2006 2:55 PM
>>To: Flashcoders mailing list
>>Subject: Re: [Flashcoders] Alphabetize XML
>>
>>a hard ine break will also cause a cause attributes to break. anyway,
>>if it cannot be done on the server (aka in your select statement) then
the
>>best is to get it into an array and use the sortOn functionality. i am
100%
>>that this can be doen with xfactorstusdio's path  implementation as
well,
>>but i bet you that using that will be slower.
>>
>>On 3/20/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:
>>>
>>> >>that;s not always appropriate, for some languaes you have to use
>>> >>CDATA.so extra nodes aore needed
>>>
>>> I agree, it's not always appropriate, but I didn't see any CDATA
nodes
>>> in his example.
>>>
>>> Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> >>-Original Message-
>>> >>From: [EMAIL PROTECTED]
[mailto:flashcoders-
>>> >>[EMAIL PROTECTED] On Behalf Of Martin Weiser
>>> >>Sent: Monday, March 20, 2006 2:44 PM
>>> >>To: Flashcoders mailing list
>>> >>Subject: Re: [Flashcoders] Alphabetize XML
>>> >>
>>> >>that;s not always appropriate, for some languaes you have to use
>>> >>CDATA.so extra nodes aore needed
>>> >>
>>> >>M
>>> >>
>>> >>
>>> >>- Original Message -
>>> >>From: "Merrill, Jason" <[EMAIL PROTECTED]>
>>> >>To: "Flashcoders mailing list" 
>>> >>Sent: Monday, March 20, 2006 8:32 PM
>>> >>Subject: RE: [Flashcoders] Alphabetize XML
>>> >>
>>> >>
>>> >>> You could also save some file space and processing time by
>>> structuring
>>> >>> it like this instead:
>>> >>>
>>> >>> 
>>> >>> 
>>> >>> 
>>> >>> 
>>> >>>
>>> >>>
>>> >>> Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com
>>> >>>
>>> >>>
>>> >>>
>>> >>>
>>> >>>
>>> >>>
>>> >>>
>>> >>>
>>> >>>
>>> >-Original Message-
>>> >From: [EMAIL PROTECTED]
>>> [mailto:flashcoders-
>>> >[EMAIL PROTECTED] On Behalf Of eric dolecki
>>> >Sent: Monday, March 20, 2006 2:28 PM
>>> >To: Flashcoders mailing list
>>> >Subject: Re: [Flashcoders] Alphabetize XML
>>> >
>>> >Ahh - thats right. Forgot about sortOn - thanks :)
>>> >
>>> >On 3/20/06, Martin Weiser <[EMAIL PROTECTED]> wrote:
>>> >>
>>> >>
>>> >> just parse it in mode:  to object:
{name:Alice,title:foo}
>>> and
>>> >>> push
>>> >> to
>>> >> array
>>> >>
>>> >> the use array.sortOn(property),
>>> >> much more is in livedocs, on flags like asc,desc, numerical
etc
>>> >>
>>> >> M
>>> >>
>>> >>
>>> >>
>>> >> - Original Message -
>>> >> From: "eric dolecki" <[EMAIL PROTECTED]>
>>> >> To: "Flashcoders mailing list"
>>> 
>>> >> Sent: Monday, March 20, 2006 7:27 PM
>>> >> Subject: [Flashcoders] Alphabetize XML
>>> >>
>>> >>
>>> >> > Quick question...
>>> >> >
>>> >> > I have XML coming in with nodes something like this:
>>> >> >
>>> >> > 
>>> >> > 
>>> >> > Alice
>>> >> > Foo
>>> >> > 
>>> >> > 
>>> >> > John
>>> >> > Bar
>>> >> > 
>>> >> > 
>>> >> >
>>> >> > I'd like to be able to sort the item chunks alphabetically
on
>>> the
>>> >>> name
>>> >> > nodes. Whats the best approach to do this?
>>> >> > ___
>>> >> > 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
>>> >>> NOTICE:
>>> >>> This message is for the designated recipient only and 

RE: [Flashcoders] Inconsistent Constant

2006-03-20 Thread Scott Hyndman
Just a quick note on this. There are ways to prevent variables from being 
overwritten. ASSetPropFlags.

Here is a description as to its usage.

http://www.flashguru.co.uk/assetpropflags/

It's kind of strange, but it's useful once and awhile.

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of Jim Tann
Sent:   Mon 3/20/2006 1:27 PM
To: Flashcoders mailing list
Cc: 
Subject:RE: [Flashcoders] Inconsistent Constant

I agree with that. I set constants like that so I cant overwrite them on
accident.

Jim

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steve
Webster
Sent: 20 March 2006 17:36
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Inconsistent Constant

Ian,

> Flash doesn't have the concept of constants, so you couldn't
> enforce a constant even if you wanted to (except by a hack like
> defining a null set() function, but that's beside the point a bit)...
> you can only suggest that specific things should be constant by
> convention

It's not really beside the point. We define constants in this way...

class Test {
public static function get SOME_CONSTANT():String {
return "value";
}
}

...which works perfectly.

-- 
Steve Webster
Head of Development

Featurecreep Ltd.
http://www.featurecreep.com
14 Orchard Street, Bristol, BS1 5EH
0117 905 5047


___
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] Alphabetize XML

2006-03-20 Thread Johannes Nel
a hard ine break will also cause a cause attributes to break. anyway,
if it cannot be done on the server (aka in your select statement) then the
best is to get it into an array and use the sortOn functionality. i am 100%
that this can be doen with xfactorstusdio's path  implementation as well,
but i bet you that using that will be slower.

On 3/20/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:
>
> >>that;s not always appropriate, for some languaes you have to use
> >>CDATA.so extra nodes aore needed
>
> I agree, it's not always appropriate, but I didn't see any CDATA nodes
> in his example.
>
> Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com
>
>
>
>
>
>
>
>
>
>
> >>-Original Message-
> >>From: [EMAIL PROTECTED] [mailto:flashcoders-
> >>[EMAIL PROTECTED] On Behalf Of Martin Weiser
> >>Sent: Monday, March 20, 2006 2:44 PM
> >>To: Flashcoders mailing list
> >>Subject: Re: [Flashcoders] Alphabetize XML
> >>
> >>that;s not always appropriate, for some languaes you have to use
> >>CDATA.so extra nodes aore needed
> >>
> >>M
> >>
> >>
> >>- Original Message -
> >>From: "Merrill, Jason" <[EMAIL PROTECTED]>
> >>To: "Flashcoders mailing list" 
> >>Sent: Monday, March 20, 2006 8:32 PM
> >>Subject: RE: [Flashcoders] Alphabetize XML
> >>
> >>
> >>> You could also save some file space and processing time by
> structuring
> >>> it like this instead:
> >>>
> >>> 
> >>> 
> >>> 
> >>> 
> >>>
> >>>
> >>> Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >-Original Message-
> >From: [EMAIL PROTECTED]
> [mailto:flashcoders-
> >[EMAIL PROTECTED] On Behalf Of eric dolecki
> >Sent: Monday, March 20, 2006 2:28 PM
> >To: Flashcoders mailing list
> >Subject: Re: [Flashcoders] Alphabetize XML
> >
> >Ahh - thats right. Forgot about sortOn - thanks :)
> >
> >On 3/20/06, Martin Weiser <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >> just parse it in mode:  to object: {name:Alice,title:foo}
> and
> >>> push
> >> to
> >> array
> >>
> >> the use array.sortOn(property),
> >> much more is in livedocs, on flags like asc,desc, numerical etc
> >>
> >> M
> >>
> >>
> >>
> >> - Original Message -
> >> From: "eric dolecki" <[EMAIL PROTECTED]>
> >> To: "Flashcoders mailing list"
> 
> >> Sent: Monday, March 20, 2006 7:27 PM
> >> Subject: [Flashcoders] Alphabetize XML
> >>
> >>
> >> > Quick question...
> >> >
> >> > I have XML coming in with nodes something like this:
> >> >
> >> > 
> >> > 
> >> > Alice
> >> > Foo
> >> > 
> >> > 
> >> > John
> >> > Bar
> >> > 
> >> > 
> >> >
> >> > I'd like to be able to sort the item chunks alphabetically on
> the
> >>> name
> >> > nodes. Whats the best approach to do this?
> >> > ___
> >> > 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
> >>> NOTICE:
> >>> This message is for the designated recipient only and may contain
> >>> privileged or confidential information. If you have received it in
> error,
> >>> please notify the sender immediately and delete the original. Any
> other
> >>> use of this e-mail by you is prohibited.
> >>> ___
> >>> 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 subscripti

RE: [Flashcoders] Determining width of rotated MC's imaginaryboundingbox

2006-03-20 Thread David Stiller
Yotam,

> Correct usage of getBounds will give you
> the correct result. You have to point the
> coordinate scope of the getBounds method
> to the parent of the mc.

Wow!  Yes, thank you, Yotam.  Now I'm slapping my forehead, too.  It
doesn't get easier than that.

I'm still interested in the geometry approach, for non-ActionScript
applications, so if anyone can show me where I stepped wrong with Danny's
suggestion, I'd appreciate it.


David
[EMAIL PROTECTED]

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

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


RE: [Flashcoders] Alphabetize XML

2006-03-20 Thread Merrill, Jason
>>that;s not always appropriate, for some languaes you have to use
>>CDATA.so extra nodes aore needed

I agree, it's not always appropriate, but I didn't see any CDATA nodes
in his example.   

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Martin Weiser
>>Sent: Monday, March 20, 2006 2:44 PM
>>To: Flashcoders mailing list
>>Subject: Re: [Flashcoders] Alphabetize XML
>>
>>that;s not always appropriate, for some languaes you have to use
>>CDATA.so extra nodes aore needed
>>
>>M
>>
>>
>>- Original Message -
>>From: "Merrill, Jason" <[EMAIL PROTECTED]>
>>To: "Flashcoders mailing list" 
>>Sent: Monday, March 20, 2006 8:32 PM
>>Subject: RE: [Flashcoders] Alphabetize XML
>>
>>
>>> You could also save some file space and processing time by
structuring
>>> it like this instead:
>>>
>>> 
>>> 
>>> 
>>> 
>>>
>>>
>>> Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>-Original Message-
>From: [EMAIL PROTECTED]
[mailto:flashcoders-
>[EMAIL PROTECTED] On Behalf Of eric dolecki
>Sent: Monday, March 20, 2006 2:28 PM
>To: Flashcoders mailing list
>Subject: Re: [Flashcoders] Alphabetize XML
>
>Ahh - thats right. Forgot about sortOn - thanks :)
>
>On 3/20/06, Martin Weiser <[EMAIL PROTECTED]> wrote:
>>
>>
>> just parse it in mode:  to object: {name:Alice,title:foo}
and
>>> push
>> to
>> array
>>
>> the use array.sortOn(property),
>> much more is in livedocs, on flags like asc,desc, numerical etc
>>
>> M
>>
>>
>>
>> - Original Message -
>> From: "eric dolecki" <[EMAIL PROTECTED]>
>> To: "Flashcoders mailing list"

>> Sent: Monday, March 20, 2006 7:27 PM
>> Subject: [Flashcoders] Alphabetize XML
>>
>>
>> > Quick question...
>> >
>> > I have XML coming in with nodes something like this:
>> >
>> > 
>> > 
>> > Alice
>> > Foo
>> > 
>> > 
>> > John
>> > Bar
>> > 
>> > 
>> >
>> > I'd like to be able to sort the item chunks alphabetically on
the
>>> name
>> > nodes. Whats the best approach to do this?
>> > ___
>> > 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
>>> NOTICE:
>>> This message is for the designated recipient only and may contain
>>> privileged or confidential information. If you have received it in
error,
>>> please notify the sender immediately and delete the original. Any
other
>>> use of this e-mail by you is prohibited.
>>> ___
>>> 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] Alphabetize XML

2006-03-20 Thread Martin Weiser
that;s not always appropriate, for some languaes you have to use 
CDATA.so extra nodes aore needed


M


- Original Message - 
From: "Merrill, Jason" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Monday, March 20, 2006 8:32 PM
Subject: RE: [Flashcoders] Alphabetize XML



You could also save some file space and processing time by structuring
it like this instead:







Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of eric dolecki
Sent: Monday, March 20, 2006 2:28 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Alphabetize XML

Ahh - thats right. Forgot about sortOn - thanks :)

On 3/20/06, Martin Weiser <[EMAIL PROTECTED]> wrote:



just parse it in mode:  to object: {name:Alice,title:foo} and

push

to
array

the use array.sortOn(property),
much more is in livedocs, on flags like asc,desc, numerical etc

M



- Original Message -
From: "eric dolecki" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" 
Sent: Monday, March 20, 2006 7:27 PM
Subject: [Flashcoders] Alphabetize XML


> Quick question...
>
> I have XML coming in with nodes something like this:
>
> 
> 
> Alice
> Foo
> 
> 
> John
> Bar
> 
> 
>
> I'd like to be able to sort the item chunks alphabetically on the

name

> nodes. Whats the best approach to do this?
> ___
> 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

NOTICE:
This message is for the designated recipient only and may contain 
privileged or confidential information. If you have received it in error, 
please notify the sender immediately and delete the original. Any other 
use of this e-mail by you is prohibited.

___
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] batch converting flv to swf

2006-03-20 Thread Alfonso Florio
I have to convert a ton of flv into swf with embedded flv track and 
playback controls... (damned linux offline compatibility)


is there a tool to automatize this process?

thanks in advance

alfonso florio

___
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] Alphabetize XML

2006-03-20 Thread Merrill, Jason
You could also save some file space and processing time by structuring
it like this instead:


 
 



Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com









>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of eric dolecki
>>Sent: Monday, March 20, 2006 2:28 PM
>>To: Flashcoders mailing list
>>Subject: Re: [Flashcoders] Alphabetize XML
>>
>>Ahh - thats right. Forgot about sortOn - thanks :)
>>
>>On 3/20/06, Martin Weiser <[EMAIL PROTECTED]> wrote:
>>>
>>>
>>> just parse it in mode:  to object: {name:Alice,title:foo} and
push
>>> to
>>> array
>>>
>>> the use array.sortOn(property),
>>> much more is in livedocs, on flags like asc,desc, numerical etc
>>>
>>> M
>>>
>>>
>>>
>>> - Original Message -
>>> From: "eric dolecki" <[EMAIL PROTECTED]>
>>> To: "Flashcoders mailing list" 
>>> Sent: Monday, March 20, 2006 7:27 PM
>>> Subject: [Flashcoders] Alphabetize XML
>>>
>>>
>>> > Quick question...
>>> >
>>> > I have XML coming in with nodes something like this:
>>> >
>>> > 
>>> > 
>>> > Alice
>>> > Foo
>>> > 
>>> > 
>>> > John
>>> > Bar
>>> > 
>>> > 
>>> >
>>> > I'd like to be able to sort the item chunks alphabetically on the
name
>>> > nodes. Whats the best approach to do this?
>>> > ___
>>> > 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
NOTICE:
This message is for the designated recipient only and may contain privileged or 
confidential information. If you have received it in error, please notify the 
sender immediately and delete the original. Any other use of this e-mail by you 
is prohibited.
___
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] loading images into in cell renderer datagrid

2006-03-20 Thread Rich Rodecker
i have a datagrid that uses a cell renderer for one of the columns. 
This cell renderer uses a Loader component to an load image into it. 
For most of the rows in the dg, that works fine, but some rows just
refuse to load the image...and it's always the same images.

I thought that the images might have been bad, but i tested them in a
Loader in a new doc and they load fine, so I'm guessing i'm running
into some wierd dg issue.

I also thought it may have been the fact that some of my rows were not
visible at the time the datagrid loads...and maybe the dg would render
those rows until needed.  however I made all my rows fit into the
visible area of the datagrid, and the same problem, some images just
wont load.

any ideas whats goin on?
___
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] Alphabetize XML

2006-03-20 Thread eric dolecki
Ahh - thats right. Forgot about sortOn - thanks :)

On 3/20/06, Martin Weiser <[EMAIL PROTECTED]> wrote:
>
>
> just parse it in mode:  to object: {name:Alice,title:foo} and push
> to
> array
>
> the use array.sortOn(property),
> much more is in livedocs, on flags like asc,desc, numerical etc
>
> M
>
>
>
> - Original Message -
> From: "eric dolecki" <[EMAIL PROTECTED]>
> To: "Flashcoders mailing list" 
> Sent: Monday, March 20, 2006 7:27 PM
> Subject: [Flashcoders] Alphabetize XML
>
>
> > Quick question...
> >
> > I have XML coming in with nodes something like this:
> >
> > 
> > 
> > Alice
> > Foo
> > 
> > 
> > John
> > Bar
> > 
> > 
> >
> > I'd like to be able to sort the item chunks alphabetically on the name
> > nodes. Whats the best approach to do this?
> > ___
> > 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] Alphabetize XML

2006-03-20 Thread Paul BH
dont know enough about how you are getting this XML, but if you have
any way of sorting the structure at the server, it'll be a whole lot
quicker...



On 3/20/06, Martin Weiser <[EMAIL PROTECTED]> wrote:
>
> just parse it in mode:  to object: {name:Alice,title:foo} and push to
> array
>
> the use array.sortOn(property),
> much more is in livedocs, on flags like asc,desc, numerical etc
>
> M
>
>
>
> - Original Message -
> From: "eric dolecki" <[EMAIL PROTECTED]>
> To: "Flashcoders mailing list" 
> Sent: Monday, March 20, 2006 7:27 PM
> Subject: [Flashcoders] Alphabetize XML
>
>
> > Quick question...
> >
> > I have XML coming in with nodes something like this:
> >
> > 
> > 
> > Alice
> > Foo
> > 
> > 
> > John
> > Bar
> > 
> > 
> >
> > I'd like to be able to sort the item chunks alphabetically on the name
> > nodes. Whats the best approach to do this?
> > ___
> > 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] CSS with input text

2006-03-20 Thread Marcelo Volmaro

Take a look at FlashTextArea at osflash.
I already did all that work.

On Mon, 20 Mar 2006 09:10:46 -0300, Danny Kodicek  
<[EMAIL PROTECTED]> wrote:


I don't know if this will help you at all, but the TextField.Stylesheet  
class has a transform() method which will convert _one_ of your style  
objects from the Stylesheet (ie. The one you maybe assigned for the   
or the  element or  element) into a TextFormat  
object which you can then apply to your TextField with setNewTextFormat.


Hmm - I'm not sure how this works (the transform() docs are possibly the  
most useless I've ever seen!). As far as I can make out, transform() is  
the internal function used by the StyleSheet object to translate it into  
textFormats. But I can't quite tell what happens next... Can you give me  
an example of what you mean in practice?


Right now I'm fairly close to dropping styleSheets altogether. My  
current plan is to have a parser that translates the HTML into my own  
internal XML format, so that the textField is really a fairly dumb  
container, but really this is turning into such a nasty hack that I'm  
not terribly happy about it.


Danny

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

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




--
_
Marcelo Volmaro
___
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] alert box component mess up

2006-03-20 Thread Rodrigo Guerra
Hi all, 

i'm using a alert box that i got here: http://www.rich-media-project.com/, 
(very good product, with all the icons already set.) also, i'm using this 
component with some usual flash components like buttons and comboboxes.

i realized that the Alert component dosen't work very well with the componts 
that came with flash. in the site it's said  "Macromedia V2 Component 
Architecture" and "Compatible player : Flash Player 8", moreover just dragging 
this obect to stage along with a button or a combo shows the error.

and testing the movie give me the error.

example: a button and a combo box (both flash UI components in the stage and 
the Alert Component in the library.

http://www.alumni.org.br/tmp/rodrigo/pergv3.swf

using flash IDE /player = 8.

thank you very much, 
rodrigo.___
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] Inconsistent Constant

2006-03-20 Thread Ian Thomas
Steve,
  Fine. :-) My two-second thought works, then. Haven't tried that, but
may well start using it - it only just occurred to me as a method as I
was writing the post. :-)

I stand corrected. :-)

That doesn't gainsay the second part of the posting - there really
isn't enough detail in that original post to answer the poster's
question.

Ian

On 3/20/06, Steve Webster <[EMAIL PROTECTED]> wrote:
> Ian,
>
> > Flash doesn't have the concept of constants, so you couldn't
> > enforce a constant even if you wanted to (except by a hack like
> > defining a null set() function, but that's beside the point a bit)...
> > you can only suggest that specific things should be constant by
> > convention
>
> It's not really beside the point. We define constants in this way...
>
> class Test {
> public static function get SOME_CONSTANT():String {
> return "value";
> }
> }
>
> ...which works perfectly.
>
>
___
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] Alphabetize XML

2006-03-20 Thread Martin Weiser


just parse it in mode:  to object: {name:Alice,title:foo} and push to 
array


the use array.sortOn(property),
much more is in livedocs, on flags like asc,desc, numerical etc

M



- Original Message - 
From: "eric dolecki" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Monday, March 20, 2006 7:27 PM
Subject: [Flashcoders] Alphabetize XML



Quick question...

I have XML coming in with nodes something like this:



Alice
Foo


John
Bar



I'd like to be able to sort the item chunks alphabetically on the name
nodes. Whats the best approach to do this?
___
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] Un-HQX, Burn in Mac, make ISO in PC, and make copies in PC

2006-03-20 Thread Weyert de Boer
Hi Ramon,

Why don't use hdiutil included on the mac to convert the image or cd into
the correct format? I think even that you use the Disk Utility on the mac
to convert it to the ISO format. Anyway check out the hdiutil console app
too. Works nice.

Yours,
Weyert de Boer
___
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] Inconsistent Constant

2006-03-20 Thread Jim Tann
I agree with that. I set constants like that so I cant overwrite them on
accident.

Jim

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steve
Webster
Sent: 20 March 2006 17:36
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Inconsistent Constant

Ian,

> Flash doesn't have the concept of constants, so you couldn't
> enforce a constant even if you wanted to (except by a hack like
> defining a null set() function, but that's beside the point a bit)...
> you can only suggest that specific things should be constant by
> convention

It's not really beside the point. We define constants in this way...

class Test {
public static function get SOME_CONSTANT():String {
return "value";
}
}

...which works perfectly.

-- 
Steve Webster
Head of Development

Featurecreep Ltd.
http://www.featurecreep.com
14 Orchard Street, Bristol, BS1 5EH
0117 905 5047


___
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] Alphabetize XML

2006-03-20 Thread eric dolecki
Quick question...

I have XML coming in with nodes something like this:



 Alice
Foo
 

 John
 Bar
 
 

I'd like to be able to sort the item chunks alphabetically on the name
nodes. Whats the best approach to do this?
___
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] Un-HQX, Burn in Mac, make ISO in PC, and make copies in PC

2006-03-20 Thread Jim Tann
I use a pice of software called macimage that lets you make a hybrid cd
on the pc. I have had no trouble wit hit

Jim

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ramon
Miguel M. Tayag
Sent: 20 March 2006 15:11
To: FlashCoders Programming
Subject: [Flashcoders] Un-HQX, Burn in Mac, make ISO in PC,and make
copies in PC

Hi everyone,

I'm just wondering if the procedure I have in the subject will break
the Mac application that's in the HQX.

I know that copying the Mac app to the PC will break the file.  If you
put it back on the Mac, it won't run.

Will putting it on a CD and then making it an ISO on the PC preserve it?

Thanks!
--
Ramon Miguel M. Tayag
Managing Director
Quirkworks
___
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] Determining width of rotated MC's imaginaryboundingbox

2006-03-20 Thread David Stiller
>> Adrian Park wrote:
>> if you could enclose the rotated clip in a wrapper
>> clip [...] you will have the width of imaginery
>> bounding box.

True, but in this scenario I'm writing a class that needs to
determine this with the user's MCs as they are.  Definitely the way I'd go,
though, if the MCs were under my control.  :)

> Danny Kodicek wrote:
> assuming your original clip is rectangular; or that
> you;re looking for the dimensions of *its* bounding
> box when rotated,

Bingo!

> then at an angle of A, the new width will be 
> Math.abs(w*cos(A))+Math.abs(h*sin(A)), the new height will be 
> Math.abs(w*sin(A))+Math.abs(h*cos(A)).
> Remember that if A is measured in degrees, you need
> to multiply it by pi/180 to convert to radians.

In my implementation, that gets *close*, but not quite there.  My MC
is a 150x30 rectangle rotated to 45 degrees.  My results show width and
height both at 180, when they should be closer to 130.  Here's my code:

var a:Number = mc._rotation * Math.PI / 180;
//
var w:Number = Math.abs(mc._width * Math.cos(a)) + Math.abs(mc._height *
Math.sin(a));
var h:Number = Math.abs(mc._width * Math.sin(a)) + Math.abs(mc._height *
Math.cos(a));
//
trace("width: " + w);
trace("height: " + h);


David
[EMAIL PROTECTED]

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

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


Re: [Flashcoders] More Text Embedding Woes

2006-03-20 Thread Éric Thibault

For a quick test...

If the TextFormat's font is the link name of a font in the library... 
would it work properly then?


A+

Ian Thomas wrote:


Hi Eric,

Thanks for that - but it doesn't seem to solve my problem. :-)

I can get getTextExtent() _working_ perfectly happily - I just can't
get it to work using the actual metrics of the embedded font, only
(apparently) of the system version of that font. (Or possibly what's
happening is it's using the metrics of the embedded font but isn't
taking antialiasing into account - or something like that.)

If I turn font embedding off then the field lays text out in exactly
the way that getTextExtent() predicts that it should - if I turn font
embedding on, then the text in the field is slightly wider than
getTextExtent thinks it should be.

What it looks like I need to do is to make getTextExtent() use the
embedded version of the font for it's calculations. And that's where
I'm stumped - I'm using getTextFormat() on the field which has the
font embedded in it, but it looks like that isn't getting through to
getTextExtent().

Cheers,
 Ian

On 3/20/06, Éric Thibault <[EMAIL PROTECTED]> wrote:
 


Hi! Here is some code I've used... maybe could help... It was working!

//The last time I used getTextExtent...

var txt_fmt = new TextFormat();
with(txt_fmt) {
   font = "Arial";
   size = 12;
   bold = true;
   color = "0xBEA875";
   }

   var metrics = txt_fmt.getTextExtent("here is my text...");


this.createTextField("dynamicText",10,0,0,metrics.textFieldWidth,metrics.textFieldHeight);
   dynamicText._visible = 0;
   dynamicText.multiline = false;
   dynamicText.wordWrap = false;
   dynamicText.selectable = false;
   dynamicText.text = MonTexte;
   dynamicText.setTextFormat(txt_fmt);

Éric.


   


___
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

 




--
===

Éric Thibault
Programmeur analyste
Réseau de valorisation de l'enseignement
Université Laval, pavillon Félix-Antoine Savard
Québec, Canada
Tel.: 656-2131 poste 18015
Courriel : [EMAIL PROTECTED]

===

Avis relatif à la confidentialité / Notice of Confidentiality / Advertencia de 
confidencialidad 

___
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] once again: How to interrupt MovieClipLoader.loadClip()

2006-03-20 Thread Roman Blöth

Hello folks,


I know this matter rises nearly as often as the sun, and I've read but 
not kept all these postings here and thought I got it, but now I'm 
giving it a try and it doesn't seem to work.


I have a "mother"-mc which should preload several external swf files 
while the user isn't doing something special. But when the user klicks 
somewhere special, the possibly running download should interrupt (think 
of about 50% MODEM users in germany and larger files to preload) and 
instead immediately start loading another external swf.


Most postings on this matter recommend simply calling

   MovieClipLoader.loadClip("");

I have tried this, and even tried

   MovieClipLoader.loadClip("MoreImportant.swf", targetMc);

but to no use:

In any case the MovieClipLoader finishes the loading progress currently 
running before handling the "empty" or the new download, no matter when 
I try to interrupt the download.


Man, there must be some way to interrupt a running loadClip-progress!?


Any working method highly appreciated!
Best regards,
Roman.

--

---
gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
t [030] 29 36 39 1 - 43 | f [030] 29 66 88 84 | http://www.gosub.de
---

___
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


Fwd: [Flashcoders] Inconsistent Constant

2006-03-20 Thread Steve Webster

Ian,


Flash doesn't have the concept of constants, so you couldn't
enforce a constant even if you wanted to (except by a hack like
defining a null set() function, but that's beside the point a bit)...
you can only suggest that specific things should be constant by
convention


It's not really beside the point. We define constants in this way...

class Test {
public static function get SOME_CONSTANT():String {
return "value";
}
}

...which works perfectly.


PS. Sorry if I sounded a little short in the above e-mail; I sent it  
in a hurry and forgot to add relevant smilies :o)


--
Steve Webster
Head of Development

Featurecreep Ltd.
http://www.featurecreep.com
14 Orchard Street, Bristol, BS1 5EH
0117 905 5047


___
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] Determining width of rotated MC's imaginarybounding box

2006-03-20 Thread Yotam Laufer
Correct usage of getBounds will give you the correct result. You have to
point the coordinate scope of the getBounds method to the parent of the mc.

var o:Object;
o = mc.getBounds (mc._parent);
trace ("w: "+(o.xMax-o.xMin));
trace ("h: "+(o.yMax-o.yMin));
mc._rotation = 45;
o = mc.getBounds (mc._parent);
trace ("w: "+(o.xMax-o.xMin));
trace ("h: "+(o.yMax-o.yMin));

// outputs
/*

w: 114.95
h: 114.95
w: 162.6
h: 162.6

*/


Yotam.
___
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] Inconsistent Constant

2006-03-20 Thread Steve Webster

Ian,


Flash doesn't have the concept of constants, so you couldn't
enforce a constant even if you wanted to (except by a hack like
defining a null set() function, but that's beside the point a bit)...
you can only suggest that specific things should be constant by
convention


It's not really beside the point. We define constants in this way...

class Test {
public static function get SOME_CONSTANT():String {
return "value";
}
}

...which works perfectly.

--
Steve Webster
Head of Development

Featurecreep Ltd.
http://www.featurecreep.com
14 Orchard Street, Bristol, BS1 5EH
0117 905 5047


___
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] Inconsistent Constant

2006-03-20 Thread Ian Thomas
Chris...

Firstly - Flash doesn't have the concept of constants, so you couldn't
enforce a constant even if you wanted to (except by a hack like
defining a null set() function, but that's beside the point a bit)...
you can only suggest that specific things should be constant by
convention i.e. tell all your coders to treat variables in capitals as
constant and not to change their values.

Secondly - who knows? Those variables aren't actually referred to in
the code except for on their defining lines. They could be used for
absolutely anything at all. You'd need to be much clearer on the
purpose of those variables before anyone could tell you if they
'should' be constant. But see my first paragraph.

I could answer more fully if I knew why you were asking, and what the
values were actually supposed to be...

Ian

On 3/20/06, Chris <[EMAIL PROTECTED]> wrote:
> In the following example should maxHeight and maxWidth be constants?
> If not, why?
>
> class Box {
> //accessing a static property through a method.
> //The box class, with methods to set and retreive the
> //value of the class property, numSides.
> //
> //The class property numSides
> private static var numSides:Number = 4;
> //
> private var width:Number;
> private var height:Number;
> private var area:Number;
> //
> //all CAPS denotes constants, values that never change.
> private static var DEFAULT_WIDTH:Number = 30;
> private static var DEFAULT_HEIGHT:Number = 20;
>
> //SHOULD THESE BE CONSTANT
> public static var maxWidth = 250;
> public static var maxHeight = 250;
> //
> //The constructor function.
> public function Box(w:Number, h:Number) {
> if (w == undefined) {
> w = DEFAULT_WIDTH;
> }
> if (h == undefined) {
> h = DEFAULT_HEIGHT;
> }
> width = w;
> height = h;
> //initialize area. This is perfectly legal within a 
> constructor
> area = width*height;
> }
> //Method for setting numSides.
> public function setNumSides(newNumSides:Number):Void {
> numSides = newNumSides;
> }
> //Method for getting numSides.
> public function getNumSides():Number {
> return numSides;
> }
> }
>
___
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] Inconsistent Constant

2006-03-20 Thread Chris
In the following example should maxHeight and maxWidth be constants?  
If not, why?


class Box {
//accessing a static property through a method.
//The box class, with methods to set and retreive the
//value of the class property, numSides.
//
//The class property numSides
private static var numSides:Number = 4;
//
private var width:Number;
private var height:Number;
private var area:Number;
//
//all CAPS denotes constants, values that never change.
private static var DEFAULT_WIDTH:Number = 30;
private static var DEFAULT_HEIGHT:Number = 20;

//SHOULD THESE BE CONSTANT
public static var maxWidth = 250;
public static var maxHeight = 250;
//
//The constructor function.
public function Box(w:Number, h:Number) {
if (w == undefined) {
w = DEFAULT_WIDTH;
}
if (h == undefined) {
h = DEFAULT_HEIGHT;
}
width = w;
height = h;
//initialize area. This is perfectly legal within a constructor
area = width*height;
}
//Method for setting numSides.
public function setNumSides(newNumSides:Number):Void {
numSides = newNumSides;
}
//Method for getting numSides.
public function getNumSides():Number {
return numSides;
}
}

___
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] Setting Cursor Location to a Textfield and Enabling Text Input

2006-03-20 Thread Ian Thomas
I think I did something like this immediately after the setFocus()

Selection.setSelection(field.text.length,field.text.length);

HTH,
  Ian

On 3/20/06, Miles, Mathew <[EMAIL PROTECTED]> wrote:
> I can set the cursor location to a textfield when it loads:
>
> Selection.setFocus("id_txt");
>
> However, I cannot enter data in the field without clicking in it first.
> Thanks in advance for any suggestions.
___
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] More Text Embedding Woes

2006-03-20 Thread Ian Thomas
Hi Eric,

Thanks for that - but it doesn't seem to solve my problem. :-)

I can get getTextExtent() _working_ perfectly happily - I just can't
get it to work using the actual metrics of the embedded font, only
(apparently) of the system version of that font. (Or possibly what's
happening is it's using the metrics of the embedded font but isn't
taking antialiasing into account - or something like that.)

If I turn font embedding off then the field lays text out in exactly
the way that getTextExtent() predicts that it should - if I turn font
embedding on, then the text in the field is slightly wider than
getTextExtent thinks it should be.

What it looks like I need to do is to make getTextExtent() use the
embedded version of the font for it's calculations. And that's where
I'm stumped - I'm using getTextFormat() on the field which has the
font embedded in it, but it looks like that isn't getting through to
getTextExtent().

Cheers,
  Ian

On 3/20/06, Éric Thibault <[EMAIL PROTECTED]> wrote:
> Hi! Here is some code I've used... maybe could help... It was working!
>
> //The last time I used getTextExtent...
>
> var txt_fmt = new TextFormat();
> with(txt_fmt) {
> font = "Arial";
> size = 12;
> bold = true;
> color = "0xBEA875";
> }
>
> var metrics = txt_fmt.getTextExtent("here is my text...");
>
>
> this.createTextField("dynamicText",10,0,0,metrics.textFieldWidth,metrics.textFieldHeight);
> dynamicText._visible = 0;
> dynamicText.multiline = false;
> dynamicText.wordWrap = false;
> dynamicText.selectable = false;
> dynamicText.text = MonTexte;
> dynamicText.setTextFormat(txt_fmt);
>
> Éric.
>
>
___
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 Cursor Location to a Textfield and Enabling Text Input

2006-03-20 Thread Miles, Mathew
I can set the cursor location to a textfield when it loads:

Selection.setFocus("id_txt");

However, I cannot enter data in the field without clicking in it first.
Thanks in advance for any suggestions.
___
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] More Text Embedding Woes

2006-03-20 Thread Éric Thibault

Hi! Here is some code I've used... maybe could help... It was working!

//The last time I used getTextExtent...

var txt_fmt = new TextFormat();
with(txt_fmt) {
   font = "Arial";
   size = 12;
   bold = true;
   color = "0xBEA875";
   }

   var metrics = txt_fmt.getTextExtent("here is my text...");

   
this.createTextField("dynamicText",10,0,0,metrics.textFieldWidth,metrics.textFieldHeight);

   dynamicText._visible = 0;
   dynamicText.multiline = false;
   dynamicText.wordWrap = false;
   dynamicText.selectable = false;
   dynamicText.text = MonTexte;
   dynamicText.setTextFormat(txt_fmt);

Éric.

Ian Thomas wrote:


Okay, a new text embed issue for me today...

Text embedding is working fine - that's not the problem.

I'm trying to do some getTextExtent() calculations.

The steps I take to do so are:
- Dynamically create a text field and give it some text and an
embedded font. This all works perfectly well.
- retrieve a TextFormat object from the textfield
- do some calculations using getTextExtent() on that TextFormat

Unfortunately, it looks very much like getTextExtent is performing
calculations using the system version of the font, rather than the
embedded version.

A specific example is:
- I calculate the width of a piece of text, making sure it fits
exactly on to two lines. The calculations all look right, but once I
set up the field size to the values returned from getTextExtent(), the
text wraps on to _three_ lines. If I turn _off_ the font embedding on
the field, it all works as expected. This indicates, to me, that
getTextExtent isn't using the embedded font.

Has anyone got any experience of this or any thoughts?

So far, I've tried setting embedFonts=true on my TextFormat object
(undocumented but apparently a hack used by some people to get font
embedding working). Otherwise I'm a bit stumped - I don't really want
to turn off the nice smooth outlines!

Oh, for reference Flash 8, but publishing to FP7.

Ta,
 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

 


___
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] More Text Embedding Woes

2006-03-20 Thread Ian Thomas
Okay, a new text embed issue for me today...

Text embedding is working fine - that's not the problem.

I'm trying to do some getTextExtent() calculations.

The steps I take to do so are:
- Dynamically create a text field and give it some text and an
embedded font. This all works perfectly well.
- retrieve a TextFormat object from the textfield
- do some calculations using getTextExtent() on that TextFormat

Unfortunately, it looks very much like getTextExtent is performing
calculations using the system version of the font, rather than the
embedded version.

A specific example is:
- I calculate the width of a piece of text, making sure it fits
exactly on to two lines. The calculations all look right, but once I
set up the field size to the values returned from getTextExtent(), the
text wraps on to _three_ lines. If I turn _off_ the font embedding on
the field, it all works as expected. This indicates, to me, that
getTextExtent isn't using the embedded font.

Has anyone got any experience of this or any thoughts?

So far, I've tried setting embedFonts=true on my TextFormat object
(undocumented but apparently a hack used by some people to get font
embedding working). Otherwise I'm a bit stumped - I don't really want
to turn off the nice smooth outlines!

Oh, for reference Flash 8, but publishing to FP7.

Ta,
  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] Drawing regular, filled shapes into BitmapData

2006-03-20 Thread Adrian Park
Hi Michael,

The AA provided by the vector drawing API is fine, I was just wondering if
there might be a less convoluted method than drawing vectors and then
creating BitmapData from the results.

The reason it seems convoluted to me is that I'm actually extracting data
from a bitmap image and using this to create a halftone pattern to represent
the image. I have already completed this part and have rendered the image as
black vector dots which works pretty well. Ultimately though, I want to
generate a bitmap image. It's easy to do this with what I already have but I
was just wondering if there'd be a more efficient route that bypassed the
vector drawing stage.

Cheers
Adrian P

On 3/20/06, Michael Bedar <[EMAIL PROTECTED]> wrote:
>
> Ok, So you want to draw a circle in AS, easy enough.
>
> Then you want to draw it to a bitmap, and the AA provided by
> smoothing is not enough?
>
> Can you just apply a slight blur filter to the bitmap?
>
>
>
> On Mar 20, 2006, at 10:36 AM, Ian Thomas wrote:
>
> > Hi Adrian,
> >   I have no experience of doing this whatsoever - but - my immediate
> > feeling is that you should go for your first idea. Create the shapes
> > as vectors, then grab the BitmapData from. This is simply because the
> > routines to draw the shapes are all native to the Flash Player, and
> > they are therefore going to be a _lot_ faster than anything you can
> > come up with in ActionScript.
> >
> > HTH,
> >   Ian
> >
> > On 3/20/06, Adrian Park <[EMAIL PROTECTED]> wrote:
> >> I want draw regular shapes with antialiased edges into a blank
> >> BitmapData
> >> object. A rectangle is simple (if it isn't rotated at all) but how
> >> would I
> >> go about drawing something like a filled circle at a specified
> >> position with
> >> a radius r?
> >>
> >> I figure I could easily draw what I want using vectors and then
> >> create a
> >> BitmapData instance from this but this seems a little convoluted and
> >> inefficient to me. I've also thought about writing some code to
> >> work out
> >> which pixels are completely encompassed within the circle and
> >> giving these
> >> solid colour and then manually calculating the amount to tint
> >> pixels at the
> >> edge of the circle to create the antialiasing but the routines I
> >> have in my
> >> head would be even more inefficient than the vector method.
> >>
> >> Anybody done this, know of any examples/code or have any bright
> >> ideas?
> >>
> >> Thanks, Adrian P
> > ___
> > 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] Determining width of rotated MC's imaginarybounding box

2006-03-20 Thread Danny Kodicek

On 3/20/06, David Stiller <[EMAIL PROTECTED]> wrote:


I suspect the answer to this one is purely geometry.  It's trivial
to determine the width or height of a movie clip:  there's the _width and
_height properties, of course, as well as getBounds().  But when the clip
is
rotated, the concept of "width" changes.  I'm looking for a way to
determine
the width of an imaginary bounding box that contains the rotated clip.


This is going to depend slightly on what you're looking for. If your 
movieClip is a circle, then rotating it will leave the bounding box 
unchanged, whereas if it's a square, then rotating it will change these 
values. But assuming your original clip is rectangular; or that you;re 
looking for the dimensions of *its* bounding box when rotated, then at an 
angle of A, the new width will be Math.abs(w*cos(A))+Math.abs(h*sin(A)), the 
new height will be Math.abs(w*sin(A))+Math.abs(h*cos(A)). Remember that if A 
is measured in degrees, you need to multiply it by pi/180 to convert to 
radians.


HTH
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] Determining width of rotated MC's imaginary bounding box

2006-03-20 Thread Adrian Park
Hi David,

Not sure of the exact nature of your setup but it just occured to me that
the simplest way to do this would be if you could enclose the rotated clip
in a wrapper clip - if you get the _width and _height of the wrapper clip
after rotating the enclosed tip you will have the width of imaginery
bounding box.

Does this help?
Adrian P.

On 3/20/06, David Stiller <[EMAIL PROTECTED]> wrote:
>
> I suspect the answer to this one is purely geometry.  It's trivial
> to determine the width or height of a movie clip:  there's the _width and
> _height properties, of course, as well as getBounds().  But when the clip
> is
> rotated, the concept of "width" changes.  I'm looking for a way to
> determine
> the width of an imaginary bounding box that contains the rotated clip.
>
> Tips, tutorials, guidance?
>
>
> David
> [EMAIL PROTECTED]
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] Drawing regular, filled shapes into BitmapData

2006-03-20 Thread Michael Bedar

Ok, So you want to draw a circle in AS, easy enough.

Then you want to draw it to a bitmap, and the AA provided by  
smoothing is not enough?


Can you just apply a slight blur filter to the bitmap?



On Mar 20, 2006, at 10:36 AM, Ian Thomas wrote:


Hi Adrian,
  I have no experience of doing this whatsoever - but - my immediate
feeling is that you should go for your first idea. Create the shapes
as vectors, then grab the BitmapData from. This is simply because the
routines to draw the shapes are all native to the Flash Player, and
they are therefore going to be a _lot_ faster than anything you can
come up with in ActionScript.

HTH,
  Ian

On 3/20/06, Adrian Park <[EMAIL PROTECTED]> wrote:
I want draw regular shapes with antialiased edges into a blank  
BitmapData
object. A rectangle is simple (if it isn't rotated at all) but how  
would I
go about drawing something like a filled circle at a specified  
position with

a radius r?

I figure I could easily draw what I want using vectors and then  
create a

BitmapData instance from this but this seems a little convoluted and
inefficient to me. I've also thought about writing some code to  
work out
which pixels are completely encompassed within the circle and  
giving these
solid colour and then manually calculating the amount to tint  
pixels at the
edge of the circle to create the antialiasing but the routines I  
have in my

head would be even more inefficient than the vector method.

Anybody done this, know of any examples/code or have any bright  
ideas?


Thanks, Adrian P

___
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] Un-HQX, Burn in Mac, make ISO in PC, and make copies in PC

2006-03-20 Thread Hairy Dog Digital
IF you make an original CD-R on the Mac, then just use Nero on the PC for CD
copying, it will work okay. I do this all of the time. 



> -Original Message-
> From: Ramon Miguel M. Tayag [mailto:[EMAIL PROTECTED] 
> Sent: Monday, March 20, 2006 10:11 AM
> To: FlashCoders Programming
> Subject: [Flashcoders] Un-HQX, Burn in Mac, make ISO in 
> PC,and make copies in PC
> 
> Hi everyone,
> 
> I'm just wondering if the procedure I have in the subject 
> will break the Mac application that's in the HQX.
> 
> I know that copying the Mac app to the PC will break the 
> file.  If you put it back on the Mac, it won't run.
> 
> Will putting it on a CD and then making it an ISO on the PC 
> preserve it?
> 
> Thanks!
> --
> Ramon Miguel M. Tayag
> Managing Director
> Quirkworks
> ___
> 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] Un-HQX, Burn in Mac, make ISO in PC, and make copies in PC

2006-03-20 Thread Ramon Miguel M. Tayag
Will making it an ISO preserve it?  I would think yes but when I'm
about to burn 100 CDs,
I'd just like to make sure.


On 3/20/06, Charles Parcell <[EMAIL PROTECTED]> wrote:
> Zip whatever you want to preserve. That should be all.
>
> Charles P.
>
>
> On 3/20/06, Ramon Miguel M. Tayag <[EMAIL PROTECTED]> wrote:
> >
> > Hi everyone,
> >
> > I'm just wondering if the procedure I have in the subject will break
> > the Mac application that's in the HQX.
> >
> > I know that copying the Mac app to the PC will break the file.  If you
> > put it back on the Mac, it won't run.
> >
> > Will putting it on a CD and then making it an ISO on the PC preserve it?
> >
> > Thanks!
> > --
> > Ramon Miguel M. Tayag
> > Managing Director
> > Quirkworks
> > ___
> > 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
>
>


--
Ramon Miguel M. Tayag
Managing Director
Quirkworks
___
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] Drawing regular, filled shapes into BitmapData

2006-03-20 Thread Adrian Park
That's a good point about the speed of drawing vectors. I think I'll try it
this way.

Thanks for the suggestion.
Adrian P

On 3/20/06, Ian Thomas <[EMAIL PROTECTED]> wrote:
>
> Hi Adrian,
>   I have no experience of doing this whatsoever - but - my immediate
> feeling is that you should go for your first idea. Create the shapes
> as vectors, then grab the BitmapData from. This is simply because the
> routines to draw the shapes are all native to the Flash Player, and
> they are therefore going to be a _lot_ faster than anything you can
> come up with in ActionScript.
>
> HTH,
>   Ian
>
> On 3/20/06, Adrian Park <[EMAIL PROTECTED]> wrote:
> > I want draw regular shapes with antialiased edges into a blank
> BitmapData
> > object. A rectangle is simple (if it isn't rotated at all) but how would
> I
> > go about drawing something like a filled circle at a specified position
> with
> > a radius r?
> >
> > I figure I could easily draw what I want using vectors and then create a
> > BitmapData instance from this but this seems a little convoluted and
> > inefficient to me. I've also thought about writing some code to work out
> > which pixels are completely encompassed within the circle and giving
> these
> > solid colour and then manually calculating the amount to tint pixels at
> the
> > edge of the circle to create the antialiasing but the routines I have in
> my
> > head would be even more inefficient than the vector method.
> >
> > Anybody done this, know of any examples/code or have any bright ideas?
> >
> > Thanks, Adrian P
> ___
> 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] Determining width of rotated MC's imaginary bounding box

2006-03-20 Thread David Stiller
I suspect the answer to this one is purely geometry.  It's trivial
to determine the width or height of a movie clip:  there's the _width and
_height properties, of course, as well as getBounds().  But when the clip is
rotated, the concept of "width" changes.  I'm looking for a way to determine
the width of an imaginary bounding box that contains the rotated clip.

Tips, tutorials, guidance?


David
[EMAIL PROTECTED]

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

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


Re: [Flashcoders] Drawing regular, filled shapes into BitmapData

2006-03-20 Thread Ian Thomas
Hi Adrian,
  I have no experience of doing this whatsoever - but - my immediate
feeling is that you should go for your first idea. Create the shapes
as vectors, then grab the BitmapData from. This is simply because the
routines to draw the shapes are all native to the Flash Player, and
they are therefore going to be a _lot_ faster than anything you can
come up with in ActionScript.

HTH,
  Ian

On 3/20/06, Adrian Park <[EMAIL PROTECTED]> wrote:
> I want draw regular shapes with antialiased edges into a blank BitmapData
> object. A rectangle is simple (if it isn't rotated at all) but how would I
> go about drawing something like a filled circle at a specified position with
> a radius r?
>
> I figure I could easily draw what I want using vectors and then create a
> BitmapData instance from this but this seems a little convoluted and
> inefficient to me. I've also thought about writing some code to work out
> which pixels are completely encompassed within the circle and giving these
> solid colour and then manually calculating the amount to tint pixels at the
> edge of the circle to create the antialiasing but the routines I have in my
> head would be even more inefficient than the vector method.
>
> Anybody done this, know of any examples/code or have any bright ideas?
>
> Thanks, Adrian P
___
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] Un-HQX, Burn in Mac, make ISO in PC, and make copies in PC

2006-03-20 Thread Charles Parcell
Zip whatever you want to preserve. That should be all.

Charles P.


On 3/20/06, Ramon Miguel M. Tayag <[EMAIL PROTECTED]> wrote:
>
> Hi everyone,
>
> I'm just wondering if the procedure I have in the subject will break
> the Mac application that's in the HQX.
>
> I know that copying the Mac app to the PC will break the file.  If you
> put it back on the Mac, it won't run.
>
> Will putting it on a CD and then making it an ISO on the PC preserve it?
>
> Thanks!
> --
> Ramon Miguel M. Tayag
> Managing Director
> Quirkworks
> ___
> 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: SV: [Flashcoders] CSS with input text, simple editor, sourcefiles

2006-03-20 Thread Danny Kodicek

I wrote a simple little system for textformatting with

textField.htmlText. It is really primitive, but we have used it and it
is entirely
possible to make it work.

Thanks - it's fairly similar to what I'm doing too. My solution (which 
appears to be working) is to make two functions, HTMLtoXML() and 
XMLtoHTML(). When importing or exporting text, I use the XML format, which 
is my own and under my control. Then XMLtoHTML essentially acts as a 
stylesheet, and HTMLtoXML is a system which strips out all the tags I don't 
need and restores my XML format. It's not nice, but it's brought everything 
back into a position where I know what's happening. Now I can make my html 
field editable, knowing that as soon as I have any problems I can just run 
my translator and it'll fix them.


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] Un-HQX, Burn in Mac, make ISO in PC, and make copies in PC

2006-03-20 Thread Ramon Miguel M. Tayag
Hi everyone,

I'm just wondering if the procedure I have in the subject will break
the Mac application that's in the HQX.

I know that copying the Mac app to the PC will break the file.  If you
put it back on the Mac, it won't run.

Will putting it on a CD and then making it an ISO on the PC preserve it?

Thanks!
--
Ramon Miguel M. Tayag
Managing Director
Quirkworks
___
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] CSS with input text

2006-03-20 Thread Jim Kremens
It seems like this thread has morphed into something else.  But if you're
looking to style an input text field with CSS, here's a working example...

Note that this is only en example... some things that are hardcoded should
not be... but it gets the point across.  The getStyleSheet and
getDefaultStyleSheet methods are only there so you don't have to load a
stylesheet for the example to work.


class SomeUsefulTextMethods

{

public static function getStyleSheet(css:Object):TextField.StyleSheet {
var style:String = "";
var styleSheet:TextField.StyleSheet = new TextField.StyleSheet();
style += ".bold {font-family:" + css.font + ";font-size: " +
css.size + ";font-weight: bold;color: " +  css.color + ";}";
style += ".plain {font-family: " + css.font + ";font-size: " +
css.size + ";font-weight: normal;color: " + css.color + ";}";
style += ".italic {font-family: " + css.font + ";font-size: " +
css.size + ";font-style: italic;font-weight: normal;}";
style += "a:link {color: " + css.hoverColor + ";text-decoration:
none;}";
style += "a:hover {color: " + css.hoverColor + ";text-decoration:
underline;}";
styleSheet.parseCSS(style);
return styleSheet;
}
public static function getDefaultStyleSheet():TextField.StyleSheet {
return getStyleSheet({font:"Verdana", size:11, color:"#00",
hoverColor:"#FF"});
}
public static function getInputField(scope:MovieClip, name:String,
x:Number, y:Number, w:Number, h:Number):TextField {
var field:TextField = scope.createTextField(name,
scope.getNextHighestDepth(), x, y, w, h);
field.type = "input";
field.border = true;
var myStyleSheet:TextField.StyleSheet = getDefaultStyleSheet();
var styleObj:Object = myStyleSheet.getStyle(".bold");
var styleFormat:TextFormat = myStyleSheet.transform(styleObj);
field.setTextFormat(styleFormat);
field.setNewTextFormat(styleFormat);
return field;
}
}


/**
 * in fla...
 * var field:TextField = SomeUsefulTextMethods.getInputField(this,
"myField", 100, 100, 100, 100);
 */


Jim Kremens
___
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] CSS with input text

2006-03-20 Thread Hairy Dog Digital
> Wouldn't having full www support for html in Flash mean 
> building in a browser. Not too likely I think.

I think many folks -- at leat myself -- just want consistent handling of
HTML and CSS, not necessarily a full blown browser. This is especially true
for building offline Mac/Win CD projects where Director is not used (for
whatever reason), and HTML text is required.



___
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: SV: [Flashcoders] CSS with input text, simple editor, sourcefiles

2006-03-20 Thread Eskil Janson

Hi

I wrote a simple little system for textformatting with 
textField.htmlText. It is really primitive, but we have used it and it 
is entirely
possible to make it work. It is basically a very simple HTML editor for 
the flash text format (textField.htmlText) and comes with a tool to tag 
it and and untag it in an XML/HTML safe format, so that you can store it 
and send it in simple textnodes, without loosing the formatting information.


download sourcefiles here if you want to check it out:

http://www.eskiljanson.com/asml_tagger/tagger_stuff.zip


And this is the only manual (sorry for that)...

1. Make executables from the sourcefiles or atleast swf them, (notice 
the little class that has to be accessible and

exchange the fonts in the library to fonts of your choice.)

2. Use the ASWord to see what the textformat code you write in the right 
textfield does to your left textfield.
If you change the type of the left textfield in the sourcefile to 
"input" you can also just paste in any formatted text and see what it 
codes to.

This can be useful to start with.

The reason why I disabled this feature, is that to write useable code 
(not the crap flash autogenerates) you will want to have som control
over when your codeview window on the right is updated. It is not nice 
when hours of work disappear...


3. Use the ASMLTagger to tag the code to a format that is not interprted 
as XML or HTML, that you may send in an XML
textnode. (Just paste in the code you generated, and press the tag (or 
untag) button)


4. In your project, implement the "untagIt" function somewhere to 
convert the text back to flash readable HTML-text.


5. Assing the result to your textfield as .htmlText. don't forget to 
embed fonts (yourTextField.embedFonts = true;)


As I said this is simple stuff, and comes as is, there is no support for 
this product...This_ is _the only manual


With that said, IF anyone find it useful, or improves on it,please let 
me know!


Regards

/Eskil Janson
[EMAIL PROTECTED]





Martin Baltzer skrev:

Hi Danny,

I don't know if this will help you at all, but the TextField.Stylesheet class has a transform() 
method which will convert _one_ of your style objects from the Stylesheet (ie. The one you maybe 
assigned for the  or the  element or  element) into a 
TextFormat object which you can then apply to your TextField with setNewTextFormat.

It is also possible to transform several style objects into the same TextFormat 
object, but doing this the other way around is a lot more complicated but I 
gues it could be solved by writing a your own parser to rewrite the HTML that 
flash generates - maybe its already out there ;-) ?

I hope this is helpful otherwise throw it away ;-)

Cheers
Martin Baltzer


-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne af Danny Kodicek
Sendt: 20. marts 2006 12:12
Til: Flashcoders mailing list
Emne: Re: [Flashcoders] CSS with input text

  
Is not possible at all. When flash parses a CSS styled html, it simply  

replaces all the tags with the corresponding formatting code (textformat,  
font, etc).


Ugh, ugly. Thanks.

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

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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



  



___
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] Drawing regular, filled shapes into BitmapData

2006-03-20 Thread Adrian Park
I want draw regular shapes with antialiased edges into a blank BitmapData
object. A rectangle is simple (if it isn't rotated at all) but how would I
go about drawing something like a filled circle at a specified position with
a radius r?

I figure I could easily draw what I want using vectors and then create a
BitmapData instance from this but this seems a little convoluted and
inefficient to me. I've also thought about writing some code to work out
which pixels are completely encompassed within the circle and giving these
solid colour and then manually calculating the amount to tint pixels at the
edge of the circle to create the antialiasing but the routines I have in my
head would be even more inefficient than the vector method.

Anybody done this, know of any examples/code or have any bright ideas?

Thanks, Adrian P
___
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] CSS with input text

2006-03-20 Thread Claus Wahlers
> Wouldn't having full www support for html in Flash mean building in a
> browser. Not too likely I think.
> What about a component in Flash that allows the display of a web
> browser window in a flash document, using the browsers functionality.
> I wouldn't know where to start, but it would be cool.

There still is DENG:
http://osflash.org/deng/
Definately not comparable to Firefox and the likes, but a start
cheers, c.
___
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] CSS with input text

2006-03-20 Thread Danny Kodicek

Wouldn't having full www support for html in Flash mean building in a

browser. Not too likely I think.

Well, no, you wouldn't have to support javaScript and other languages or 
activeX controls / plugins. You could probably live without frames or 
similar devices. And hyperlinks would probably remain in their current form. 
We're just talking about display of text, including full support for CSS and 
IMG tags. It's not really *that* far from existing functionality. The 
hardest thing would probably be tables (and no, I don't think it would be 
appropriate to have some hack that converts them to dataGrids)



What about a component in Flash that allows the display of a web

browser window in a flash document, using the browsers functionality.

I think people have tried that kind of thing, with limited success (eg, 
using JavaScript to open a browser window on top of the Flash window). No, 
it really does need to be a native 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] Alpha-blending two MC's with bitmaps?

2006-03-20 Thread Weldon MacDonald
I've done it with dynamically loaded images and createEmptyMovieClip.
There shouldn't be a problem, but then _visible won't hide them.
Good luck

On 3/20/06, Sascha Balkau <[EMAIL PROTECTED]> wrote:
> Weldon, thanks for trying to help!
> Yes the images are all definately available when the blend happens. Maybe it
> has something to do with the fact that the images are loaded dynamically
> from external files into movieclips.
> Either way I will see if I can locate the source of the problem!
>
> Sascha
>
>
>
> - Original Message -
> From: "Weldon MacDonald" <[EMAIL PROTECTED]>
> To: "Flashcoders mailing list" 
> Sent: Sunday, March 19, 2006 10:12 PM
> Subject: Re: [Flashcoders] Alpha-blending two MC's with bitmaps?
>
>
> I experimented and with the images as mc's, attached from library, and
> your function on frame one, not as a class, the function works as you
> wanted it too.
> Are you sure the images are really where you expect them to be?
> ie. is the image loaded when the call is made?
> Maybe something about your class setup?
>
> On 3/19/06, Sascha Balkau <[EMAIL PROTECTED]> wrote:
> > Weldon, here's the method I've wrote to handle the blending. It's very
> > simple and I cannot detect any bug in there ...
>
> > The blending works but strangely the fromImage is not shown, instead the
> > toImage fades in from the white background of my Flash movie. As I
> > mentioned
> > before there are other image mc's in the holder movieclip but they are on
> > depths 0 to 20 and are invisible so I doubt they have any influence on
> > this.
> >
> > Sascha
>
> Weldon Mac Donald
>
> ___
> 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
>


--
Weldon Mac Donald
___
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] CSS with input text

2006-03-20 Thread Weldon MacDonald
Wouldn't having full www support for html in Flash mean building in a
browser. Not too likely I think.
What about a component in Flash that allows the display of a web
browser window in a flash document, using the browsers functionality.
I wouldn't know where to start, but it would be cool.

On 3/20/06, Danny Kodicek <[EMAIL PROTECTED]> wrote:
> > Coming from the Director world you know there are basic issues with some
> > of
> > the more basic elements, such as HTML text, in Director. In the meantime
> > bigger and badder items have been added to Director giving it more *WOW*
> > while basic issues were not addressed. (And, no, "Xtra" is not a solution
> > to
> > what should be a basic implementation.)
>
> Absolutely (although don't forget that many Xtras are actually part of the
> standard Director package: text support itself is wrapped in a standard
> Xtra). Having said that, Director hasn't had much in the way of significant
> improvements anywhere since D8.5 introduced 3D. We had Imaging Lingo (the
> equivalent of BitmapData) since D7, about 6 years ago, but it has hardly
> changed since then. Mostly, subsequent releases have been designed to bring
> us up to speed with current developments in Flash.
>
> > I'm saying this, because it makes me wonder if the same is happening (will
> > happen) with Flash!
>
> Already is. Many features of Flash have that sense of being half-done (XML
> object, Text support and  Sound spring to mind fairly quickly)
>
> 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
>


--
Weldon Mac Donald
___
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] CSS with input text

2006-03-20 Thread Hairy Dog Digital
 
> Absolutely (although don't forget that many Xtras are 
> actually part of the standard Director package: text support 
> itself is wrapped in a standard Xtra). 

That's true. I'll quality my original comment by added, "Xtras not shipped
with the IDE or part of an update to the IDE".

In addition, my "WOW" comment was referring to the items more utilized as
nifty little features that allow marketing to really spin on. DVD Video
immediately pops to mind. That's not to say Director coders haven't put it
to good use -- they have -- but it also caused a huge misconception that
somehow Director could now be used as a DVD Video authoring tool (i.e., DVD
Studio, Encore).

> Already is. Many features of Flash have that sense of being 
> half-done (XML object, Text support and  Sound spring to mind 
> fairly quickly)

And ain't that most baffling for a product that is ubiquitous to the web?

...Rob



___
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] CSS with input text

2006-03-20 Thread Danny Kodicek
Coming from the Director world you know there are basic issues with some 
of

the more basic elements, such as HTML text, in Director. In the meantime
bigger and badder items have been added to Director giving it more *WOW*
while basic issues were not addressed. (And, no, "Xtra" is not a solution 
to

what should be a basic implementation.)


Absolutely (although don't forget that many Xtras are actually part of the 
standard Director package: text support itself is wrapped in a standard 
Xtra). Having said that, Director hasn't had much in the way of significant 
improvements anywhere since D8.5 introduced 3D. We had Imaging Lingo (the 
equivalent of BitmapData) since D7, about 6 years ago, but it has hardly 
changed since then. Mostly, subsequent releases have been designed to bring 
us up to speed with current developments in Flash.



I'm saying this, because it makes me wonder if the same is happening (will
happen) with Flash!


Already is. Many features of Flash have that sense of being half-done (XML 
object, Text support and  Sound spring to mind fairly quickly)


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] CSS with input text

2006-03-20 Thread Hairy Dog Digital
> You think you've got troubles: mostly I use Director...
> 
> Seriously, though, I think text is one area where we should 
> expect to see some serious improvements since the Adobe 
> takeover. With all their pdf people on board, they must 
> surely have a lot of expertise to throw at this (as long as 
> they don't try to do something hideous like incorporating 
> acrobat into Flash...). The absolute biggest thing I need 
> right now is a version of what in Director is called 
> 'charPosToLoc' (and the various permutations of it): the 
> ability to translate back and forth between character 
> positions and xy coordinates. And don't get me started about 
> proper inline image support.

Coming from the Director world you know there are basic issues with some of
the more basic elements, such as HTML text, in Director. In the meantime
bigger and badder items have been added to Director giving it more *WOW*
while basic issues were not addressed. (And, no, "Xtra" is not a solution to
what should be a basic implementation.)

I'm saying this, because it makes me wonder if the same is happening (will
happen) with Flash!

...Rob



___
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] Cropping the alpha off a bitmap data

2006-03-20 Thread Mike Mountain
If I have a bitmap the size of the stage, but the majority of it is
alpha, what's the easiest way to crop to the smallest rectangle with
visible pixels in?

Cheers

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


Re: [Flashcoders] CSS with input text

2006-03-20 Thread Danny Kodicek



Danny Kodicek schrieb:
I don't know if this will help you at all, but the TextField.Stylesheet 
class has a transform() method which will convert _one_ of your style 
objects from the Stylesheet (ie. The one you maybe assigned for the  
or the  element or  element) into a TextFormat 
object which you can then apply to your TextField with setNewTextFormat.




If you look at the archives, you'll see that you're not alone. the 
textfield is one of the worst things i've ever seen. the thing that using 
css makes TFs uneditable is only the top :-)


so let's start a petition against this class, as with coming 8.5 Player we 
have video alpha, up-and download reg-ex and what not (even a new VM!!!)
but this little class is torpeding so much projects (speaking of backends, 
yeah!) i cant stand it anymore!


so let's all stand up, and do sth. against this! we're loosing a market 
right now.


You think you've got troubles: mostly I use Director...

Seriously, though, I think text is one area where we should expect to see 
some serious improvements since the Adobe takeover. With all their pdf 
people on board, they must surely have a lot of expertise to throw at this 
(as long as they don't try to do something hideous like incorporating 
acrobat into Flash...). The absolute biggest thing I need right now is a 
version of what in Director is called 'charPosToLoc' (and the various 
permutations of it): the ability to translate back and forth between 
character positions and xy coordinates. And don't get me started about 
proper inline image support.


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] asking book opinion-OOP with AS2, Jeff Taper et al.

2006-03-20 Thread Eskil Janson
In a recent thread "best flash actionscript book/reference" i wrote 
following about that book:


As a complement to Moocks brilliant, but sometimes very detailed 
information, I think this book is nice:


Object-Oriented Programming with ActionScript 2.0

Robin Haffner, James Talbot, Jeff Tapper.
Published by New Riders.

If you are a little less experienced programmer, you may want to 
download the errata for the book, since at least

the erlier versions of the book was full of typos.

regards

/Eskil


Martin Weiser skrev:

Hello ,

anyone have read this book, could recommen or not, i'm as 2 programmer 
for long time, alreade got moock's esential as2, but still want more 
oop approaches and techniques to learn.


thanks in advance

martin
___
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] CSS with input text

2006-03-20 Thread Michael Stuhr

Danny Kodicek schrieb:
I don't know if this will help you at all, but the TextField.Stylesheet 
class has a transform() method which will convert _one_ of your style 
objects from the Stylesheet (ie. The one you maybe assigned for the  or 
the  element or  element) into a TextFormat object 
which you can then apply to your TextField with setNewTextFormat.




If you look at the archives, you'll see that you're not alone. the textfield is 
one of the worst things i've ever seen. the thing that using css makes TFs 
uneditable is only the top :-)


so let's start a petition against this class, as with coming 8.5 Player we have 
video alpha, up-and download reg-ex and what not (even a new VM!!!)
but this little class is torpeding so much projects (speaking of backends, 
yeah!) i cant stand it anymore!


so let's all stand up, and do sth. against this! we're loosing a market right 
now.

micha
___
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] CSS with input text

2006-03-20 Thread Danny Kodicek
I don't know if this will help you at all, but the TextField.Stylesheet 
class has a transform() method which will convert _one_ of your style 
objects from the Stylesheet (ie. The one you maybe assigned for the  or 
the  element or  element) into a TextFormat object 
which you can then apply to your TextField with setNewTextFormat.


Hmm - I'm not sure how this works (the transform() docs are possibly the 
most useless I've ever seen!). As far as I can make out, transform() is the 
internal function used by the StyleSheet object to translate it into 
textFormats. But I can't quite tell what happens next... Can you give me an 
example of what you mean in practice?


Right now I'm fairly close to dropping styleSheets altogether. My current 
plan is to have a parser that translates the HTML into my own internal XML 
format, so that the textField is really a fairly dumb container, but really 
this is turning into such a nasty hack that I'm not terribly happy about it.


Danny

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

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


Re: [Flashcoders] Alpha-blending two MC's with bitmaps?

2006-03-20 Thread Sascha Balkau

Weldon, thanks for trying to help!
Yes the images are all definately available when the blend happens. Maybe it 
has something to do with the fact that the images are loaded dynamically 
from external files into movieclips.

Either way I will see if I can locate the source of the problem!

Sascha



- Original Message - 
From: "Weldon MacDonald" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Sunday, March 19, 2006 10:12 PM
Subject: Re: [Flashcoders] Alpha-blending two MC's with bitmaps?


I experimented and with the images as mc's, attached from library, and
your function on frame one, not as a class, the function works as you
wanted it too.
Are you sure the images are really where you expect them to be?
ie. is the image loaded when the call is made?
Maybe something about your class setup?

On 3/19/06, Sascha Balkau <[EMAIL PROTECTED]> wrote:

Weldon, here's the method I've wrote to handle the blending. It's very
simple and I cannot detect any bug in there ...



The blending works but strangely the fromImage is not shown, instead the
toImage fades in from the white background of my Flash movie. As I 
mentioned

before there are other image mc's in the holder movieclip but they are on
depths 0 to 20 and are invisible so I doubt they have any influence on 
this.


Sascha


Weldon Mac Donald

___
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


SV: [Flashcoders] CSS with input text

2006-03-20 Thread Martin Baltzer
Hi Danny,

I don't know if this will help you at all, but the TextField.Stylesheet class 
has a transform() method which will convert _one_ of your style objects from 
the Stylesheet (ie. The one you maybe assigned for the  or the  element 
or  element) into a TextFormat object which you can then apply 
to your TextField with setNewTextFormat.

It is also possible to transform several style objects into the same TextFormat 
object, but doing this the other way around is a lot more complicated but I 
gues it could be solved by writing a your own parser to rewrite the HTML that 
flash generates - maybe its already out there ;-) ?

I hope this is helpful otherwise throw it away ;-)

Cheers
Martin Baltzer


-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne af Danny Kodicek
Sendt: 20. marts 2006 12:12
Til: Flashcoders mailing list
Emne: Re: [Flashcoders] CSS with input text

>Is not possible at all. When flash parses a CSS styled html, it simply  
replaces all the tags with the corresponding formatting code (textformat,  
font, etc).

Ugh, ugly. Thanks.

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

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] CSS with input text

2006-03-20 Thread Danny Kodicek
Is not possible at all. When flash parses a CSS styled html, it simply  
replaces all the tags with the corresponding formatting code (textformat,  
font, etc).


Ugh, ugly. Thanks.

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

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


Re: [Flashcoders] CSS with input text

2006-03-20 Thread Marcelo Volmaro
Is not possible at all. When flash parses a CSS styled html, it simply  
replaces all the tags with the corresponding formatting code (textformat,  
font, etc).


And you are right about the structure: While the majority of the time the  
structure remains the same (in flash format, of course) it starts to  
change when you add images.


To change the format of a CSS parsed html, you must use  
setTextFormat/setNewTextFormat.


On Mon, 20 Mar 2006 07:19:30 -0300, Danny Kodicek  
<[EMAIL PROTECTED]> wrote:



use textField.setNewTextFormat()


Thanks, I know about that and am using it extensively. But it doesn't  
let me do what I want to do, which is to apply a CSS to my text editor.  
I've noticed that all the text editors out there suffer from the same  
problem, though, so perhaps I'm stuck with it. It just means that when I  
tell Flash to display html of one kind, it's going to change it to  
something else. And when it comes to parsing that back to the XML I  
want, this makes me nervous: can be absolutely sure it's always going to  
have the same structure? If not, what parameters can I expect to have to  
deal with? I hate being out of control in that way.


Danny



I've got a textField I'm trying to use for input text and I'd like to be
able to style it. Unfortunately, the htmlText is being automatically set
to
this:
a
This isn't much help, because the FONT tag is appearing inside the P  
tag,

with the result that any styling Iattach to P is being overridden (at
least,
I assume this is the source of the problem).

Any idea how I can avoid this? Really, my ideal would be for Flash not  
to
keep 'helping' me by adding its own HTML or changing mine: I'd like to  
be

able to tell it exactly what HTML I want displayed. This is particularly
important because I need to be able to extract the HTML at the end and
return it.

Danny

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

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


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

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

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




--
_
Marcelo Volmaro
___
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] CSS with input text

2006-03-20 Thread Danny Kodicek

use textField.setNewTextFormat()


Thanks, I know about that and am using it extensively. But it doesn't let me 
do what I want to do, which is to apply a CSS to my text editor. I've 
noticed that all the text editors out there suffer from the same problem, 
though, so perhaps I'm stuck with it. It just means that when I tell Flash 
to display html of one kind, it's going to change it to something else. And 
when it comes to parsing that back to the XML I want, this makes me nervous: 
can be absolutely sure it's always going to have the same structure? If not, 
what parameters can I expect to have to deal with? I hate being out of 
control in that way.


Danny



I've got a textField I'm trying to use for input text and I'd like to be
able to style it. Unfortunately, the htmlText is being automatically set
to
this:
a
This isn't much help, because the FONT tag is appearing inside the P tag,
with the result that any styling Iattach to P is being overridden (at
least,
I assume this is the source of the problem).

Any idea how I can avoid this? Really, my ideal would be for Flash not to
keep 'helping' me by adding its own HTML or changing mine: I'd like to be
able to tell it exactly what HTML I want displayed. This is particularly
important because I need to be able to extract the HTML at the end and
return it.

Danny

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

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


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

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


___
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] CSS with input text

2006-03-20 Thread Janis Radins
use textField.setNewTextFormat()

2006/3/20, Danny Kodicek <[EMAIL PROTECTED]>:
>
> I've got a textField I'm trying to use for input text and I'd like to be
> able to style it. Unfortunately, the htmlText is being automatically set
> to
> this:
>  COLOR="#00" LETTERSPACING="0" KERNING="0">a
> This isn't much help, because the FONT tag is appearing inside the P tag,
> with the result that any styling Iattach to P is being overridden (at
> least,
> I assume this is the source of the problem).
>
> Any idea how I can avoid this? Really, my ideal would be for Flash not to
> keep 'helping' me by adding its own HTML or changing mine: I'd like to be
> able to tell it exactly what HTML I want displayed. This is particularly
> important because I need to be able to extract the HTML at the end and
> return it.
>
> Danny
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Flash MX2004, Video CD with "auto-play" {Director v. Flash??}

2006-03-20 Thread Jim Tann
I reguarly use flash for projects like this. I don't like director, just
a personal thing. I never feel my assets are organized when using it & I
hate Lingo. But I guess what it comes down to is what you are used to. I
love flash & hate director. What do you prefer using? Are you used to
using both? Do you need any of the plugins director gives you access to
or can flash handle everything you need to do?

Jim


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Michael
Hulse
Sent: 18 March 2006 23:45
To: Flashcoders mailing list
Subject: [Flashcoders] Flash MX2004,Video CD with "auto-play" {Director
v. Flash??}

Hi,

The subject-line pretty much says it all...

I have an upcoming project that requires me to build an interface for 
playing 4 videos... this will then be burned onto a CD - a major 
requirement for this CD is that it goes full-screen as soon as the user 
puts it in their machine.

My question is this:

Is Flash MX 2004 comparable to director when it comes to CD authoring?

If the above answer is no, then how-a-bout the latest version of Flash?

Which app would you use (Director/Flash)?

Many TIA!  :)

Cheers,
Micky


  
  

___
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] CSS with input text

2006-03-20 Thread Danny Kodicek
I've got a textField I'm trying to use for input text and I'd like to be 
able to style it. Unfortunately, the htmlText is being automatically set to 
this:
COLOR="#00" LETTERSPACING="0" KERNING="0">a
This isn't much help, because the FONT tag is appearing inside the P tag, 
with the result that any styling Iattach to P is being overridden (at least, 
I assume this is the source of the problem).


Any idea how I can avoid this? Really, my ideal would be for Flash not to 
keep 'helping' me by adding its own HTML or changing mine: I'd like to be 
able to tell it exactly what HTML I want displayed. This is particularly 
important because I need to be able to extract the HTML at the end and 
return it.


Danny 


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

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


RE: [Flashcoders] Cannot stop loaded movie

2006-03-20 Thread Jim Tann
Looks like it's the scope. mcClip isn't accessable inside the function
you are calling. Try setting the function noramlly and then use delegate
to attach it to the onLoadComplete listener.

Jim

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Marco
Tabini
Sent: 18 March 2006 04:06
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Cannot stop loaded movie

Sorry, that was just a bad copy-and-paste job. Moving the listener to 
before the clip is loaded doesn't change anything. Good catch, though :)


Marco

Marc Hoffman wrote:
> Try adding the listener to ld before loading the clip.
> 
> At 07:07 PM 3/17/2006, you wrote:
>> To add to the weirdness: this problem only presents itself if I
create 
>> the project in Flash 8, so I wonder whether I'm hitting my head 
>> against the new security model. Again, any help would be much 
>> appreciated.
>>
>>
>> Marco
>>
>> Marco Tabini wrote:
>>> Hello--
>>> I am trying to control a movie I load from a remote location. I've 
>>> narrowed down my code to the smallest possible number of lines:
>>> ld = new MovieClipLoader();
>>> ld.loadClip(url, mcClip);
>>> obj = new Object();
>>> obj.onLoadComplete = function()
>>> {
>>> mcClip.gotoAndStop (10);
>>> }
>>> ld.addListener(obj)
>>> This code, placed in the actions panel of the root, works with the 
>>> exception of the onLoadComplete function. The mcClip is simply an 
>>> instance of a movie clip symbol (with no code) placed on the stage. 
>>> The loaded movie is just a collection of frames, with no actions 
>>> associated to it.
>>> The really bizarre thing is that this works just fine if I run the 
>>> code from inside Flash: the movie loads and then it jumps to frame 
>>> 10, where it stops.
>>> If I run the SWF inside the standalone player (or inside a browser 
>>> plugin on Windows, but not on a Mac), the external movie loads but 
>>> keeps looping and there seems to be no way to stop it.
>>> I cannot make sense of this. I've tried searching through the list, 
>>> but either this is so obviously wrong that nobody ever had the 
>>> problem, or I just don't know what to search for :)
>>> I'd appreciate any pointers!
>>> Thanks,
>>>
>>> Marco
>>> ___
>>> Flashcoders@chattyfig.figleaf.com
>>> To change your subscription options or search the archive:
>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>> Brought to you by Fig Leaf Software
>>> Premier Authorized Adobe Consulting and Training
>>> http://www.figleaf.com
>>> http://training.figleaf.com
>> ___
>> Flashcoders@chattyfig.figleaf.com
>> To change your subscription options or search the archive:
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>> Brought to you by Fig Leaf Software
>> Premier Authorized Adobe Consulting and Training
>> http://www.figleaf.com
>> http://training.figleaf.com
> 
> 
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
> 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


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

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