Re: [Flashcoders] Help...cant unload the xml menu...!!

2006-08-01 Thread Jose Maria Barros

can anyone help me?

On 7/31/06, Jose Maria Barros [EMAIL PROTECTED] wrote:


i singed too soon...when i test locally everything works great...but when
i try it in internet..it doesnt..he doestn load the xml file

why...?

The code is the same...but i did alter the url..like you said..:

//EDIT XML PATH
menuInfoXML = ./xml/menu.xml;
// DO NOT EDIT BELOW..

System.useCodepage = true;

import mx.xpath.XPathAPI;
var infoHolder:XML = new XML();
infoHolder.load(menuInfoXML);
infoHolder.ignoreWhite = true;
var titlePath:String = /root;
//main menu array.
var mainMenus:Array;
//sub menu array.
var subMenus:Array;

infoHolder.onLoad = function(ok) {
if (ok) {
mainMenus = mx.xpath.XPathAPI.selectNodeList(infoHolder.firstChild,
titlePath+/menu);
createTreeMenu();
}
};


MovieClip.prototype.getPos = function(target:Number) {
this.onEnterFrame = function() {
this._y -= (this._y-target)/6;
if (Math.abs(this._y-target)0.3) {
delete this.onEnterFrame;
_root.newsMC.showNews.appear();
}
};
};


function createTreeMenu():Void {
for (i=0; imainMenus.length; i++) {
newBut = _root.conteudos_mc.portfolio_mc.attachMovie(but,
but+i, 999+i);

newBut.arrow._alpha = 0;
newBut.shine._alpha = 0;
newBut._x = 18;
newBut._y = 93+(newBut._height+5)*i;

newBut.txt.text = mainMenus[i].attributes.txt;
newBut.link2 = mainMenus[i].attributes.url;
newBut.submenuCnt = mainMenus[i].childNodes.length;
newBut.y = newBut._y;
newBut.onRollOver = function() {
_root.conteudos_mc.portfolio_mc.tween(this, 16, 18);

this.arrow.appear();
this.shine.appear();
var textCol = new Color(this.txt);
textCol.setRGB(0xff);

};
newBut.onRollOut = function() {
_root.conteudos_mc.portfolio_mc.tween(this, 18, 16);

this.arrow.disappear();
this.shine.disappear();
var textCol = new Color(this.txt);
textCol.setRGB(0x6F6A63);
};
newBut.onRelease = function() {
if (this.submenuCnt0) {
var butNum:Number = new Number(this._name.substr(3, 1));
this.createSubMenu(butNum);
for (i=0; imainMenus.length; i++) {
if (ibutNum+1) {

_root.conteudos_mc.portfolio_mc[but+i].getPos(_root.conteudos_mc.portfolio_mc[but+i].y);

} else {

_root.conteudos_mc.portfolio_mc[but+i].getPos(_root.conteudos_mc.portfolio_mc[but+i].y+this.submenuCnt*22);

}
}
}
else {
_root.conteudos_mc.portfolio_mc.clearSubMenus();
for (i=0; imainMenus.length; i++) {

_root.conteudos_mc.portfolio_mc[but+i].getPos(_root.conteudos_mc.portfolio_mc[but+i].y);

}
//getURL(this.link);

}
};
}
}


MovieClip.prototype.createSubMenu = function(buttonNumber:Number):Void  {
clearSubMenus();
subMenus = mx.xpath.XPathAPI.selectNodeList(mainMenus[buttonNumber],
/menu/submenu);
var butNum:Number = new Number(this._name.substr(3, 1));
for (i=0; isubMenus.length; i++) {
subBut = _root.conteudos_mc.portfolio_mc.attachMovie(submenu,
subMenu+i, Math.random()*99);

subBut._alpha = 0;
subBut._x -= i;
subAppear(subBut, (i+3), 30);

subBut._y = this.y+this._height+(subBut._height+5)*i;
subBut.txt.text = subMenus[i].attributes.txt;
subBut.link2 = subMenus[i].attributes.url;
subBut.but.onRollOver = function(){
var textSubCol = new Color(this._parent.txt);
textSubCol.setRGB(0xff);
}
subBut.but.onRollOut = function(){
var textSubCol = new Color(this._parent.txt);
textSubCol.setRGB(0x6F6A63);
}
subBut.but.onRelease = function() {
loadMovie(this._parent.link2, _root.conteudos_mc.vazio4_mc);

trace(this._parent.link2);

};
}
};


function clearSubMenus() {
for (k=0; ksubMenus.length; k++) {
_root.conteudos_mc.portfolio_mc[subMenu+k].removeMovieClip();

}
}


function clearAllMenus() {
for (i=0; imainMenus.length; i++) {
_root.conteudos_mc.portfolio_mc[but+i].removeMovieClip();
}
}


Thanks...once again..xml drives me nuts..





On 7/31/06, Jose Maria Barros [EMAIL PROTECTED] wrote:

 Oh manthank you so much..i was getting so frustrated...well..i am
 ...but at least..the problem is solved..



 On 7/31/06, eric dolecki  [EMAIL PROTECTED] wrote:
 
  You are attaching everything to the _root, so you need to clean up the
  clips
  one by one, unless you decide to better nest your menu  submenu items
  in
  one movieclip. You could then remove it much easier, etc.
 
  On 7/31/06, Jose Maria Barros  [EMAIL PROTECTED] wrote:
  
   Hello, i have a xml 

Re: [Flashcoders] Help...cant unload the xml menu...!!

2006-08-01 Thread Arul Prasad M L

might be a problem with the URL.
1. Make sure that the ../xml folder is in the WWW folder of ur server, not
above it.

or

2. Try doing this:

var urlString:String = _root._url;
urlString = urlString.substr(0,urlString.lastIndexOf(/));
urlString = urlString.substr(0,urlString.lastIndexOf(/) + 1);
urlString = urlString.concat(xml/menu.xml)
menuInfoXML = urlString;

If it works, you may want to refactor all the statements above and make the
code optimal.

~Arul Prasad.

I've just elaborated in soo many statements, just in case you dont
understand.

On 8/1/06, Jose Maria Barros [EMAIL PROTECTED] wrote:


can anyone help me?

On 7/31/06, Jose Maria Barros [EMAIL PROTECTED] wrote:

 i singed too soon...when i test locally everything works great...but
when
 i try it in internet..it doesnt..he doestn load the xml file

 why...?

 The code is the same...but i did alter the url..like you said..:

 //EDIT XML PATH
 menuInfoXML = ./xml/menu.xml;
 // DO NOT EDIT BELOW..

 System.useCodepage = true;

 import mx.xpath.XPathAPI;
 var infoHolder:XML = new XML();
 infoHolder.load(menuInfoXML);
 infoHolder.ignoreWhite = true;
 var titlePath:String = /root;
 //main menu array.
 var mainMenus:Array;
 //sub menu array.
 var subMenus:Array;

 infoHolder.onLoad = function(ok) {
 if (ok) {
 mainMenus = mx.xpath.XPathAPI.selectNodeList(
infoHolder.firstChild,
 titlePath+/menu);
 createTreeMenu();
 }
 };


 MovieClip.prototype.getPos = function(target:Number) {
 this.onEnterFrame = function() {
 this._y -= (this._y-target)/6;
 if (Math.abs(this._y-target)0.3) {
 delete this.onEnterFrame;
 _root.newsMC.showNews.appear();
 }
 };
 };


 function createTreeMenu():Void {
 for (i=0; imainMenus.length; i++) {
 newBut = _root.conteudos_mc.portfolio_mc.attachMovie(but,
 but+i, 999+i);

 newBut.arrow._alpha = 0;
 newBut.shine._alpha = 0;
 newBut._x = 18;
 newBut._y = 93+(newBut._height+5)*i;

 newBut.txt.text = mainMenus[i].attributes.txt;
 newBut.link2 = mainMenus[i].attributes.url;
 newBut.submenuCnt = mainMenus[i].childNodes.length;
 newBut.y = newBut._y;
 newBut.onRollOver = function() {
 _root.conteudos_mc.portfolio_mc.tween(this, 16, 18);

 this.arrow.appear();
 this.shine.appear();
 var textCol = new Color(this.txt);
 textCol.setRGB(0xff);

 };
 newBut.onRollOut = function() {
 _root.conteudos_mc.portfolio_mc.tween(this, 18, 16);

 this.arrow.disappear();
 this.shine.disappear();
 var textCol = new Color(this.txt);
 textCol.setRGB(0x6F6A63);
 };
 newBut.onRelease = function() {
 if (this.submenuCnt0) {
 var butNum:Number = new Number(this._name.substr(3, 1));
 this.createSubMenu(butNum);
 for (i=0; imainMenus.length; i++) {
 if (ibutNum+1) {


_root.conteudos_mc.portfolio_mc[but+i].getPos(_root.conteudos_mc.portfolio_mc[but+i].y);

 } else {


_root.conteudos_mc.portfolio_mc[but+i].getPos(_root.conteudos_mc.portfolio_mc[but+i].y+this.submenuCnt*22);

 }
 }
 }
 else {
 _root.conteudos_mc.portfolio_mc.clearSubMenus();
 for (i=0; imainMenus.length; i++) {


_root.conteudos_mc.portfolio_mc[but+i].getPos(_root.conteudos_mc.portfolio_mc[but+i].y);

 }
 //getURL(this.link);

 }
 };
 }
 }


 MovieClip.prototype.createSubMenu =
function(buttonNumber:Number):Void  {
 clearSubMenus();
 subMenus = mx.xpath.XPathAPI.selectNodeList(mainMenus[buttonNumber],
 /menu/submenu);
 var butNum:Number = new Number(this._name.substr(3, 1));
 for (i=0; isubMenus.length; i++) {
 subBut = _root.conteudos_mc.portfolio_mc.attachMovie(submenu,
 subMenu+i, Math.random()*99);

 subBut._alpha = 0;
 subBut._x -= i;
 subAppear(subBut, (i+3), 30);

 subBut._y = this.y+this._height+(subBut._height+5)*i;
 subBut.txt.text = subMenus[i].attributes.txt;
 subBut.link2 = subMenus[i].attributes.url;
 subBut.but.onRollOver = function(){
 var textSubCol = new Color(this._parent.txt);
 textSubCol.setRGB(0xff);
 }
 subBut.but.onRollOut = function(){
 var textSubCol = new Color(this._parent.txt);
 textSubCol.setRGB(0x6F6A63);
 }
 subBut.but.onRelease = function() {
 loadMovie(this._parent.link2,
_root.conteudos_mc.vazio4_mc);

 trace(this._parent.link2);

 };
 }
 };


 function clearSubMenus() {
 for (k=0; ksubMenus.length; k++) {
 _root.conteudos_mc.portfolio_mc[subMenu+k].removeMovieClip();

 }
 }



Re: [Flashcoders] Interactive Map Examples

2006-08-01 Thread MetaArt
If you are findin' something that usen't Yahoo or Google maps API, and are
interesting to display your own map (with zoom and other features), get a
look at this (italian language):
- go to http://www.longobardidelsud.it
 - click on 'Entra' (below in the window)
- in the new window, click again 'Entra'
- then select 'gliItinerari' (green pulse, on right down corner)
- then select the 3rd item ('La memoria toponomastica')
On the top grey bar, you will see three buttons; select one, and a path
appear on the maps. Along the path, you can see some highspot points (any
one is an hystorical relevant place). If you click one (from list on side),
the map zoom centering the clicked point. In the low bar, you can find the
other navigation tools (+ and -, to zoom, the four arrows to move, 1:1 to
reset the zoom factor).

* Enrico Tomaselli
* web designer
[EMAIL PROTECTED]
http://www.metatad.it
* Skype: MetaArt
RSS: http://www.metatad.it/mnfeeder.php

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

2006-08-01 Thread Sumeet Kumar
Hi All,

 

 

I m using Bitmap data class in flash 8.

I have set the transparency parameter to true and the fillcolor equal to
0x000 in the bitmap data class constructor

bitmap_1: BitmapData = new BitmapData(width, height, true, 0x);

 

This bitmapdata is send to a virtual printer, which converts it to eps
file.

 

But I m getting a background Color in the eps file which is not required


 

I want a transparent eps as my per my requirement.

 

Any help would be great

 

Please suggest

 

 

Thanks and Regards

Sumeet Kumar

Sebiz Infotech

 

 

 

 

 

 

I never think of the future - it comes soon enough. 

 

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Flash 9 ready for kiosk use?

2006-08-01 Thread Joe Cutting
I've just downloaded the Adobe Flash 9 Public alpha and used it to 
compile one of my old kiosk
projects. As far as I can see it has none of memory leak issues which 
affected Flash 8 and stopped

it being suitable for kiosks. This is great.

Has anyone else found any memory leak issues with the Flash 9 player?
This is really important for me because I'm about to start a large 
kiosk project and any memory leak issues would

be a show stopper.
 This project is going to be delivered in the next few months but 
its going to be around for a while and
I can see that the code is going be regularly updated. Does anyone 
have any thoughts on whether I should use AS3 or AS2.
The project doesn't actually need any of the new features of AS3 but 
given that that's the way things are going should I make the jump now?
Or given that the Flash 9 IDE is only still alpha should I avoid it 
for commercial work?


Any thoughts or help would be appreciated

Cheers

Joe



Joe Cutting
Computer exhibits and installations
www.joecutting.com
96 Heslington Road, York, YO10 5BL
01904 627428
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Interactive Map Examples

2006-08-01 Thread Arul Prasad M L

Came across this one yesterday..http://www.backspace.com/mapapp/

~Arul Prasad

On 7/31/06, Matthew Ganz [EMAIL PROTECTED] wrote:


hi.

i'm looking for examples of interactive flash maps. i'm trying to see what
else is out there as i build out my application...which will be a map of the
US.

what i'd like is that a user can click a state and that state will be the
prominent viewpoint from which a user can select a county.

i've heard of examples where the state, in some planar 3D motion, will
stand up and the map of the US will almost lay down beneath it, so to speak.
but i'd also like to take the state and perhaps center it in the view
container and get rid of the US map entirely.

anyhow, if anyone can point me to some examples that'd be very much
appreciated.

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

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


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

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


RE: [Flashcoders] Image Loading causes Flash slowness and high cpuutilization

2006-08-01 Thread Ben Smeets
The type of behaviour reminds me of when you load images and create
multiple (10+) movieclips on top of eachother, the player gets stuck.

In case you get any use out of it,

Ben

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Eric
Raymond
Sent: dinsdag 1 augustus 2006 1:15
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Image Loading causes Flash slowness and high
cpuutilization

We have a Flex application which loads many copies of an image on the
fly. In some situations the image loading seems to cause Flash to slow
down (and use more CPU).

The slowdown stays with Flash beyond the loading of the image. We can
wait a hour and the load is still high. And each time this happens the
player gets a little bit slower and never improves until the browser is
restarted. This does not appear to be a memory utilization issue.

One hypothesis is that there is some type of background element (a layer
on the timeline) which is responsible for loading the image, and somehow
this gets hung up and doesn't get cleaned up. Get enough of these and
the load goes up.

Does this ring a bell with anyone. Is this a known problem?

It may be related to other events happening at the same time (e.g.,
moving the image before it is loaded, or loading a new image before the
old one is loaded). The longer it takes to load the image (e.g., local
web server versus remote), the more likely the problem.

This is with Flex 1.5. This affects all versions of flash on all
platforms we have tested.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Need Flash Remoting Setup for Java

2006-08-01 Thread hidayath q

Hi all,

I need to setup Flash Remoting for Java in my local system.

Can anyone tell me the step by step procedure to make the flash remoting to
work fine.bcos i have tried several times and icouldnt find out.

I know sure i will get help from this people here with great stuff.Thanks in
advance for everyone.

Regards,
S.Hidayath,
India,Chennai
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Need Flash Remoting Setup for Java

2006-08-01 Thread Jordan Chilcott
Download openAMF (http://www.openamf.net). It works with almost any J2ee 
server.

All you really have to do as far as openAMF goes is put the jar in your 
/WEB-INF/lib 
folder and configure the openamf-config.xml to see your flash service and 
modify 
the web.xml to map to the gateway. You'll find example config files with the 
download. If you are using Eclipse 3.2/WTP, you can use it to deploy and debug 
your java code.

jord
-- Original Message --
From: hidayath q [EMAIL PROTECTED]
Reply-To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Date:  Tue, 1 Aug 2006 18:12:25 +0530

Hi all,

I need to setup Flash Remoting for Java in my local system.

Can anyone tell me the step by step procedure to make the flash remoting to
work fine.bcos i have tried several times and icouldnt find out.

I know sure i will get help from this people here with great stuff.Thanks in
advance for everyone.

Regards,
S.Hidayath,
India,Chennai
 





Sent via the WebMail system at interactivityunlimited.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] strong typing, attachMovie

2006-08-01 Thread Martin Weiser

Hello,

i got little hasel, when attaching movie from library linked to some class, 
into movieclip attached line above, the typing shows error:


var myWorld:world = this.attachMovie(worldID, worldMC, 100);
var myPlayer:player = myWorld.attachMovie(playerID, playerMC, 
10,{_y:220});


not possible with myPlayer:player ,  why

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


Re: [Flashcoders] strong typing, attachMovie

2006-08-01 Thread Janis Radins

that is because attachMovie returns MovieClip.
First of all dont forghet to extend MovieClip in those classes.

A simple workaround would be:
var myPlayer:player = player (myWorld.attachMovie(playerID, playerMC,
10,{_y:220}));


2006/8/1, Martin Weiser [EMAIL PROTECTED]:


Hello,

i got little hasel, when attaching movie from library linked to some
class,
into movieclip attached line above, the typing shows error:

var myWorld:world = this.attachMovie(worldID, worldMC, 100);
var myPlayer:player = myWorld.attachMovie(playerID, playerMC,
10,{_y:220});

not possible with myPlayer:player ,  why

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


[Flashcoders] WSIWYG HTML text editor in Flash?

2006-08-01 Thread Merrill, Jason
Two related questions.  In a nutshell, trying to make a WSIWYG HTML text
editor for Flash 7.   

Question 1:

Has anyone created an HTML text editor component or class of some kind
in Flash?  Basically, having a textfield containing a paragraph of text
the user can apply bold, size, font, etc. to - I assume it would use
something like:

textfield.replaceText(Selection.getBeginIndex(),Selection.getEndIndex(),
theNewString) 

or something to that effect.  

So to my second question, I was able to get the above working, but the
html Textfield would not apply the new HTML tags, it would show them
literally when replaceText was used.  Initially, I set the text with
textField.htmlText = myText and renders fine with the bolding, but
textField.replaceText() seems to not allow the textfield to show the
bold tags applied - it shows the literal tag.   Any ideas?

Basically, would like to create a WSIWYG HTML text editor (flash 7), but
from what I read in the archives, it's a lot harder than it sounds and
maybe not even possible in Flash right now, but I don't want to give up
too early.  It seems that all the basic methods are available, there are
just some quirks to work out with the Textfield class. 

Thanks,

Jason Merrill
Bank of America 
Learning  Organization Effectiveness - Technology Solutions 
 
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] strong typing, attachMovie

2006-08-01 Thread Martin Weiser

thanks, a lot,
extending for sure, thsi helped
MW
- Original Message - 
From: Janis Radins [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Tuesday, August 01, 2006 4:08 PM
Subject: Re: [Flashcoders] strong typing, attachMovie



that is because attachMovie returns MovieClip.
First of all dont forghet to extend MovieClip in those classes.

A simple workaround would be:
var myPlayer:player = player (myWorld.attachMovie(playerID, playerMC,
10,{_y:220}));


2006/8/1, Martin Weiser [EMAIL PROTECTED]:


Hello,

i got little hasel, when attaching movie from library linked to some
class,
into movieclip attached line above, the typing shows error:

var myWorld:world = this.attachMovie(worldID, worldMC, 100);
var myPlayer:player = myWorld.attachMovie(playerID, playerMC,
10,{_y:220});

not possible with myPlayer:player ,  why

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

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] WSIWYG HTML text editor in Flash?

2006-08-01 Thread Adam Colpitts

There is a really nice Rich Text Editor component in DRK 5... not sure if
you've seen this.  It's in the Flash UI Component Set 4 Update.

On 8/1/06, Merrill, Jason [EMAIL PROTECTED] wrote:


Two related questions.  In a nutshell, trying to make a WSIWYG HTML text
editor for Flash 7.

Question 1:

Has anyone created an HTML text editor component or class of some kind
in Flash?  Basically, having a textfield containing a paragraph of text
the user can apply bold, size, font, etc. to - I assume it would use
something like:

textfield.replaceText(Selection.getBeginIndex(),Selection.getEndIndex(),
theNewString)

or something to that effect.

So to my second question, I was able to get the above working, but the
html Textfield would not apply the new HTML tags, it would show them
literally when replaceText was used.  Initially, I set the text with
textField.htmlText = myText and renders fine with the bolding, but
textField.replaceText() seems to not allow the textfield to show the
bold tags applied - it shows the literal tag.   Any ideas?

Basically, would like to create a WSIWYG HTML text editor (flash 7), but
from what I read in the archives, it's a lot harder than it sounds and
maybe not even possible in Flash right now, but I don't want to give up
too early.  It seems that all the basic methods are available, there are
just some quirks to work out with the Textfield class.

Thanks,

Jason Merrill
Bank of America
Learning  Organization Effectiveness - Technology Solutions


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] WSIWYG HTML text editor in Flash?

2006-08-01 Thread Tom Rhodes
i've made some simple ones for css sites, that get their copy out of a 
db. i used textformats back in the flash 6 days, then in the output 
string, once you've applied the formatting in the editor text field, 
you look for the textformat tags, strip them out and replace with what 
you need for the corresponding styles for your site


with 7 and the stylesheets support maybe it's even easier than that. I 
just remember having to keep things simple in terms of editor 
functionality, basically one button for each possible style


Merrill, Jason wrote:

Two related questions.  In a nutshell, trying to make a WSIWYG HTML text
editor for Flash 7.   


Question 1:

Has anyone created an HTML text editor component or class of some kind
in Flash?  Basically, having a textfield containing a paragraph of text
the user can apply bold, size, font, etc. to - I assume it would use
something like:

textfield.replaceText(Selection.getBeginIndex(),Selection.getEndIndex(),
theNewString) 

or something to that effect.  


So to my second question, I was able to get the above working, but the
html Textfield would not apply the new HTML tags, it would show them
literally when replaceText was used.  Initially, I set the text with
textField.htmlText = myText and renders fine with the bolding, but
textField.replaceText() seems to not allow the textfield to show the
bold tags applied - it shows the literal tag.   Any ideas?

Basically, would like to create a WSIWYG HTML text editor (flash 7), but
from what I read in the archives, it's a lot harder than it sounds and
maybe not even possible in Flash right now, but I don't want to give up
too early.  It seems that all the basic methods are available, there are
just some quirks to work out with the Textfield class. 


Thanks,

Jason Merrill
Bank of America 
Learning  Organization Effectiveness - Technology Solutions 
 
 
___

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

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


  



--

__

Tom Rhodes - Developer / Composer
Wheelhouse Creative Ltd, 2 Albion Place,
Hammersmith, London. W6 0QT
Tel: 020 8748 4466  Fax: 020 8748 4850
www.wheelhousecreative.co.uk
__

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] WSIWYG HTML text editor in Flash?

2006-08-01 Thread Giles Taylor
You want to be using the TextFormat class. If you use it on an
htmlTextField then flash does all the html coding for you; much easier!

Giles

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: 01 August 2006 15:11
To: Flashcoders mailing list
Subject: [Flashcoders] WSIWYG HTML text editor in Flash?

Two related questions.  In a nutshell, trying to make a WSIWYG HTML text
editor for Flash 7.   

Question 1:

Has anyone created an HTML text editor component or class of some kind
in Flash?  Basically, having a textfield containing a paragraph of text
the user can apply bold, size, font, etc. to - I assume it would use
something like:

textfield.replaceText(Selection.getBeginIndex(),Selection.getEndIndex(),
theNewString) 

or something to that effect.  

So to my second question, I was able to get the above working, but the
html Textfield would not apply the new HTML tags, it would show them
literally when replaceText was used.  Initially, I set the text with
textField.htmlText = myText and renders fine with the bolding, but
textField.replaceText() seems to not allow the textfield to show the
bold tags applied - it shows the literal tag.   Any ideas?

Basically, would like to create a WSIWYG HTML text editor (flash 7), but
from what I read in the archives, it's a lot harder than it sounds and
maybe not even possible in Flash right now, but I don't want to give up
too early.  It seems that all the basic methods are available, there are
just some quirks to work out with the Textfield class. 

Thanks,

Jason Merrill
Bank of America
Learning  Organization Effectiveness - Technology Solutions 
 
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] WSIWYG HTML text editor in Flash?

2006-08-01 Thread Merrill, Jason
Haven't DevNet Resource Kits been discontinued?  If so, how would I get
my hands on that?  If not, how would I get my hands on that?  :) Thanks.

Jason Merrill
Bank of America 
Learning  Organization Effectiveness - Technology Solutions 
 
 
 
 
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Adam Colpitts
Sent: Tuesday, August 01, 2006 10:23 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash?

There is a really nice Rich Text Editor component in DRK 5... not sure
if
you've seen this.  It's in the Flash UI Component Set 4 Update.

On 8/1/06, Merrill, Jason [EMAIL PROTECTED] wrote:

 Two related questions.  In a nutshell, trying to make a WSIWYG HTML
text
 editor for Flash 7.

 Question 1:

 Has anyone created an HTML text editor component or class of some
kind
 in Flash?  Basically, having a textfield containing a paragraph of
text
 the user can apply bold, size, font, etc. to - I assume it would use
 something like:


textfield.replaceText(Selection.getBeginIndex(),Selection.getEndIndex(),
 theNewString)

 or something to that effect.

 So to my second question, I was able to get the above working, but
the
 html Textfield would not apply the new HTML tags, it would show them
 literally when replaceText was used.  Initially, I set the text with
 textField.htmlText = myText and renders fine with the bolding, but
 textField.replaceText() seems to not allow the textfield to show the
 bold tags applied - it shows the literal tag.   Any ideas?

 Basically, would like to create a WSIWYG HTML text editor (flash 7),
but
 from what I read in the archives, it's a lot harder than it sounds
and
 maybe not even possible in Flash right now, but I don't want to give
up
 too early.  It seems that all the basic methods are available, there
are
 just some quirks to work out with the Textfield class.

 Thanks,

 Jason Merrill
 Bank of America
 Learning  Organization Effectiveness - Technology Solutions


 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] WSIWYG HTML text editor in Flash?

2006-08-01 Thread Merrill, Jason
 strip them out and replace with what
you need for the corresponding styles for your site

Right, if I follow you, that's similar to what I have tried, but I can't
get the textfield to re-render the HTML tag  - it shows the tag
literally if I use replaceText() or replaceSel().

Or how would you do it?  Have a code example?  thanks. 

Jason Merrill
Bank of America 
Learning  Organization Effectiveness - Technology Solutions 
 
 
 
 
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Tom Rhodes
Sent: Tuesday, August 01, 2006 10:23 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash?

i've made some simple ones for css sites, that get their copy out of a
db. i used textformats back in the flash 6 days, then in the output
string, once you've applied the formatting in the editor text field,
you look for the textformat tags, strip them out and replace with what
you need for the corresponding styles for your site

with 7 and the stylesheets support maybe it's even easier than that. I
just remember having to keep things simple in terms of editor
functionality, basically one button for each possible style

Merrill, Jason wrote:
 Two related questions.  In a nutshell, trying to make a WSIWYG HTML
text
 editor for Flash 7.

 Question 1:

 Has anyone created an HTML text editor component or class of some
kind
 in Flash?  Basically, having a textfield containing a paragraph of
text
 the user can apply bold, size, font, etc. to - I assume it would use
 something like:


textfield.replaceText(Selection.getBeginIndex(),Selection.getEndIndex(),
 theNewString)

 or something to that effect.

 So to my second question, I was able to get the above working, but
the
 html Textfield would not apply the new HTML tags, it would show them
 literally when replaceText was used.  Initially, I set the text with
 textField.htmlText = myText and renders fine with the bolding, but
 textField.replaceText() seems to not allow the textfield to show the
 bold tags applied - it shows the literal tag.   Any ideas?

 Basically, would like to create a WSIWYG HTML text editor (flash 7),
but
 from what I read in the archives, it's a lot harder than it sounds
and
 maybe not even possible in Flash right now, but I don't want to give
up
 too early.  It seems that all the basic methods are available, there
are
 just some quirks to work out with the Textfield class.

 Thanks,

 Jason Merrill
 Bank of America
 Learning  Organization Effectiveness - Technology Solutions


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

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





--

__

Tom Rhodes - Developer / Composer
Wheelhouse Creative Ltd, 2 Albion Place,
Hammersmith, London. W6 0QT
Tel: 020 8748 4466  Fax: 020 8748 4850
www.wheelhousecreative.co.uk
__

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

2006-08-01 Thread Matthew Ganz
thanks for sending all those examples. i tried a test implementing yahoo 
maps yesterday but quickly realized that instead of a mapping solution i'm 
looking for more of a navigational interface whereby you can select a state 
and then drill down to the county level for more information.


i found s/thing very close to what i am looking for here:

https://www.propertyinfo.com/Stewart.REI.Portal.PortalWebSite/CoverageMap.aspx
- Original Message - 
From: Arul Prasad M L [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Tuesday, August 01, 2006 7:01 AM
Subject: Re: [Flashcoders] Interactive Map Examples



Came across this one yesterday..http://www.backspace.com/mapapp/

~Arul Prasad

On 7/31/06, Matthew Ganz [EMAIL PROTECTED] wrote:


hi.

i'm looking for examples of interactive flash maps. i'm trying to see 
what
else is out there as i build out my application...which will be a map of 
the

US.

what i'd like is that a user can click a state and that state will be the
prominent viewpoint from which a user can select a county.

i've heard of examples where the state, in some planar 3D motion, will
stand up and the map of the US will almost lay down beneath it, so to 
speak.

but i'd also like to take the state and perhaps center it in the view
container and get rid of the US map entirely.

anyhow, if anyone can point me to some examples that'd be very much
appreciated.

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

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


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

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


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] WSIWYG HTML text editor in Flash?

2006-08-01 Thread Marcelo Volmaro

http://osflash.org/flashtextarea

On Tue, 01 Aug 2006 11:35:49 -0300, Merrill, Jason  
[EMAIL PROTECTED] wrote:



strip them out and replace with what
you need for the corresponding styles for your site


Right, if I follow you, that's similar to what I have tried, but I can't
get the textfield to re-render the HTML tag  - it shows the tag
literally if I use replaceText() or replaceSel().

Or how would you do it?  Have a code example?  thanks.

Jason Merrill
Bank of America
Learning  Organization Effectiveness - Technology Solutions


-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Tom Rhodes
Sent: Tuesday, August 01, 2006 10:23 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash?

i've made some simple ones for css sites, that get their copy out of a
db. i used textformats back in the flash 6 days, then in the output
string, once you've applied the formatting in the editor text field,
you look for the textformat tags, strip them out and replace with what
you need for the corresponding styles for your site

with 7 and the stylesheets support maybe it's even easier than that. I
just remember having to keep things simple in terms of editor
functionality, basically one button for each possible style

Merrill, Jason wrote:

Two related questions.  In a nutshell, trying to make a WSIWYG HTML

text

editor for Flash 7.

Question 1:

Has anyone created an HTML text editor component or class of some

kind

in Flash?  Basically, having a textfield containing a paragraph of

text

the user can apply bold, size, font, etc. to - I assume it would use
something like:



textfield.replaceText(Selection.getBeginIndex(),Selection.getEndIndex(),

theNewString)

or something to that effect.

So to my second question, I was able to get the above working, but

the

html Textfield would not apply the new HTML tags, it would show them
literally when replaceText was used.  Initially, I set the text with
textField.htmlText = myText and renders fine with the bolding, but
textField.replaceText() seems to not allow the textfield to show the
bold tags applied - it shows the literal tag.   Any ideas?

Basically, would like to create a WSIWYG HTML text editor (flash 7),

but

from what I read in the archives, it's a lot harder than it sounds

and

maybe not even possible in Flash right now, but I don't want to give

up

too early.  It seems that all the basic methods are available, there

are

just some quirks to work out with the Textfield class.

Thanks,

Jason Merrill
Bank of America
Learning  Organization Effectiveness - Technology Solutions


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

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






--

__

Tom Rhodes - Developer / Composer
Wheelhouse Creative Ltd, 2 Albion Place,
Hammersmith, London. W6 0QT
Tel: 020 8748 4466  Fax: 020 8748 4850
www.wheelhousecreative.co.uk
__

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


[Flashcoders] Blur text Interactive effect-- HOW TO??

2006-08-01 Thread Tamer Qarrain

Hi All
Can anybody lead me to a tutorial or idea of how would I achieve the below
link interactivity and effect?
http://www.screenvader.com/root.html

Appreciatively

Tamer 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] WSIWYG HTML text editor in Flash?

2006-08-01 Thread James Booth
I just did exactly this, a couple of days ago.  I created a class that can
apply any kind of supported HTML formatting.  The idea seemed daunting at
first, but the class is relatively small.  You can assign/remove textfields
that it should watch. I don't have it here with me right now, but here's
the basics:

It doesn't use replaceText at all.

I have a switch statement for the various textformat options (some are
Boolean (bold, italic, etc) and some have arguments (leading, size, etc).

When the textfield has focus use an interval to get the beginIndex and
endIndex.  You can clear the interval onkillFocus.

Then in your setFormat function

Public function setFormat (type, arg):Void
{
var temp_fmt:TextFormat = currentField.getTextFormat(beginIndex,
endIndex);

switch (type)
{
case bold:
case italic:
case underline:
//etc...
{
temp_fmt[type] = temp_fmt[type] == false ? true :
false;
break;
}
case leading:
case align:
case size:
//etc...
{
temp_fmt[type] = arg;
break;
}
}
currentField.setTextFormat(beginIndex, endIndex, temp_fmt);
}

This should give you a head start.

- James 


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: Tuesday, August 01, 2006 10:11 AM
To: Flashcoders mailing list
Subject: [Flashcoders] WSIWYG HTML text editor in Flash?

Two related questions.  In a nutshell, trying to make a WSIWYG HTML text
editor for Flash 7.   

Question 1:

Has anyone created an HTML text editor component or class of some kind
in Flash?  Basically, having a textfield containing a paragraph of text
the user can apply bold, size, font, etc. to - I assume it would use
something like:

textfield.replaceText(Selection.getBeginIndex(),Selection.getEndIndex(),
theNewString) 

or something to that effect.  

So to my second question, I was able to get the above working, but the
html Textfield would not apply the new HTML tags, it would show them
literally when replaceText was used.  Initially, I set the text with
textField.htmlText = myText and renders fine with the bolding, but
textField.replaceText() seems to not allow the textfield to show the
bold tags applied - it shows the literal tag.   Any ideas?

Basically, would like to create a WSIWYG HTML text editor (flash 7), but
from what I read in the archives, it's a lot harder than it sounds and
maybe not even possible in Flash right now, but I don't want to give up
too early.  It seems that all the basic methods are available, there are
just some quirks to work out with the Textfield class. 

Thanks,

Jason Merrill
Bank of America 
Learning  Organization Effectiveness - Technology Solutions 
 
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] LocalConnection, Trying Again

2006-08-01 Thread Jessica Hensley
I posted a fairly involved question last week about a problem I'm having
with a localconnection working the same across different browsers and
Mac versus PC. I haven't had much luck finding an answer, so I thought I
would try one last time to just see if anyone has experienced anything
like this and could provide any insight. Any thoughts are greatly
appreciated! Thanks!
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Loading a 3500 entry XML file

2006-08-01 Thread Clayton
Thanks for the assist guys! I'm just looking through the SAX XML parser
documentation right now...will try that first, and also see if I can't T.
Michael's technique to work as well. We've kind of deciphered the root (no
pun intended) of the problem with the whitespace. Running some automated
scripts to add line breaks in TextPad, well, I was able to crash that too.
To dazzle with vague language (to mask my not-entirely-technical-nature)
there's some sweet-spot character count for a single line in TexPad it
seems, that causes it to crash too. I'm assuming the same for Flash (why it
would crash while stripping the whitespace, and also when loading the
noWhite file).

In the end, I wound up using the whitespace ( a \n after each media item)
as controlled formatting, and am using XPath to search the thing, so the
added whitespace does not seem to be bothering. Found a consistent
skip-a-number pattern (as to be expected) when digging for gold using a
for loop...so if it comes to that I can use incriments of 2, rather than 1,
as a hack.

For speed, the XML tag names have been severly reduced (one or two
characters). Also, most item descriptions are now (yes, a cheat) attributes
instead of child tags - so Flash now load the file in about 4 seconds. XPath
searches can take a wee bit longer, but working on that (and experiments
with your proposed solutions will help).

Sorry for the rant, just wanted to say thanks, and hopefully provide a tip
or two through my tests so far.

Clayton 

-Original Message-
From: Frederic v. Bochmann [EMAIL PROTECTED]
Subject: RE: [Flashcoders] Loading a 3500 entry XML file
To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain;   charset=us-ascii

My advice is:

Hock yourself up with a SAX XML Parser simply and easily. This type of XML
parser can easily be leveraged to parse HUGE streaming XML data, without
needing to keep the XML data in memory.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike
Sent: July 31, 2006 1:42 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Loading a 3500 entry XML file

Now there's an interesting problem.

I have one really awkward idea. I'm assuming the XML structure is something
like this?
?xml version=1.0?
root
entry
entry-data /
!--12 more entry-data nodes--
/entry
!--3499 more entry nodes--
/root

- Use the XML object's onData handler so that you can work with the raw
string data.
- Strip out the root opening and closing tags.
- Iterate through the string until you reach the end:
--- (The current character should be a .)
--- Set a countOpenTags variable to 1
--- Iterate:
- move forward one character
- For every character, if it is a , increment countOpenTags, and if
it is a , decrement countOpenTags
- When countOpenTags is 0:
--- Grab everything from to the current position in the string. This
grabbed string represents the raw data for an entry tag.
--- Create a timeout call to parse the grabbed string. Timeouts should
be spaced apart by a certain number of milliseconds.
(Experimentation will be required.) The last timeout should have a callback
that signals that all the XML has been parsed.
--- Break the loop.
--- If at the last character, break the loop.


Also, if you're interesting, I have an async package for performing long
calculations asynchronously. It works somewhat similarly. Basically it keeps
track of checkpoints and provides ways to keep track of time, so that if
too much time is spent, it can break out of the procedure and re-enter it on
a timeout. Checkpoints correspond to options on a large switch statement.
It's kind of a hack, but it's come in useful on several occasions.
--
T. Michael Keesey


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] WSIWYG HTML text editor in Flash?

2006-08-01 Thread Matthew Simpson
Jason,

We found a copy of 5 on Limewire...If you fail to find one, let me know
off-list. 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: Tuesday, August 01, 2006 10:29 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash?

Haven't DevNet Resource Kits been discontinued?  If so, how would I get
my hands on that?  If not, how would I get my hands on that?  :) Thanks.

Jason Merrill
Bank of America
Learning  Organization Effectiveness - Technology Solutions 
 
 
 
 
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders- 
[EMAIL PROTECTED] On Behalf Of Adam Colpitts
Sent: Tuesday, August 01, 2006 10:23 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash?

There is a really nice Rich Text Editor component in DRK 5... not sure
if
you've seen this.  It's in the Flash UI Component Set 4 Update.

On 8/1/06, Merrill, Jason [EMAIL PROTECTED] wrote:

 Two related questions.  In a nutshell, trying to make a WSIWYG HTML
text
 editor for Flash 7.

 Question 1:

 Has anyone created an HTML text editor component or class of some
kind
 in Flash?  Basically, having a textfield containing a paragraph of
text
 the user can apply bold, size, font, etc. to - I assume it would use

 something like:


textfield.replaceText(Selection.getBeginIndex(),Selection.getEndIndex(),
 theNewString)

 or something to that effect.

 So to my second question, I was able to get the above working, but
the
 html Textfield would not apply the new HTML tags, it would show them

 literally when replaceText was used.  Initially, I set the text with

 textField.htmlText = myText and renders fine with the bolding, but
 textField.replaceText() seems to not allow the textfield to show the
 bold tags applied - it shows the literal tag.   Any ideas?

 Basically, would like to create a WSIWYG HTML text editor (flash 7),
but
 from what I read in the archives, it's a lot harder than it sounds
and
 maybe not even possible in Flash right now, but I don't want to give
up
 too early.  It seems that all the basic methods are available, there
are
 just some quirks to work out with the Textfield class.

 Thanks,

 Jason Merrill
 Bank of America
 Learning  Organization Effectiveness - Technology Solutions


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


RE: [Flashcoders] WSIWYG HTML text editor in Flash?

2006-08-01 Thread Merrill, Jason
That seems to be a flash file specifically for HTML forms and uses a
large .js file for configuration.  Could this be loaded into a Flash
file?  I mean, I know it could, but it doesn't seem like it would work
if you did, and how would you get the end string from it?

Jason Merrill
Bank of America 
Learning  Organization Effectiveness - Technology Solutions 
 
 
 
 
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Marcelo Volmaro
Sent: Tuesday, August 01, 2006 10:40 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash?

http://osflash.org/flashtextarea

On Tue, 01 Aug 2006 11:35:49 -0300, Merrill, Jason
[EMAIL PROTECTED] wrote:

 strip them out and replace with what
 you need for the corresponding styles for your site

 Right, if I follow you, that's similar to what I have tried, but I
can't
 get the textfield to re-render the HTML tag  - it shows the tag
 literally if I use replaceText() or replaceSel().

 Or how would you do it?  Have a code example?  thanks.

 Jason Merrill
 Bank of America
 Learning  Organization Effectiveness - Technology Solutions

 -Original Message-
 From: [EMAIL PROTECTED]
[mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Tom Rhodes
 Sent: Tuesday, August 01, 2006 10:23 AM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash?

 i've made some simple ones for css sites, that get their copy out
of a
 db. i used textformats back in the flash 6 days, then in the
output
 string, once you've applied the formatting in the editor text
field,
 you look for the textformat tags, strip them out and replace with
what
 you need for the corresponding styles for your site

 with 7 and the stylesheets support maybe it's even easier than
that. I
 just remember having to keep things simple in terms of editor
 functionality, basically one button for each possible style

 Merrill, Jason wrote:
 Two related questions.  In a nutshell, trying to make a WSIWYG
HTML
 text
 editor for Flash 7.

 Question 1:

 Has anyone created an HTML text editor component or class of some
 kind
 in Flash?  Basically, having a textfield containing a paragraph
of
 text
 the user can apply bold, size, font, etc. to - I assume it would
use
 something like:



textfield.replaceText(Selection.getBeginIndex(),Selection.getEndIndex(),
 theNewString)

 or something to that effect.

 So to my second question, I was able to get the above working,
but
 the
 html Textfield would not apply the new HTML tags, it would show
them
 literally when replaceText was used.  Initially, I set the text
with
 textField.htmlText = myText and renders fine with the bolding,
but
 textField.replaceText() seems to not allow the textfield to show
the
 bold tags applied - it shows the literal tag.   Any ideas?

 Basically, would like to create a WSIWYG HTML text editor (flash
7),
 but
 from what I read in the archives, it's a lot harder than it
sounds
 and
 maybe not even possible in Flash right now, but I don't want to
give
 up
 too early.  It seems that all the basic methods are available,
there
 are
 just some quirks to work out with the Textfield class.

 Thanks,

 Jason Merrill
 Bank of America
 Learning  Organization Effectiveness - Technology Solutions


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

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





 --

 __

 Tom Rhodes - Developer / Composer
 Wheelhouse Creative Ltd, 2 Albion Place,
 Hammersmith, London. W6 0QT
 Tel: 020 8748 4466  Fax: 020 8748 4850
 www.wheelhousecreative.co.uk
 __

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

2006-08-01 Thread John Grden

Hey Jessica, I don't know if I caught your first email - what's the problem
specifically?

Do you know about the 40k limit?  if so, what are you doing to accomodate
that?

JPG

On 8/1/06, Jessica Hensley [EMAIL PROTECTED] wrote:


I posted a fairly involved question last week about a problem I'm having
with a localconnection working the same across different browsers and
Mac versus PC. I haven't had much luck finding an answer, so I thought I
would try one last time to just see if anyone has experienced anything
like this and could provide any insight. Any thoughts are greatly
appreciated! Thanks!
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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





--
John Grden
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Image Loading causes Flash slowness and high cpu utilization

2006-08-01 Thread Eric Raymond

Hmmm.  This is pretty close to what we are doing.

At any given time, we are loading 12 images total which are stacked on 
top of each other in four canvases.  And flex treats each component as 
it's own movieclip.


Any idea on how we might work around this issue or diagnose it further?

Any further info on this?  How well known an issue is this?


Message: 12
Date: Tue, 1 Aug 2006 13:13:42 +0200
From: Ben Smeets [EMAIL PROTECTED]
Subject: RE: [Flashcoders] Image Loading causes Flash slowness and
highcpuutilization
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Message-ID:
[EMAIL PROTECTED]
Content-Type: text/plain;   charset=us-ascii

The type of behaviour reminds me of when you load images and create
multiple (10+) movieclips on top of eachother, the player gets stuck.

In case you get any use out of it,

Ben

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

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


Re: [Flashcoders] Custom cacheAsBitmap with scale and rotate

2006-08-01 Thread Ramon Miguel M. Tayag

I wrote something a while back it's up in Flashkit.  That may have
been the one you saw. BitmapDataManager.

http://board.flashkit.com/board/showthread.php?t=659163



On 7/31/06, Seb L [EMAIL PROTECTED] wrote:

Hi guys,

So cacheAsBitmap is great, but it re-renders the bitmap every time you
scale or rotate. I remember seeing some code that you could apply to a
movie clip and it manually cached a bitmap version of the clip, which
was scaled and rotated as a bitmap... but I can't remember where...
can anyone else?

Thanks in advance!

Seb


--
Ramon Miguel M. Tayag
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Custom cacheAsBitmap with scale and rotate

2006-08-01 Thread Ramon Miguel M. Tayag

The problem with that is once you rotate or scale it it reverts back to vector.

Also another neat thing about dynamically forcing something to become
a bitmap is it makes your sites loads smaller (as compared to raster),
if it's a largely vector site.  The problem with largely vector
drawings is that they're slowww... hence, you can get the best of both
worlds with the BitmapDataManager.

I must admit though that it was a quick hack and I haven't worked on
it since - i.e. adding the feature to pick your resolution, etc.

On 7/31/06, John VanHorn [EMAIL PROTECTED] wrote:

cacheAsBitmap is a boolean property of a moive clip, so cant you set it to
true while it is static, and then false before you have to scale or rotate
it?



--
Ramon Miguel M. Tayag
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] WSIWYG HTML text editor in Flash?

2006-08-01 Thread Marcelo Volmaro
It was developed with that in mind, but the class itself can be used as  
standalone editor (I´m already using it for some projects). You simply set  
the content by writting to the _content property of the HTMLeditor class  
and get the content by reading that property.


Currently i don´t have the time to make a component, but it should be  
really easy to create a component from what is done.
The JS file is used to replace textareas with the html file, and the  
configuration options you see are simply passed via flashvars to the  
class, so you don´t need it to make the editor works.



On Tue, 01 Aug 2006 11:56:32 -0300, Merrill, Jason  
[EMAIL PROTECTED] wrote:



That seems to be a flash file specifically for HTML forms and uses a
large .js file for configuration.  Could this be loaded into a Flash
file?  I mean, I know it could, but it doesn't seem like it would work
if you did, and how would you get the end string from it?

Jason Merrill
Bank of America
Learning  Organization Effectiveness - Technology Solutions


-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Marcelo Volmaro
Sent: Tuesday, August 01, 2006 10:40 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash?

http://osflash.org/flashtextarea

On Tue, 01 Aug 2006 11:35:49 -0300, Merrill, Jason
[EMAIL PROTECTED] wrote:


strip them out and replace with what
you need for the corresponding styles for your site


Right, if I follow you, that's similar to what I have tried, but I

can't

get the textfield to re-render the HTML tag  - it shows the tag
literally if I use replaceText() or replaceSel().

Or how would you do it?  Have a code example?  thanks.

Jason Merrill
Bank of America
Learning  Organization Effectiveness - Technology Solutions


-Original Message-
From: [EMAIL PROTECTED]

[mailto:flashcoders-

[EMAIL PROTECTED] On Behalf Of Tom Rhodes
Sent: Tuesday, August 01, 2006 10:23 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash?

i've made some simple ones for css sites, that get their copy out

of a

db. i used textformats back in the flash 6 days, then in the

output

string, once you've applied the formatting in the editor text

field,

you look for the textformat tags, strip them out and replace with

what

you need for the corresponding styles for your site

with 7 and the stylesheets support maybe it's even easier than

that. I

just remember having to keep things simple in terms of editor
functionality, basically one button for each possible style

Merrill, Jason wrote:

Two related questions.  In a nutshell, trying to make a WSIWYG

HTML

text

editor for Flash 7.

Question 1:

Has anyone created an HTML text editor component or class of some

kind

in Flash?  Basically, having a textfield containing a paragraph

of

text

the user can apply bold, size, font, etc. to - I assume it would

use

something like:





textfield.replaceText(Selection.getBeginIndex(),Selection.getEndIndex(),

theNewString)

or something to that effect.

So to my second question, I was able to get the above working,

but

the

html Textfield would not apply the new HTML tags, it would show

them

literally when replaceText was used.  Initially, I set the text

with

textField.htmlText = myText and renders fine with the bolding,

but

textField.replaceText() seems to not allow the textfield to show

the

bold tags applied - it shows the literal tag.   Any ideas?

Basically, would like to create a WSIWYG HTML text editor (flash

7),

but

from what I read in the archives, it's a lot harder than it

sounds

and

maybe not even possible in Flash right now, but I don't want to

give

up

too early.  It seems that all the basic methods are available,

there

are

just some quirks to work out with the Textfield class.

Thanks,

Jason Merrill
Bank of America
Learning  Organization Effectiveness - Technology Solutions


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

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






--

__

Tom Rhodes - Developer / Composer
Wheelhouse Creative Ltd, 2 Albion Place,
Hammersmith, London. W6 0QT
Tel: 020 8748 4466  Fax: 020 8748 4850
www.wheelhousecreative.co.uk
__

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

[Flashcoders] Weird getURL behavior

2006-08-01 Thread Merrill, Jason
I'm going crazy with this. Hopefully, I'm just missing something stupid.


Weird getURL behavior in my Flash 8 player.  Is there any reason why a
Flash file here:

http://loerepository/evaluationGallery/myFlashFile.swf

Would not be able to link to this:

http://loerepository/evaluationGallery/EARS_L3_Interview.doc

 

Same domain, same folder!  Ah, this is so freaking aggravating.  It was
working fine just a week ago.  We did recently move the flash file and
the linked-to doc to a new server... is there something about a URL that
doesn't have www.mypage.com in it?  I didn't think so... so anyway I am
just using:

getURL(EARS_L3_Interview.doc, _blank);

or, I also tried the absolute path:

getURL(http://loerepository/evaluationGallery/EARS_L3_Interview.doc;,
_blank);

(note, don't try that paths above, it's on an intranet site and will
fail for you)

it does pop up a new window, but the window says, 

Action canceled 
Internet Explorer was unable to link to the Web page you requested. The
page might be temporarily unavailable.

HOWEVER, the file IS there and available:  if I put the path to the
browser address bar directly, it works fine!!!  What's up with that?
Why would getURL only fail in Flash?  My worst fear is there is some
security thing on the server the admins changed which is blocking my
access from Flash.  Ideas?


Jason Merrill
Bank of America 
Learning  Organization Effectiveness - Technology Solutions 
 
 
 
 
 

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] ExternalInterface, embed tag and IE

2006-08-01 Thread Geoff Stearns
the short answer is you probably just need to give the embed tag an  
Id attribute.


the long answer is: why can't you use an object tag? that makes  
absolutely no sense at all.


even more: you should be using a Javascript solution like SWFObject  
anyway, since that will skip the 'click to activate' stuff and handle  
your plugin detection and all that for you.



On Jul 31, 2006, at 9:57 PM, Vishal Kapur wrote:


Hello,

I am trying to use ExternalInterface on a flash movie loaded via an
embed tag in Internet Explorer.  (For specific reasons I do not want
to use the object tag and I can't use firefox).  I have set
allowScriptAccess=always and I have specified the 'name' attribute.
However, when I try to call an AS function from javascript on this
object I get an error like Object does not support this property or
method.

My embed tag looks something like:

embed name=testMovie
  type=application/x-shockwave-flash
  src=testMovie.swf
  allowScriptAccess=always
/embed

The AS function I want to call is exposed via
ExternalInterface.addCallback().  Also I do not have the issue if I
use an object tag to load the swf.

Has anyone faced this issue before?  Any thoughts/pointers would be  
appreciated.


Thanks,
Vishal
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] String Empowerment

2006-08-01 Thread Heerko van der Kooij

Hi Steven,

Maybe i'm saying something stupid here, but would this be a prettier  
way to do the capitalize?


String.prototype.capitalize = function() {
return this.charAt(0).toUpperCase() + this.substr(1).toLowerCase();
}

gr, heerko


On 28-jul-2006, at 0:39, Steven Sacks | BLITZ wrote:


My follow up to the Array extensions is this set of String extension
methods, again, borrowed from other languages.   Time for  
optimization!
Some methods are still in development - some pretty tricky  
checking.  I

also need to make _parseParams a bit more robust in allowing multiple
arguments to be passed with the intersections of those strings  
being the

result.

--
// XString

// Returns a copy of this with the first character converted to
uppercase and the remainder to lowercase.
String.prototype.capitalize = function() {
var a = this.length;
if (a == 0) return ;
var c;
var s = ;
while (--a -(-1)) {
c = this.charCodeAt(a);
if ((c  64  c  91  a  0) || (c  96  c  123 
a == 0)) c = c ^ 32;
s = String.fromCharCode(c) + s;
}
return s;
};
// If n is greater than the length of str, returns a new String of
// length n with str centered between r; otherwise, returns str.
// If r is not passed, r is a space
String.prototype.center = function(n, r) {
var a = this.length;
if (n  a) {
if (r.length == 0) r =  ;
var d = n - a;
var cl = Math.floor(d / 2);
sl = ;
while (--cl -(-1)) {
sl += r;
}
var cr = Math.ceil(d / 2);
sr = ;
while (--cr -(-1)) {
sr += r;
}
return sl + this + sr;
}
return this;
};
// Returns a new String with the given record separator removed  
from the

end of this (if present).
String.prototype.chomp = function(str) {
var n = this.length;
var s = str.length;
if (s == 0) {
if (this.charCodeAt(n - 1) == 13 || this.charCodeAt(n -
1) == 10) {
return this.substring(0, n - 1);
}
} else {
if (this.substring(n - s, n) == str) {
return this.substring(0, n - s);
}
}
return undefined;
};
// Returns a new String with the last character removed. If the string
ends with \r\n,
// both characters are removed. Applying chop to an empty string  
returns

an empty string.
// String.chomp is often a safer alternative, as it leaves the string
unchanged if it
// doesn't end in a record separator.
String.prototype.chop = function() {
var n = this.length;
if (n  0) {
if (this.charCodeAt(n - 1) == 10  this.charCodeAt(n -
2) == 13) {
return this.substring(0, n - 2);
}
return this.chomp(this.charAt(n - 1));
}
return ;
};
// str parameter defines a set of characters to count. The  
intersection

of this set
// defines the characters to count in str. Any str that starts with a
caret (^) is negated.
// The sequence c1--c2 means all characters between c1 and c2.
String.prototype.count = function(str) {
var a = this.length;
if (a == 0) return 0;
var s = 0;
var c;
if (!str.length) return 0;
var o = this._parseParams(str);
if (o == undefined) return undefined;
var p = o.compare;
var except = o.except;
while (--a -(-1)) {
c = this.charAt(a);
if ((p.indexOf(c) == -1) == except) {
s++
}
}   
return s;
};
// If n is greater than the length of this, returns a new String of
length n with this
// left justified and r padded; otherwise, returns this. (see
String.center)
String.prototype.ljust = function(n, r) {
var a = this.length;
if (n  a) {
if (!r.length) r =  ;
var d = n - a;
var sr = ;
while (--d -(-1)) {
sr += r;
}
return this + sr;
}
return this;
};
// Returns a copy of str with all characters in the intersection of  
its

arguments deleted.
// Uses the same rules for building the set of characters as
String.count
String.prototype.remove = function(str) {
var a = this.length;
if (a == 0) return ;
var s = ;
var c;
if (!str.length) return this;
var o = this._parseParams(str);
if (o == undefined) return undefined;
var p = o.compare;
var except = o.except;
while (--a -(-1)) {
c = this.charAt(a);
if ((p.indexOf(c) == -1) != 

[Flashcoders] tweening multiple properties simultaneously

2006-08-01 Thread Matthew Ganz
hi. 

i'm using the tween class to move a map movie clip's x and y properties. so 
whichever state the user clicks on my US map movieClip, it gets centered on the 
stage.  it works great like this:

public function expand(activeState:MovieClip)
 {
  var nX:Number = (Stage.width/2) - activeState._xmouse;
  var nY:Number = (Stage.height/2) - activeState._ymouse;
  
  // move it to the center of the stage. 
  new Tween( activeState, _x, Strong.easeOut, activeState._x, nX, 2, true );
  new Tween( activeState, _y, Strong.easeOut, activeState._y, nY, 2, true );
 }

the problem comes when i introduce two new tweens to scale the map as well. the 
result is that the x and y don't appear to move but the scale tween does work. 

 public function expand(activeState:MovieClip)
 {
  var nX:Number = (Stage.width/2) - activeState._xmouse;
  var nY:Number = (Stage.height/2) - activeState._ymouse;
  
  // move it to the center of the stage. 
  new Tween( activeState, _x, Strong.easeOut, activeState._x, nX, 2, true );
  new Tween( activeState, _y, Strong.easeOut, activeState._y, nY, 2, true );
  
  // zoom into the map
  new Tween( activeState, _xscale, Regular.easeOut, activeState._xscale, 500, 
2, true );
  new Tween( activeState, _yscale, Regular.easeOut, activeState._yscale, 500, 
2, true );
 }

are there problems tweening multiple properties at once? has anyone experienced 
this before?

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

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


Re: [Flashcoders] tweening multiple properties simultaneously

2006-08-01 Thread Rich Rodecker

there is a class out there called TweenExtended...it works exaclty the same
way as the Tween class, excpet you pass in arrays for the properties you
want to tween, and their corresponding starts/finish values.

http://www.sqcircle.com/downloads/




On 8/1/06, Matthew Ganz [EMAIL PROTECTED] wrote:


hi.

i'm using the tween class to move a map movie clip's x and y properties.
so whichever state the user clicks on my US map movieClip, it gets centered
on the stage.  it works great like this:

public function expand(activeState:MovieClip)
{
  var nX:Number = (Stage.width/2) - activeState._xmouse;
  var nY:Number = (Stage.height/2) - activeState._ymouse;

  // move it to the center of the stage.
  new Tween( activeState, _x, Strong.easeOut, activeState._x, nX, 2,
true );
  new Tween( activeState, _y, Strong.easeOut, activeState._y, nY, 2,
true );
}

the problem comes when i introduce two new tweens to scale the map as
well. the result is that the x and y don't appear to move but the scale
tween does work.

public function expand(activeState:MovieClip)
{
  var nX:Number = (Stage.width/2) - activeState._xmouse;
  var nY:Number = (Stage.height/2) - activeState._ymouse;

  // move it to the center of the stage.
  new Tween( activeState, _x, Strong.easeOut, activeState._x, nX, 2,
true );
  new Tween( activeState, _y, Strong.easeOut, activeState._y, nY, 2,
true );

  // zoom into the map
  new Tween( activeState, _xscale, Regular.easeOut, activeState._xscale,
500, 2, true );
  new Tween( activeState, _yscale, Regular.easeOut, activeState._yscale,
500, 2, true );
}

are there problems tweening multiple properties at once? has anyone
experienced this before?

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

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


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

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


Re: [Flashcoders] tweening multiple properties simultaneously

2006-08-01 Thread MetaArt
In my experience, just two simultaneous tween actions don't give any
problem...
however, try to scale first, and then move...


* Enrico Tomaselli
* web designer
[EMAIL PROTECTED]
http://www.metatad.it
* Skype: MetaArt
RSS: http://www.metatad.it/mnfeeder.php
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] How to make changes to a parent class

2006-08-01 Thread Tim
Hi

When dealing with a class (Class A) that is extended by a number of other
classes (Child 1, Child2...), each of which has their own non-inherited
properties and methods, what is the general consensus on the best way to add
a parameter to the constructor of the parent class?

The problem I'm currently facing is that if I extend Class A and modify the
constructor to accept an extra argument (Class A-ext), then Child 1 needs to
extend Class A-ext so it can pass the new argument through in its super()
call. But then I need to duplicate all non-inherited properties and methods
of Child 1 into the newly created extended version of Child 1.

So it seems to me that I either edit the original classes directly, which
makes them potentially incompatible with the same codebase deployed on other
projects, or I duplicate them and have two sets of almost identical code to
maintain.

Anyone got any suggestions for best practice when it comes to this sort of
thing?

Thanks
Tim


--
Tim Stickland
Include Digital | Director
2nd Floor, 145-157 St. John Street, London EC1V 4PY

tel: +44 (0) 20 7526  4611
web: http://www.include-digital.com
blog: http://blog.include-digital.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] tweening multiple properties simultaneously

2006-08-01 Thread Cédric Néhémie
Hi Matthew,

There is also MultiTween classes in the pixlib framework on OSFlash :
http://osflash.org/pixlib

Hope that can help you

Cédric

Rich Rodecker wrote:
 there is a class out there called TweenExtended...it works exaclty the
 same
 way as the Tween class, excpet you pass in arrays for the properties you
 want to tween, and their corresponding starts/finish values.

 http://www.sqcircle.com/downloads/




 On 8/1/06, Matthew Ganz [EMAIL PROTECTED] wrote:

 hi.

 i'm using the tween class to move a map movie clip's x and y properties.
 so whichever state the user clicks on my US map movieClip, it gets
 centered
 on the stage.  it works great like this:

 public function expand(activeState:MovieClip)
 {
   var nX:Number = (Stage.width/2) - activeState._xmouse;
   var nY:Number = (Stage.height/2) - activeState._ymouse;

   // move it to the center of the stage.
   new Tween( activeState, _x, Strong.easeOut, activeState._x, nX, 2,
 true );
   new Tween( activeState, _y, Strong.easeOut, activeState._y, nY, 2,
 true );
 }

 the problem comes when i introduce two new tweens to scale the map as
 well. the result is that the x and y don't appear to move but the scale
 tween does work.

 public function expand(activeState:MovieClip)
 {
   var nX:Number = (Stage.width/2) - activeState._xmouse;
   var nY:Number = (Stage.height/2) - activeState._ymouse;

   // move it to the center of the stage.
   new Tween( activeState, _x, Strong.easeOut, activeState._x, nX, 2,
 true );
   new Tween( activeState, _y, Strong.easeOut, activeState._y, nY, 2,
 true );

   // zoom into the map
   new Tween( activeState, _xscale, Regular.easeOut,
 activeState._xscale,
 500, 2, true );
   new Tween( activeState, _yscale, Regular.easeOut,
 activeState._yscale,
 500, 2, true );
 }

 are there problems tweening multiple properties at once? has anyone
 experienced this before?

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

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

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

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



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

2006-08-01 Thread ben farrell

Hey, I'm not really stuck on this, but I'm very curious what's going on.
I was using loadVars to pull in HTML - I tried my personal site which 
worked fine, and I tried google and amazon, and the HTML source was very 
much out of order.  I tried some other sites I made, and it seems that 
if they had some kind of server side script or includes, then large 
chunks of HTML were out of order.
After reading how other people load HTML, I stumbled across somebody 
using the XML object.  Yesit's kinda obvious, and should have done 
it that way to begin with...and seems to work great.


But this has left me wonderingwhat's the deal with loadVars?  Out of 
all the ways I was expecting it to not work for scraping HTMLthis 
never occured to me!  I would think that whatever you pull off a server 
would be in the correct order - it's not the browser (or the XML object) 
that takes chunks and puts it order right?


thanks!
ben

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

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


[Flashcoders] XPathAPI problems with wildcard searches

2006-08-01 Thread Lori Hutchek
I've been having problems with the xpathapi. I've been trying to do a
wildcard search and according to all the documentation it's supported
yet even simple straight forward search isn't working. Can anyone help? 

 

Example :

code

import mx.xpath.XPathAPI;

 

x = new XML(test thing='boo'items name='blah'item foo='bar'/item
foo='blah'//items/test);

r = XPathAPI.selectNodeList(x,/*/item);

 

for (var i in r) {

trace(r[i]);

} 

/code

 

Thanks in advance,

Lori-

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

2006-08-01 Thread Jessica Hensley
I do know about the 40K limit and I do believe that is part of the
problem, when I am able to get things to work properly at all. The gist
of my project is that I have an HTML page that loads two flash files,
the first file loads a series of secondary movieclips and when each one
of those loads, the localconnection sends a cookie to the second flash
file to go to a certain frame. The first file includes a series of two
arrays with 6 items each (one array for the movie clips and one array
for the frames for the second movie). Once it runs through the array, it
loops again.

The problem I'm running into is that in the testing environment,
everything loads properly at the right time, but when I go live it only
works on Firefox or Explorer on PC properly and doesn't work on Mac. The
frames in the second movie are loading out of sync on the Mac. I've
rewritten the code a couple of times to try to fix for one browser or
another and I inevitably lose the one it worked on originally. However,
I've never seem to had any luck getting it to work on the Mac browsers.
I'm not an expert AS programmer by any means, so I realize that it could
be something I've written improperly. However the fact that I have had
it functioning on certain browsers leads me to believe that it may be a
browser/system issue as well.

Here's the primary part of the code in the first movie that involves the
localconnection:

var frames:Array = new Array(2,62,122,182,242,302);
var clips:Array = new Array(images/bars/bar1.swf,
images/bars/bar2.swf, images/bars/bar3.swf, images/bars/bar4.swf,
images/bars/bar1.swf, images/bars/bar2.swf);

loadNextImage = function () {

onBottom.loadMovie(clips[imageCount=(imageCount+1)%clips.length]);
//send the next frame number
function sendFrameNumber(bnum){
outgoing_lc = new LocalConnection();
outgoing_lc.send(lc_test, testme, bnum);
delete outgoing_lc;
}
var bnum =
(frames[frameCount=(frameCount+1)%frames.length]);
sendFrameNumber(bnum);
trace(bnum);
//fade the images
onEnterFrame = function() {
if (onBottom._width0) {
crossFade(onTop,onBottom);
onEnterFrame = null;
}
}
}

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of John
Grden
Sent: Tuesday, August 01, 2006 11:01 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] LocalConnection, Trying Again


Hey Jessica, I don't know if I caught your first email - what's the
problem specifically?

Do you know about the 40k limit?  if so, what are you doing to
accomodate that?

JPG

On 8/1/06, Jessica Hensley [EMAIL PROTECTED] wrote:

 I posted a fairly involved question last week about a problem I'm 
 having with a localconnection working the same across different 
 browsers and Mac versus PC. I haven't had much luck finding an answer,

 so I thought I would try one last time to just see if anyone has 
 experienced anything like this and could provide any insight. Any 
 thoughts are greatly appreciated! Thanks! 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive: 
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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




-- 
John Grden
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] dynamic shared libraries

2006-08-01 Thread jordan robinson
Is there any way to set the path of the shared library dynamically  
through AS? Hard coding paths is just plain evil, and i'm hoping to  
stay away from it. I am building this in flash 8 but exporting for  
flash 7 as 2.0 for reference. ANy help would be great, thanks in  
advance.


Jordan Robinson




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Help...cant unload the xml menu...!!

2006-08-01 Thread Jose Maria Barros

Hi Arul,
Well...i tested..and the problem still there...maybe its because the xml
object is not in the root?its inside a movieclip, then inside other
movieclip.

I case you dont understand what i mean is the code that ive put here...is in
a frame that is not in the root, but inside a movieclip(that is in the root)
and in other movieclip...maybe is that the problem?

thanks.

On 8/1/06, Arul Prasad M L [EMAIL PROTECTED] wrote:


might be a problem with the URL.
1. Make sure that the ../xml folder is in the WWW folder of ur server, not
above it.

or

2. Try doing this:

var urlString:String = _root._url;
urlString = urlString.substr(0,urlString.lastIndexOf(/));
urlString = urlString.substr(0,urlString.lastIndexOf(/) + 1);
urlString = urlString.concat(xml/menu.xml)
menuInfoXML = urlString;

If it works, you may want to refactor all the statements above and make
the
code optimal.

~Arul Prasad.

I've just elaborated in soo many statements, just in case you dont
understand.

On 8/1/06, Jose Maria Barros [EMAIL PROTECTED] wrote:

 can anyone help me?

 On 7/31/06, Jose Maria Barros [EMAIL PROTECTED] wrote:
 
  i singed too soon...when i test locally everything works great...but
 when
  i try it in internet..it doesnt..he doestn load the xml file
 
  why...?
 
  The code is the same...but i did alter the url..like you said..:
 
  //EDIT XML PATH
  menuInfoXML = ./xml/menu.xml;
  // DO NOT EDIT BELOW..
 
  System.useCodepage = true;
 
  import mx.xpath.XPathAPI;
  var infoHolder:XML = new XML();
  infoHolder.load(menuInfoXML);
  infoHolder.ignoreWhite = true;
  var titlePath:String = /root;
  //main menu array.
  var mainMenus:Array;
  //sub menu array.
  var subMenus:Array;
 
  infoHolder.onLoad = function(ok) {
  if (ok) {
  mainMenus = mx.xpath.XPathAPI.selectNodeList(
 infoHolder.firstChild,
  titlePath+/menu);
  createTreeMenu();
  }
  };
 
 
  MovieClip.prototype.getPos = function(target:Number) {
  this.onEnterFrame = function() {
  this._y -= (this._y-target)/6;
  if (Math.abs(this._y-target)0.3) {
  delete this.onEnterFrame;
  _root.newsMC.showNews.appear();
  }
  };
  };
 
 
  function createTreeMenu():Void {
  for (i=0; imainMenus.length; i++) {
  newBut = _root.conteudos_mc.portfolio_mc.attachMovie(but,
  but+i, 999+i);
 
  newBut.arrow._alpha = 0;
  newBut.shine._alpha = 0;
  newBut._x = 18;
  newBut._y = 93+(newBut._height+5)*i;
 
  newBut.txt.text = mainMenus[i].attributes.txt;
  newBut.link2 = mainMenus[i].attributes.url;
  newBut.submenuCnt = mainMenus[i].childNodes.length;
  newBut.y = newBut._y;
  newBut.onRollOver = function() {
  _root.conteudos_mc.portfolio_mc.tween(this, 16, 18);
 
  this.arrow.appear();
  this.shine.appear();
  var textCol = new Color(this.txt);
  textCol.setRGB(0xff);
 
  };
  newBut.onRollOut = function() {
  _root.conteudos_mc.portfolio_mc.tween(this, 18, 16);
 
  this.arrow.disappear();
  this.shine.disappear();
  var textCol = new Color(this.txt);
  textCol.setRGB(0x6F6A63);
  };
  newBut.onRelease = function() {
  if (this.submenuCnt0) {
  var butNum:Number = new Number(this._name.substr(3,
1));
  this.createSubMenu(butNum);
  for (i=0; imainMenus.length; i++) {
  if (ibutNum+1) {
 
 

_root.conteudos_mc.portfolio_mc[but+i].getPos(_root.conteudos_mc.portfolio_mc[but+i].y);
 
  } else {
 
 

_root.conteudos_mc.portfolio_mc[but+i].getPos(_root.conteudos_mc.portfolio_mc[but+i].y+this.submenuCnt*22);
 
  }
  }
  }
  else {
  _root.conteudos_mc.portfolio_mc.clearSubMenus();
  for (i=0; imainMenus.length; i++) {
 
 

_root.conteudos_mc.portfolio_mc[but+i].getPos(_root.conteudos_mc.portfolio_mc[but+i].y);
 
  }
  //getURL(this.link);
 
  }
  };
  }
  }
 
 
  MovieClip.prototype.createSubMenu =
 function(buttonNumber:Number):Void  {
  clearSubMenus();
  subMenus = mx.xpath.XPathAPI.selectNodeList
(mainMenus[buttonNumber],
  /menu/submenu);
  var butNum:Number = new Number(this._name.substr(3, 1));
  for (i=0; isubMenus.length; i++) {
  subBut =
_root.conteudos_mc.portfolio_mc.attachMovie(submenu,
  subMenu+i, Math.random()*99);
 
  subBut._alpha = 0;
  subBut._x -= i;
  subAppear(subBut, (i+3), 30);
 
  subBut._y = this.y+this._height+(subBut._height+5)*i;
  subBut.txt.text = subMenus[i].attributes.txt;
  subBut.link2 = subMenus[i].attributes.url;
  subBut.but.onRollOver = function(){
  var textSubCol = new 

RE: [Flashcoders] String Empowerment

2006-08-01 Thread Steven Sacks | BLITZ
Right you are!  Thanks!

BLITZ | Steven Sacks - 310-551-0200 x209

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Heerko van der Kooij
 Sent: Tuesday, August 01, 2006 9:12 AM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] String Empowerment
 
 Hi Steven,
 
 Maybe i'm saying something stupid here, but would this be a prettier
 way to do the capitalize?
 
 String.prototype.capitalize = function() {
   return this.charAt(0).toUpperCase() +
this.substr(1).toLowerCase();
 }

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 9 ready for kiosk use?

2006-08-01 Thread Steven Sacks | BLITZ
I have no idea what memory leak issues you're talking about with the
Flash player.  I've created a few applications that were designed to run
for days and even weeks at a time without a restart and I was able to
eliminate all memory leak and memory waste issues with Flash 6, 7 and 8
with careful coding and research to understand about how Flash memory is
managed.

It's a poor craftsman who blames his tools.  - Ancient proverb


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] ExternalInterface, embed tag and IE

2006-08-01 Thread Vishal Kapur

I have tried giving the embed tag an id attribute as well, with no
change.  I guess no one has tried this before?  It seems possible that
this is a bug/enhancement for the Flash team.

In terms of why I can't use an object tag, I should have clarified
that I do not have control over the HTML source.  Not sure why they
third-party that did develop the HTML chose to use embed, but the
guess is that it's a little bit less code to get cross-browser
compatibility (instead of using object with an embed sub-tag).

Thanks,
Vishal


On 8/1/06, Geoff Stearns [EMAIL PROTECTED] wrote:

the short answer is you probably just need to give the embed tag an
Id attribute.

the long answer is: why can't you use an object tag? that makes
absolutely no sense at all.

even more: you should be using a Javascript solution like SWFObject
anyway, since that will skip the 'click to activate' stuff and handle
your plugin detection and all that for you.


On Jul 31, 2006, at 9:57 PM, Vishal Kapur wrote:

 Hello,

 I am trying to use ExternalInterface on a flash movie loaded via an
 embed tag in Internet Explorer.  (For specific reasons I do not want
 to use the object tag and I can't use firefox).  I have set
 allowScriptAccess=always and I have specified the 'name' attribute.
 However, when I try to call an AS function from javascript on this
 object I get an error like Object does not support this property or
 method.

 My embed tag looks something like:

 embed name=testMovie
   type=application/x-shockwave-flash
   src=testMovie.swf
   allowScriptAccess=always
 /embed

 The AS function I want to call is exposed via
 ExternalInterface.addCallback().  Also I do not have the issue if I
 use an object tag to load the swf.

 Has anyone faced this issue before?  Any thoughts/pointers would be
 appreciated.

 Thanks,
 Vishal
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] Printing a swf from inside a text field

2006-08-01 Thread Paul Venton
Hello

 

I'm building a Flash 8 application that parses XML files containing HTML and
a separate CSS file to build its various layouts using homebrew components.
So far I'm having a wail of time as almost everything has been working as
expected.

 

One of this project's requirements is that pop-up windows can contain
graphics and/or text so for simplicity I've used a text field to dynamically
load in whatever is relevant to that pop-up.  Some of those graphics are
embedded SWF files; they have their own control for printing and that's
where my problem begins.

 

The printable SWF libraries contain linkage ids for the print target clip
along with links a shared print button clip. The print button, when
clicked, creates the page layout with headers and footers and attaches the
print target, scaling and rotating as needed to fit properly on a piece of
paper.  It all works fine when the SWF is not embedded in a text field,
however when embedded, the printed page is clipped to the boundaries of the
text field that the SWF is in.

 

I've tried creating the page using a container elsewhere (i.e. at various
_parent's up to get above the text field object) but if I do that then
nothing shows at all; yet I know the print page is being created as I have
access to all of the objects in it.

 

I am aware that the text field object has problems, such as showing inline
images, and have tried things like adding a few dozen line breaks in the
HTML but to no avail.

 

The only bit of luck I have had is to set the parent or the embedded SWF
(the text field) mask to null.  The complete page prints out perfectly.
However, I cannot reapply the text field's mask as I don't know what it's
called.  Unfortunately there is no getMask() method.

 

So, does anyone know a workaround or know what the name of the object the
text field uses to mask its contents?

 

Please help as I'm rapidly running out of hair to pull!  I've searched the
archives and haven't been able to spot anything related to this.  (I have
local copy of every Flash Coder email going back to early 2002 so that
should be early enough!)

 

Thanks in advance

 

Paul

 

 

Information in this message is confidential and may be legally privileged.
It is intended solely for the person to whom it is addressed. If you are not
the intended recipient, please notify the sender, and please delete the
message from your system immediately. The contents of an attachment to this
message may contain software viruses which could damage your computer
system. Whilst every reasonable precaution to minimise this risk has been
taken, we cannot accept liability for any damage which you sustain as a
result of software viruses. You should carry out your own virus checks
before opening any attachment.

 

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

2006-08-01 Thread ryanm

r = XPathAPI.selectNodeList(x,/*/item);

   The problem is that / and * are both node operators and math operators, 
so your statement is ambiguous. The obvious answer, based on your example 
XML, is to use ./items/item, but I don't know if your real XML is more 
complex or not. If it is, you just need to make your select statement more 
explicit.


ryanm 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] CPU Performance Profiling? (

2006-08-01 Thread Vibol Hou
I've got a flash video application that performs well on Intel-based Mac 
OS X, but performs poorly on G4 Mac OS X (PC performance is fine across 
many processor speeds). The 'poor' performance is characterized by 
sluggish video playback and sluggish interactivity, sluggish scrollpane 
scrolling, sluggish response to clicks; everything just seems sluggish 
on the G4.


Is there any way to profile what portions of the flash application might 
be generating excessive CPU consumption? Has anyone experienced major 
performance discrepancies between Intel/G4 Mac?


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

2006-08-01 Thread Lori Hutchek
The reason I am trying to do the wildcard search is because I have nodes
of the same name at different levels and I need them all. So giving a
specific path wouldn't give me all of the nodes I need. 

Here's an expert... 
xml
node nodid=cue14
/node

node nodid=cue15 
closecaptioning![CDATA[]]/closecaptioning
actions
action type=evt_post
data type=reply order=1 videofile=debate1.flv
length=55666
slides
node nodid=cue1 order=13 index=true
slidefile= printfile=slide1.jpg thumbfile=slide1.jpg type=slide


closecaptioning![CDATA[]]/closecaptioning
actions /
/node
/slides
 /action
/actions
/node
/xml

Yes * and / are mathematical operators but in the context of a xpath
search they are used as you expect if you were doing a regex search...
which also supports the * and /

What I am attempting to do is get all the node nodes by doing
r = XPathAPI.selectNodeList(myXML,/*/node);


If anyone else has experienced the same trouble and know a way around it
or know what I'm doing wrong that would be great!

Thanks!
Lori-


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of ryanm
Sent: Tuesday, August 01, 2006 2:42 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] XPathAPI problems with wildcard searches

 r = XPathAPI.selectNodeList(x,/*/item);

The problem is that / and * are both node operators and math
operators, 
so your statement is ambiguous. The obvious answer, based on your
example 
XML, is to use ./items/item, but I don't know if your real XML is more

complex or not. If it is, you just need to make your select statement
more 
explicit.

ryanm 

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

2006-08-01 Thread Dave Watts
 x = new XML(test thing='boo'items name='blah'item 
 foo='bar'/item foo='blah'//items/test);
 
 r = XPathAPI.selectNodeList(x,/*/item);

If I understand correctly, that search would not find anything, because item
is not a child of test, but rather of items. If I'm reading your XPath
expression correctly, you would find /items/item, but not /test/items/item.
Valid alternative expressions would be //item, /test/*/item, /*/*/item.

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

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

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

2006-08-01 Thread ryanm

The reason I am trying to do the wildcard search is because I have nodes
of the same name at different levels and I need them all. So giving a
specific path wouldn't give me all of the nodes I need.


   That's not what your select says, the * wildcard only selectes children.

/*/item = select all item nodes which are one level below the root 
(grandchildren of the context node).
//item = select all item nodes on any level of the document (all 
descendants of the context node).



Yes * and / are mathematical operators but in the context of a xpath
search they are used as you expect if you were doing a regex search...
which also supports the * and /

   If you read the W3C spec, they specifically mention this ambiguity and 
the problems that can arise. It is a known issue with wildcards in XPath, 
and you should not expect it to behave the same way as any particular 
implementation of RegEx.



What I am attempting to do is get all the node nodes by doing
r = XPathAPI.selectNodeList(myXML,/*/node);


   What you want is:

r = XPathAPI.selectNodeList(myXML,//node);

ryanm

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

2006-08-01 Thread Merrill, Jason
Let me add, this only happens on my machine, not my co-workers - my
co-workers have the identical push of SP2 for the OS and IE, and the
same internet browser settings.  As well as the same list of trusted
sites. Any ideas anyone?

Jason Merrill
Bank of America 
Learning  Organization Effectiveness - Technology Solutions 
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Merrill, Jason
Sent: Tuesday, August 01, 2006 11:27 AM
To: Flashcoders mailing list
Subject: [Flashcoders] Weird getURL behavior

I'm going crazy with this. Hopefully, I'm just missing something
stupid.


Weird getURL behavior in my Flash 8 player.  Is there any reason why a
Flash file here:

http://loerepository/evaluationGallery/myFlashFile.swf

Would not be able to link to this:

http://loerepository/evaluationGallery/EARS_L3_Interview.doc



Same domain, same folder!  Ah, this is so freaking aggravating.  It
was
working fine just a week ago.  We did recently move the flash file and
the linked-to doc to a new server... is there something about a URL
that
doesn't have www.mypage.com in it?  I didn't think so... so anyway I
am
just using:

getURL(EARS_L3_Interview.doc, _blank);

or, I also tried the absolute path:

getURL(http://loerepository/evaluationGallery/EARS_L3_Interview.doc;,
_blank);

(note, don't try that paths above, it's on an intranet site and will
fail for you)

it does pop up a new window, but the window says,

Action canceled
Internet Explorer was unable to link to the Web page you requested.
The
page might be temporarily unavailable.

HOWEVER, the file IS there and available:  if I put the path to the
browser address bar directly, it works fine!!!  What's up with that?
Why would getURL only fail in Flash?  My worst fear is there is some
security thing on the server the admins changed which is blocking my
access from Flash.  Ideas?


Jason Merrill
Bank of America
Learning  Organization Effectiveness - Technology Solutions






___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Strange Radio Button Behavior Problem

2006-08-01 Thread Randal
I have come across what looks like a bug to me in the behavior of the 
radiobutton component in Flash 8 Pro.

I have posted a movie at:

http://huntingdesign.com/radioproblem/radioproblem.html

And the source FLA at:

http://huntingdesign.com/radioproblem/radioproblem.fla


Here is the code applied to the movieclip that contains the radio buttons:

onClipEvent (mouseDown) {
  if(hitTest(_root._xmouse, _root._ymouse, false)) {
for (item in this) {
  rButton = this[item];
  if (rButton.getState()) {
trace (You selected +rButton.getLabel());
_root.dyntext.text = rButton.getLabel();

  }
}
  }
}

This is taken pretty much straight from the Macromedia docs on radio buttons. 
The behavior I see is that with one click nothing happens. With another click 
the selected button get darkened, but no label is reported to the dynamic text 
area or to the trace. Then with a click on the other radio button the 
PREVIOUSLY SELECTED button now is reported. After that point always the 
previously selected button is always reported, so if you click on a button 
multiple times it reports the other button first then itself. 

All I am trying to do here is create a simple interface to toggle between two 
states in a movie, which I thought would be a logical use for radio buttons -- 
but this is really frustrating. 

-- Randal
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] security issues - offline application

2006-08-01 Thread Céline Nguyen
I've been working on a game for offline use, and it's been working fine for the 
past few months. Now the client wants that game to include an activation 
process indicating the number of times the user can play the game and 
retrieving 1 credit for each game played.

Credits should be downloaded from the internet and then the user can play 
offline as long as he has enough credit. If he has no more, he has to connect 
to the internet again and download / buy more.

So my question is, what's the best way of programming this activation process 
with the maximum of security.
For example what if after downloading credits the user makes an image disk of 
his computer, and reinstall it whenever the credits are empty ?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Strange Radio Button Behavior Problem

2006-08-01 Thread phaedrus
The radio button is changing state after the clip event fires.  Because of
this:

When you first click High, nothing has been set yet.  After the event is
done, the High radio button gets set on.

The next time you check, the High radio button is on when the clip event
is fired and this is reported, regardless of which you clicked on.  After
the clip event is done firing, the new state gets set.

And so on.  

If you're not committed to adding the script to the container movie clip,
you can try the following (based on the docs here:
http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/js/html/wwhelp.ht
m?href=Part4_ASLR2.html )



Name the movie clip containing your buttons (eg: mcSpeedbuttons).
Alternatively, this clip isn't necessary and the buttons can be put on the
main timeline w/o a container.

I changed the data parameter on the buttons from speed to High and
Low, respectively.

I named the empty top layer in your flash app actions and added the
following actionscript to the first frame of the timeline in that layer:

speedButtonListener = new Object();
speedButtonListener.click = function (evt) {
trace(You selected  + evt.target.selection.data);
dyntext.text = evt.target.selection.data;
}

mcSpeedbuttons.buttonGroup.addEventListener(click,speedButtonListener);

Testing the app, it seems to work like this.

- phaedrus

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Randal
Sent: Tuesday, August 01, 2006 4:30 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Strange Radio Button Behavior Problem

I have come across what looks like a bug to me in the behavior of the
radiobutton component in Flash 8 Pro.

I have posted a movie at:

http://huntingdesign.com/radioproblem/radioproblem.html

And the source FLA at:

http://huntingdesign.com/radioproblem/radioproblem.fla


Here is the code applied to the movieclip that contains the radio buttons:

onClipEvent (mouseDown) {
  if(hitTest(_root._xmouse, _root._ymouse, false)) {
for (item in this) {
  rButton = this[item];
  if (rButton.getState()) {
trace (You selected +rButton.getLabel());
_root.dyntext.text = rButton.getLabel();

  }
}
  }
}

This is taken pretty much straight from the Macromedia docs on radio
buttons. The behavior I see is that with one click nothing happens. With
another click the selected button get darkened, but no label is reported to
the dynamic text area or to the trace. Then with a click on the other radio
button the PREVIOUSLY SELECTED button now is reported. After that point
always the previously selected button is always reported, so if you click on
a button multiple times it reports the other button first then itself. 

All I am trying to do here is create a simple interface to toggle between
two states in a movie, which I thought would be a logical use for radio
buttons -- but this is really frustrating. 


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

2006-08-01 Thread Steven Sacks | BLITZ
 Don't use the toLowerCase()
 Because when I write my name like: Bernard Visscher I don't want the
 output to be Bernard visscher with the lowercase V.

That's what capitalize() does.  For what you're wanting you should use
toTitleCase().




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] CPU Performance Profiling? (

2006-08-01 Thread Steven Sacks | BLITZ
You may be new to Flash development, but it's no secret that Flash
performance on the PowerPC Macs is, to understate it, lacking.

The only known solution is to take a deep breath and accept the reality
that there is nothing you can do about the sluggish performance on those
machines, and that, in most cases, those users account for less than 5%
of your audience.

You could stomp your feet and shout, you could get angry and say it's
unacceptable, you could go home and beat your dog over it, you could
throw rocks through Adobe's windows.  But, you're not going to because
you've achieved enlightenment and the ability to let that which does not
matter truly slide.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] String Empowerment

2006-08-01 Thread Bernard Visscher
Sorry.. my mistake... 

 -Oorspronkelijk bericht-
 Van: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] Namens 
 Steven Sacks | BLITZ
 Verzonden: woensdag 2 augustus 2006 0:16
 Aan: Flashcoders mailing list
 Onderwerp: RE: [Flashcoders] String Empowerment
 
  Don't use the toLowerCase()
  Because when I write my name like: Bernard Visscher I 
 don't want the 
  output to be Bernard visscher with the lowercase V.
 
 That's what capitalize() does.  For what you're wanting you 
 should use toTitleCase().
 
 
 
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] JSFL: Can I set the swf publish path?

2006-08-01 Thread Steven Sacks | BLITZ
Hello,

I'm trying to figure out a way to set the Publish path of the SWF of the
current document using JSFL.  Does anyone know how to accomplish this?

Thanks!

---
Steven Sacks
Senior Flash Developer

[EMAIL PROTECTED]
Ph:  310-551-0200 x209
Fax: 310-551-0022

BLITZ | 405 S Beverly Drive, 3rd Floor - Beverly Hills, CA 90212
www.blitzagency.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] CPU Performance Profiling? (

2006-08-01 Thread Shane Korin

First off hello everyone, this is my first post to flashcoders :)

And while we're on the topic, does anyone know of an application or anything
for profiling CPU usage in Flash? I'd just like to be able to see which
parts of my flash movies are using the most CPU and then be able to focus on
optimising certain code


-k.



On 8/2/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote:


You may be new to Flash development, but it's no secret that Flash
performance on the PowerPC Macs is, to understate it, lacking.

The only known solution is to take a deep breath and accept the reality
that there is nothing you can do about the sluggish performance on those
machines, and that, in most cases, those users account for less than 5%
of your audience.

You could stomp your feet and shout, you could get angry and say it's
unacceptable, you could go home and beat your dog over it, you could
throw rocks through Adobe's windows.  But, you're not going to because
you've achieved enlightenment and the ability to let that which does not
matter truly slide.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] security issues - offline application

2006-08-01 Thread Céline Nguyen

Tim, thank you for your answer.
Yes this is an issue, the client wants to run the game mostly offline. Go 
online only to download more credits (ex.100 more in one shot and download 
all of them and run them one by one locally).


I was thinking of repackaging the swf with FlashStudio 
(http://www.multidmedia.com) so it can be distributed as an exe and use a 
shared object to store the credits locally. This solution has been suggested 
in a previous posting : November 09, 2004


I know there's no 100% secure solution, but I am wondering if it's still the 
most secure solution to suggest to this client.


- Original Message - 
From: Tim [EMAIL PROTECTED]

To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com
Sent: Tuesday, August 01, 2006 6:32 PM
Subject: RE: [Flashcoders] security issues - offline application



Credits should be downloaded from the internet and then the user can play
offline as long as he has enough credit. If he has no more, he has to
connect to the internet again and download / buy more.

So my question is, what's the best way of programming this activation
process with the maximum of security.
For example what if after downloading credits the user makes an image 
disk

of his computer, and reinstall it whenever the credits are empty ?


You could store the credits server side rather than downloading them. 
Each
time a user played the game a credit can be deducted from the user's 
online
account via a script call. That way even if they wiped their hard drive 
and
started again you have a record of how many credits they have remaining 
(but

it would require internet access each time the game was played - I don't
know if that's an issue).

Whatever solution you come up with would be open to abuse though given the
nature of Flash. For example, with the suggestion above a user could
decompile the game, hard-coding the expected response from the server and
publish it again to get unlimited credits (obfuscating your code would 
make

the process more difficult but not impossible).

Tim

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] JSFL: Can I set the swf publish path?

2006-08-01 Thread Steven Sacks | BLITZ
Just to clarify, I don't want to exportSWF(), I want to change the
publish path of the SWF file and then save the FLA with that set path.

This is so I can create template FLAs and have them all publish
themselves to 

../deploy/FILENAME

I can import and export publish profiles, but I want to prepend the
../deploy/ to each FLA's swf publish path using JSFL.

Any ideas?

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] JSFL: Can I set the swf publish path?

2006-08-01 Thread eric dolecki

I have a build script used to produce SWFs from FLAs in one location, and
deposit the SWFs in another location - which I believe is what you want? It
indeed uses JSFL and its a dream. If this is what you need, I can dig it up.

- e.dolecki

On 8/1/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote:


Just to clarify, I don't want to exportSWF(), I want to change the
publish path of the SWF file and then save the FLA with that set path.

This is so I can create template FLAs and have them all publish
themselves to

../deploy/FILENAME

I can import and export publish profiles, but I want to prepend the
../deploy/ to each FLA's swf publish path using JSFL.

Any ideas?

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

2006-08-01 Thread Mike Pearce
First time I've noticed this..

 

Where are the disabled state skins for UIScrollbar?

Seems crazy that as soon as the scrollbar is disabled the buttons return to
halo?

 

Anyone noticed this or am I missing something?

 

Ie: you can set  - upArrowUpName, upArrowOverName, but not the disabled
state.

 

.wtf?

 

Mike Pearce

Nectarine  +61 3 9687 7820

 http://www.nectarine.com.au/ www.nectarine.com.au

 

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

2006-08-01 Thread Ramon Miguel M. Tayag

Hi everyone,

I want to use Screenweaver to create a desktop application.  Just like
the other SWF2EXE programs, you can arbitrarily call an object, like,
swFile.function to access the commands.

The problems comes in when I put these commands in classes and I
compile the classes.  How do I tell Flash to ignore these errors and
continue compiling like those weren't there?

The workaround would be ugly (pointing to the root that contains the
functions), and I'd like to avoid that.

Thanks
--
Ramon Miguel M. Tayag
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] JSFL: Can I set the swf publish path?

2006-08-01 Thread eric dolecki

thats a whole lotta work, but glad that works for you.

On 8/1/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote:


I've solved it.

I export the publish profile.
I read that file in and swap out the values of the nodes.
I save that string to the drive (overwriting the old one).
I import the new publish profile file.
I delete the file from the drive.
I save the FLA, publish it, and close it.
I reopen my template file.

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

2006-08-01 Thread jcarlos

hi All,

I´m having problems using Delegate  with MTASC

this works fine Flash compiler

 if (_actionRelease)
 {
  container_mc.onRelease = Delegate.create (this, handleRelease);
 }

but doesn´t work with MTASC

Any help?  Directions ?

Thanks in advance

João Carlos 


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

2006-08-01 Thread John Grden

what's the error you get? or does it just simply not work?

JPG

On 8/1/06, jcarlos [EMAIL PROTECTED] wrote:


hi All,

I´m having problems using Delegate  with MTASC

this works fine Flash compiler

  if (_actionRelease)
  {
   container_mc.onRelease = Delegate.create (this, handleRelease);
  }

but doesn´t work with MTASC

Any help?  Directions ?

Thanks in advance

João Carlos

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

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





--
John Grden
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] CPU Performance Profiling? (

2006-08-01 Thread Vibol Hou
Thanks for your response Steven. I am a relatively new to the flash 
scene, but AS is easy enough to learn (similar enough to JS) that I've 
been able to develop fairly complex applications to date. Of course, the 
nuances of the platform escape me with my lack of overall experience and 
that has proven to be the worst part of learning Flash.


I found the MM blog entry in which many have complained about a very 
slow Flash experience on Macs. It is interesting that I don't see this 
on the newer Core Duo macs, but I presume that's because of the 
architecture pushing more calculatings.


On the issue of sluggishness in PP macs, I found that my application 
performs significantly better if it's the only element on the screen 
(i.e. embedded in a popup window) as opposed to be embedded in the page 
with static content. For most content, this is unacceptable, but 
fortunately the video player application can easily be opened in a fresh 
window.


Steven Sacks | BLITZ wrote:

You may be new to Flash development, but it's no secret that Flash
performance on the PowerPC Macs is, to understate it, lacking.

The only known solution is to take a deep breath and accept the reality
that there is nothing you can do about the sluggish performance on those
machines, and that, in most cases, those users account for less than 5%
of your audience.

You could stomp your feet and shout, you could get angry and say it's
unacceptable, you could go home and beat your dog over it, you could
throw rocks through Adobe's windows.  But, you're not going to because
you've achieved enlightenment and the ability to let that which does not
matter truly slide.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] UIScrollbar disabled state?

2006-08-01 Thread Vibol Hou
You can open up the Scrollbar.as file and find the list of skin 
variables in there.


C:\Program Files\Macromedia\Flash 8\en\First 
Run\Classes\mx\controls\scrollClasses


if you're on a PC

-V

Mike Pearce wrote:

First time I've noticed this..

 


Where are the disabled state skins for UIScrollbar?

Seems crazy that as soon as the scrollbar is disabled the buttons return to
halo?

 


Anyone noticed this or am I missing something?

 


Ie: you can set  - upArrowUpName, upArrowOverName, but not the disabled
state.

 


.wtf?

 


Mike Pearce

Nectarine  +61 3 9687 7820

 http://www.nectarine.com.au/ www.nectarine.com.au

 


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

2006-08-01 Thread Vibol Hou
You could add complexity to the process by encrypting the credits before 
placing them in the local store. Naturally this means the key would be 
stored in the player, but the normal user probably isn't sharp enough to 
be able to decompile and find the key, let alone figure out how to 
access the local store.


Another issue might be the local store getting wiped out accidentally 
from the user tinkering with the flash player settings.


So I suppose 'secure' is a relative term :)

-V

Céline Nguyen wrote:

Tim, thank you for your answer.
Yes this is an issue, the client wants to run the game mostly offline. 
Go online only to download more credits (ex.100 more in one shot and 
download all of them and run them one by one locally).


I was thinking of repackaging the swf with FlashStudio 
(http://www.multidmedia.com) so it can be distributed as an exe and use 
a shared object to store the credits locally. This solution has been 
suggested in a previous posting : November 09, 2004


I know there's no 100% secure solution, but I am wondering if it's still 
the most secure solution to suggest to this client.


- Original Message - From: Tim [EMAIL PROTECTED]
To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com
Sent: Tuesday, August 01, 2006 6:32 PM
Subject: RE: [Flashcoders] security issues - offline application


Credits should be downloaded from the internet and then the user can 
play

offline as long as he has enough credit. If he has no more, he has to
connect to the internet again and download / buy more.

So my question is, what's the best way of programming this activation
process with the maximum of security.
For example what if after downloading credits the user makes an image 
disk

of his computer, and reinstall it whenever the credits are empty ?


You could store the credits server side rather than downloading 
them. Each
time a user played the game a credit can be deducted from the user's 
online
account via a script call. That way even if they wiped their hard 
drive and
started again you have a record of how many credits they have 
remaining (but

it would require internet access each time the game was played - I don't
know if that's an issue).

Whatever solution you come up with would be open to abuse though given 
the

nature of Flash. For example, with the suggestion above a user could
decompile the game, hard-coding the expected response from the server and
publish it again to get unlimited credits (obfuscating your code would 
make

the process more difficult but not impossible).

Tim

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] RE: JSFL: Can I set the swf publish path?

2006-08-01 Thread Jason Van Cleave

Care to share the code? I would like to see if it works on a Mac as well as
a PC

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

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


Re: [Flashcoders] Mtasc Delegate

2006-08-01 Thread Adam Pasztory

Use this instead.  It will make you happy.
http://www.person13.com/articles/proxy/Proxy.htm

-Adam

On 8/1/06, John Grden [EMAIL PROTECTED] wrote:


what's the error you get? or does it just simply not work?

JPG

On 8/1/06, jcarlos [EMAIL PROTECTED] wrote:

 hi All,

 I´m having problems using Delegate  with MTASC

 this works fine Flash compiler

   if (_actionRelease)
   {
container_mc.onRelease = Delegate.create (this, handleRelease);
   }

 but doesn´t work with MTASC

 Any help?  Directions ?

 Thanks in advance

 João Carlos

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

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




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