[Flashcoders] Searching for AS3 Link and exemples with flash

2007-06-17 Thread Laurent CUCHET
Morning

Searching for AS3 Link and exemples with flash

Thanks

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

2007-06-11 Thread Laurent CUCHET
Hi

I got function with button
Is there a way to use this with the button and by AS ??
For exemple if the movie go to image 5 it make the btn function work

Thank you

this.cli_mc.hu_btn.onPress = function() {
cli_mc._visible = 0;
_root.mtit_txt.text = Cliniques;
_root.categ_var = CLINIQUE;
_level41.mar = cli;
_root.liste();
};

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

2007-06-11 Thread Laurent CUCHET
Hi

How can I do to find 5 caracter
in the 5 beginning caracter of var ?

Exemple :
var llat = ³6.23456²

how can I trace ³ok² if there is ³6.234² in llat var ?

if (?? == 6.234) {
trace(³ok²);
}



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

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


[Flashcoders] create a TXT from flash

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

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

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


RE: solve[Flashcoders] AS2 Datagrid + invisible row

2007-06-07 Thread Laurent CUCHET

-- Message transféré
 De : Laurent CUCHET [EMAIL PROTECTED]
 Répondre à : flashcoders@chattyfig.figleaf.com
 Date : Wed, 06 Jun 2007 13:04:07 +0200
 À : Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Conversation :  AS2 Datagrid + invisible row
 Objet : [Flashcoders]  AS2 Datagrid + invisible row
 
 Good Morning
 
 I have done a listener to fill datagrid. It works but I need to hide or make
 invisible a row How can do ??
 
 Thank you
 
 var myListener1:Object = new Object();
 myListener1.dataLoaded = function(success:Boolean, xmldata:XML) {
 if (success) {
 trace(xmldata);
 if (comStatus == loading) {
 display.removeAllColumns();
 display.columnNames = [ONE, TWO, THREE,FOUR];// just cut
FOUR : display.columnNames = [ONE, TWO, THREE];
 display.getColumnAt(0).width = 120;
 display.getColumnAt(1).width = 100;
 display.getColumnAt(2).width = 115;
 display.getColumnAt(3).width = 0;// it doesnt work how can I do
 ?
 var dat:Array = new Array();
 for (var i:Number = 0;
 ixmldata.firstChild.childNodes[3].childNodes.length; i++) {
 
 dat.push({ONE:unescape(xmldata.firstChild.childNodes[3].childNodes[i].childN
 odes[15].childNodes),
  
 TWO:unescape(xmldata.firstChild.childNodes[3].childNodes[i].childNodes[3].ch
 ildNodes),
  
 THREE:unescape(xmldata.firstChild.childNodes[3].childNodes[i].childNodes[7].
 childNodes),
  
 FOUR:unescape(xmldata.firstChild.childNodes[3].childNodes[i].childNodes[5].c
 hildNodes)
 });
 }
 display.dataProvider = dat;
 msg = Data has loaded Successfully;
 } else if (comStatus == sending) {
 msg = Data Sent Successfully. You can now reload!;
 }
 }
 };
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

-- Fin du message transféré



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

2007-06-06 Thread Laurent CUCHET
Good Morning

I have done a listener to fill datagrid. It works but I need to hide or make
invisible a row How can do ??

Thank you

var myListener1:Object = new Object();
myListener1.dataLoaded = function(success:Boolean, xmldata:XML) {
if (success) {
trace(xmldata);
if (comStatus == loading) {
display.removeAllColumns();
display.columnNames = [ONE, TWO, THREE,FOUR];
display.getColumnAt(0).width = 120;
display.getColumnAt(1).width = 100;
display.getColumnAt(2).width = 115;
display.getColumnAt(3).width = 0;// it doesnt work how can I do
?
var dat:Array = new Array();
for (var i:Number = 0;
ixmldata.firstChild.childNodes[3].childNodes.length; i++) {

dat.push({ONE:unescape(xmldata.firstChild.childNodes[3].childNodes[i].childN
odes[15].childNodes),
   
TWO:unescape(xmldata.firstChild.childNodes[3].childNodes[i].childNodes[3].ch
ildNodes),
   
THREE:unescape(xmldata.firstChild.childNodes[3].childNodes[i].childNodes[7].
childNodes),
   
FOUR:unescape(xmldata.firstChild.childNodes[3].childNodes[i].childNodes[5].c
hildNodes)
});
}
display.dataProvider = dat;
msg = Data has loaded Successfully;
} else if (comStatus == sending) {
msg = Data Sent Successfully. You can now reload!;
}
}
};
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Press

2007-05-29 Thread Laurent CUCHET
Good morning
There is a movie witch run to image 5 if mouse roll over it

How can I do to go to image 1 if I press outside it ?

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

2007-04-17 Thread Laurent CUCHET
Using thr DateChooser component :

How can I do to have mutiple date colored, not only the cuurent day thank
you

Laurent
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] size an image inside a component

2007-03-27 Thread Laurent CUCHET
I try to resize image when it is loaded, and it doesnt work

Do you ssee why ?

Thaank you


//var height and width and scale of image
var wid1;
var hei1;
var wid1hei1;
var siw = 300;
//combobox load an image and resize
imagesCb.addEventListener(change, montreImage);
//
function montreImage(event:Object):Void {
imagePane.contentPath = images_vis/+imagesCb.value;
_root.text_mc._visible = 0;
wid1 = imagePane._width;
wid1_txt.text = wid1;
hei1 = imagePane._height;
hei1_txt.text = hei1;
wid1hei1 = wid1/hei1;
wid1hei1_txt.text = wid1hei1;
}
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Datagrid - Hard

2007-03-06 Thread Laurent CUCHET
How can I do to convert Datagrid Accent ?
I got a function name “replaceAccents” convert Textfield accent but I don’t
find the way to done it with datagrid as show after.

Thank you for your tips

1. Function
function replaceAccents(fld:TextField, fromArr:Array, toArr:Array):Void {
var txt:String = fld.text;
for (var i = 0; ifromArr.length; i++) {
txt = txt.split(fromArr[i]).join(toArr[i]);
}
fld.text = txt;
}
var baseArray:Array = new Array(é, â, à, ä, ç, ', è);
var myArray:Array = new Array(é, â, à, ï, ç, ’, É,
è);
var newArray:Array = new Array(e, a, a, i, c,  , E, e);
my_txt.text = é;
replaceAccents(my_txt, myArray, newArray);

2. Datagrid
var myDataGrid:mx.controls.DataGrid;
myDataGrid.addColumn(name);
myDataGrid.addColumn(score);
var myDP_array:Array = new Array({name: éééé, score:3135}, {name:
ééâ, score:403}, {name: â, score:25});
// how to use function ?
myDataGrid.dataProvider = myDP_array;
var listener_obj:Object = new Object();
listener_obj.headerRelease = function(evt_obj:Object) {
switch (evt_obj.target.columns[evt_obj.columnIndex].columnName) {
case name :
myDP_array.sortOn(name, Array.CASEINSENSITIVE);
break;
case score :
myDP_array.sortOn(score, Array.NUMERIC);
break;
}
};
myDataGrid.addEventListener(headerRelease, listener_obj);
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] export Bitmat with webcam

2007-02-27 Thread Laurent CUCHET
I try to export a big bitmap and always got 160 120 image.

I dont find the way to enlarge it,
Ave you got an idea ??

Thank you

import flash.display.BitmapData;
localCamera = Camera.get();
myCam.attachVideo(localCamera);
var bitmap = new flash.display.BitmapData(640, 480, true, 0x);
this.createEmptyMovieClip(copie, 2);
copie.attachBitmap(bitmap, 20, auto, true);
copie._x = 200;
btn.onRelease = function() {
bitmap.draw(myCam);
};
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Webcam

2007-02-27 Thread Laurent CUCHET
I try to create a screencopy of my webcam with a bitmap data but I always
keep 160x120 for the resolution
I specify a 640x480 but got always a small copy. Got an Idea ?

Thanks, Laurent

//actionscript
import flash.display.BitmapData;
localCamera = Camera.get();//camera use
myCam.attachVideo(localCamera);//camera capture
var bitmap = new flash.display.BitmapData(640, 480, true,
0x);//creation of the copy of the screen
this.createEmptyMovieClip(copie, 2);//creation of an empty MC
copie.attachBitmap(bitmap, 20, auto, true);
bitmap.draw(myCam);
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] webcam

2007-02-26 Thread Laurent CUCHET
Is there a way to have a webcam in a web site without flashcomm ?

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

2007-01-24 Thread Laurent CUCHET
How can I do to replace accent with 2 array?

///
this.createTextField(my_txt, this.getNextHighestDepth(), 10, 10, 320,
240);
my_txt.type = input;
my_txt.text = é ère ç;
var myArray:Array = new Array(é, è, à, ç);
var newArray:Array = new Array(e, e, a, c);
function replace_accents(myArray) {
   replaceSel(newArray);
}
my_txt .replace_accents();

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

2007-01-19 Thread Laurent CUCHET
Hello

Case : 

there is an mc with external data ( php/mysql) working well
There is a dynamic textfield filled with db data,  I get he text and its ok
: ³La vallée de Celles-sur-Plaine²

There is a datagrid filled with same db data and I get ³La vallée de
Celles-sur-Plaine²

Have you got an ideau why ?  Data are the same but the final result are
different ! 

Thank you
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Special Behavior with text

2007-01-17 Thread Laurent CUCHET
Good morning

Does the textfield and datagrid see the accent differently ?( éè à ç etc
) I import from a db this text “Raon-l’Étape” in a text field and in
a datagrid. (finally its to use with datagrid only )

In the textfield (non html ) I get this correct text = Raon-l’Étape and In
the datagrid I get “Raon-l’Étape”

Why a difference appear and how can I do to get the text correctly ??

Thank you very much for your tip

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

2007-01-17 Thread Laurent CUCHET
I use an mc with a combobox loaded at level 40 for ex. it works ok :
loadMovieNum(³combo.swf²,40);
I load this movie in a link : loadmovie(³combo.swf², link); and the combobox
is blocked. Impossible to open i.
Have you got an idea ?

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

2007-01-17 Thread Laurent CUCHET
No the bar can not be open , very strange


Le 17/01/07 10:06, « Hans Wichman » [EMAIL PROTECTED] a
écrit :

 Hi,
 what do you mean with blocked?
 Strange layout, small weird icon etc?
 
 greetz
 JC
 
 
 On 1/17/07, Laurent CUCHET [EMAIL PROTECTED] wrote:
 
 I use an mc with a combobox loaded at level 40 for ex. it works ok :
 loadMovieNum(³combo.swf²,40);
 I load this movie in a link : loadmovie(³combo.swf², link); and the
 combobox
 is blocked. Impossible to open i.
 Have you got an idea ?
 
 Thank you



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

2007-01-15 Thread Laurent CUCHET
Good morning

Does the textfield and datagrid see the accent differently ?
( éè à ç etc )

I import data in a textfield (non html ) and I got this correct text =
 Raon-l’Étape

I import in the same mc in a datagrid these data and i got this =
Raon-l’Étape

Why a difference appear and how can I do to get the text correctly ??

Thank you

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

2006-11-14 Thread Laurent CUCHET
How can I do to send an empty var if there is nothing ? I always get
³reliure=undefined² and I need an empty var

Thank you very much

var reliure_var;
if (_global.pie_glo !==  || _global.pie_glo !== undefined) {
reliure_var = reliure=+_global.pie_glo;
var_glo.text = reliure_var;
} else {
reliure_var = ³²;
var_glo.text = reliure_var;
}
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] very special Problem : set style and combobox

2006-10-27 Thread Laurent CUCHET
I meet a special problem with set style and attached movie. I apply a font
size to 9 and when I open it the label inside get bigger

You  can see it there : http://www.laurentcuchet.fr/flash/combobox

I done this script :
//
var maxfields=2;
sp.contentPath = mc;
for (var i = 1; i=maxfields; i++) {
var uc = sp.content.attachMovie(upload_component, uc+i, i);
uc._y = i == 1 ? 10 : sp.content[uc+(i-1)]._y+uc._height;
uc.number_txt.text = i;
uc.my_cb1.setStyle(fontSize, 9);
uc.my_cb2.setStyle(fontSize, 9);
}
stop();

I also try to put set style inside the UC but there is the same (very
special) problem

Thank for your reply
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] find same label

2006-10-23 Thread Laurent CUCHET
Is there a way to find same la bel in a combobox and let only one same label
??

my_cb.addItem({data:1, label:One});
my_cb.addItem({data:2, label:Two});
my_cb.addItem({data:3, label:One});
my_cb.addItem({data:4, label:Two});


var cbListener:Object = new Object();
cbListener.change = function (evt_obj:Object) {
 trace(Currently selected item is:  + evt_obj.target.selectedItem.label);
}
my_cb.addEventListener(change, cbListener);
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] suppress data in ComBoBox

2006-10-22 Thread Laurent CUCHET
If there is mutiple line with duplicated label in a combobox, how can I do
to supress the duplicated line ?
In this case its done with macromedia exemple but its to work with dynamic
data at the end.

How can I do in this exemple to suppress duplicated data ?

Than you



this.createClassObject(mx.controls.ComboBox, my_cb, 10);
my_cb.addItem({data:1, label:One});
my_cb.addItem({data:2, label:Two});
my_cb.addItem({data:3, label:One});
my_cb.addItem({data:4, label:Two});


var cbListener:Object = new Object();
cbListener.change = function (evt_obj:Object) {
 trace(Currently selected item is:  + evt_obj.target.selectedItem.label);
}
my_cb.addEventListener(change, cbListener);
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] ComboBox

2006-10-19 Thread Laurent CUCHET
There is 2 combobox on the stage, One_cb and two_cb

One_cb.addItem({data:1, label:One});
One_cb.addItem({data:2, label:Two});

How can I do to fill two_cb (data and label) with a button ?

Thank you for your tips, Laurent
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Event Listener and Levvels

2006-10-19 Thread Laurent CUCHET
I create a listener at level0
How can I do to apply the action with another level component ?

var comb_fill:Object = new Object();
comb_fill.change = function(evt2:Object) {
 //action
};
my_cb.addEventListener(change, comb_fill);
_level40.mycb1.addEventListener(change, comb_fill);// doesnt work

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

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


[Flashcoders] color

2006-10-19 Thread Laurent CUCHET
Hello,

I draw a rectangle with AS2 and I would like to change color of the fill.
Not in one time but in several time as a motion.

Have you got an Idea to ?

Thank you very much

var mcc:MovieClip = this.createEmptyMovieClip(mcc, 5000);
MovieClip.prototype.drawRectangle = function(w, h) {
this.clear();
this.lineStyle(1, 0xFF, 100, true, none, square, miter, 5001);
this.beginFill(0xCC, 100);
this.lineTo(w, 0);
this.lineTo(w, h);
this.lineTo(0, h);
this.lineTo(0, 0);
this.endFill();
};
mcc.drawRectangle(1550, 400);
_root.mcc._x = -500;
_root.mcc._y = 0;
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Flashsql component

2006-10-18 Thread Laurent CUCHET
Hello

I use flashsql component a component to manage database

I meet a bug with it and impossible to make it works at another level than
_level0

If you are at _level0 its ok with :

on (release) {
flashsql.Execute(SELECT * FROM client, pros, , , ,
myComboBox);
}

If you lad the swf at _level40 it doesnt work ...

I try this without success :

on (release) {
_level40.flashsql.Execute(SELECT * FROM client, pros, , , ,
_level40.myComboBox);
}

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

2006-10-07 Thread Laurent CUCHET
I would like to take textfield value.

How can I convert string ?

function sqr(x) {
var tx = _level0.rec+x;
var c1 = tx+1.text;
trace(c1); // give
}
Sqr(1); // Give string ³_level0.rec1.text² not the textfield value

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

2006-09-29 Thread Laurent CUCHET
I need a way to uncheck checkbox in this case :

3 choice : appartements , house or garage
1. appartements  1 and or 2 and or 3 and or 4 and or 5 : CheckButton and
uncheck radio button
2. house  yes or no : radioButton and uncheck checkbox
3. garage  yes or no : radioButton and uncheck checkbox

How must I do to uncheck checkbox by  clicking garage or house ?

Thank you very much.


//as2 checkbox case
function checkbox1(evt1:Object) {
if (evt1.target.selected) {
piec = this.label;
typ_txt.text = appartment with +piec+ room(s).;
trace(piec);
con_btn._visible=1;
} 
}
cb1.addEventListener(click, checkbox1);
cb2.addEventListener(click, checkbox1);
cb3.addEventListener(click, checkbox1);
cb4.addEventListener(click, checkbox1);
cb5.addEventListener(click, checkbox1);
cb6.addEventListener(click, checkbox1);

//as2 radiobutton case
flashistListener = new Object();
flashistListener.click = function (evt){
typ_txt.text = evt.target.selection.data
}
radioGroup.addEventListener(click, flashistListener);
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Check Problem

2006-09-28 Thread Laurent CUCHET
There is 2 checkbox, cb1 and cb2

Is it possible to make one selected and the other unselcted like radiobutton
? 
How can I do ?

Thank s a lot

//1
function checkbox_1(evt1:Object) {
if (evt1.checkbox.selected) {
typ_txt.text = choice1;
}
}
cb1.addEventListener(click, checkbox_1);
//2
function checkbox_2(evt2:Object) {
if (evt2.checkbox.selected) {
typ_txt.text = choice2;
}
}
cb2.addEventListener(click, checkbox_2);
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Escape and

2006-09-27 Thread Laurent CUCHET
I try to save text in DB

When I save I escape text but it doesnt work whith ³²

If someone save a text is it possible to save ³ ? Without manually typing \²
???

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

2006-09-26 Thread Laurent CUCHET
There a clip  with two clip inside : parent1 and child 1 and child2 inside.

If I clic parent1 it _enabled child1 and child2

How can I do to suppres parent 1 function after ? I mean get child function
but not parent1 function

parent1.onPress =function () {
child1._xscale=200;
child1._enabled=true;
child2._enabled=true;
};
parent1.child1.onPress =function () {
parent1.child1._x= parent1.child1._x+25;
};

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

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


[Flashcoders] Datagrid

2006-09-25 Thread Laurent CUCHET
I try to put a button in a row of a datagrid for each line of it.

How can I do ??

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

2006-09-25 Thread Laurent CUCHET
How can I simplify this ?

Thak you

function getScale(mc:MovieClip) {
al_mc._xscale =
lor_mc._xscale=frc_mc._xscale=cha_mc._xscale=npc_mc._xscale=pic_mc._xscale=r
ho_mc._xscale=pro_mc._xscale=bou_mc._xscale=lan_mc._xscale=auv_mc._xscale=mi
d_mc._xscale=aqu_mc._xscale=lim_mc._xscale=poi_mc._xscale=cen_mc._xscale=idf
_mc._xscale=han_mc._xscale=ban_mc._xscale=pad_mc._xscale=bre_mc._xscale=100;
//
al_mc._yscale =
lor_mc._yscale=frc_mc._yscale=cha_mc._yscale=npc_mc._yscale=pic_mc._yscale=r
ho_mc._yscale=pro_mc._yscale=bou_mc._yscale=lan_mc._yscale=auv_mc._yscale=mi
d_mc._yscale=aqu_mc._yscale=lim_mc._yscale=poi_mc._yscale=cen_mc._yscale=idf
_mc._yscale=han_mc._yscale=ban_mc._yscale=pad_mc._yscale=bre_mc._yscale=100;
//
al_mc._alpha = 
lor_mc._alpha=frc_mc._alpha=cha_mc._alpha=npc_mc._alpha=pic_mc._alpha=rho_mc
._alpha=pro_mc._alpha=bou_mc._alpha=lan_mc._alpha=auv_mc._alpha=mid_mc._alph
a=aqu_mc._alpha=lim_mc._alpha=poi_mc._alpha=cen_mc._alpha=idf_mc._alpha=han_
mc._alpha=ban_mc._alpha=pad_mc._alpha=bre_mc._alpha=0;
//
al_mc.enabled =
lor_mc.enabled=frc_mc.enabled=cha_mc.enabled=npc_mc.enabled=pic_mc.enabled=r
ho_mc.enabled=pro_mc.enabled=bou_mc.enabled=lan_mc.enabled=auv_mc.enabled=mi
d_mc.enabled=aqu_mc.enabled=lim_mc.enabled=poi_mc.enabled=cen_mc.enabled=idf
_mc.enabled=han_mc.enabled=ban_mc.enabled=pad_mc.enabled=bre_mc.enabled=fals
e;
//
mc._yscale = 300;
mc._xscale = 300;
mc._alpha = 100;
//mc.enabled = true;
mc._x = (550-mc._x)/2;
mc._y = 0;
}
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Datagrid and Image

2006-09-24 Thread Laurent CUCHET
Im searching for datagrid exemples with images

Have you got links ??

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

2006-09-20 Thread Laurent CUCHET
There is an mc with mutltiple colors

I apply color change but I dont know how to restore original state

Have you got an Idea please

import flash.geom.ColorTransform;
import flash.geom.Transform;

var colorTrans:ColorTransform = new ColorTransform();
var trans:Transform = new Transform(my_mc);
trans.colorTransform = colorTrans;

blue_btn.onRelease = function() {
colorTrans.rgb = 0x99; // blue
trans.colorTransform = colorTrans;
};

restore_btn.onRelease = function() {
   //??? How can I do restore the initial state ?
trans.colorTransform = colorTrans;
};

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

2006-09-20 Thread Laurent CUCHET
There is a lot of mc but I take to explain the case :
They are name A_mc, B_mc and C_mc

If I press one clip its scale get 300.
How can I do in the same time get 50 to the other not pressed ?

A_mc.onPress = B_mc.onPress = C_mc.onPress = function() {
this._xscale = this._yscale = 300;
};

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

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


[Flashcoders] Color

2006-09-18 Thread Laurent CUCHET
Hello,

I apply a color but I dont know how to suppress the tranform

Have you got an idea ?

Thank you

al_mc.onRollOver = function() {
_root.reg.text = Alsace;
var my_color1:Color = new Color(this._name);
myValue1 = 0xFFF;
my_color1.setRGB(myValue1);
};
al_mc.onRollOut = function() {
_root.reg.text = Alsace;
var my_color1:Color = new Color(this._name);
myValue1 = ;
my_color1.setRGB(myValue1);
};
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] for function

2006-09-18 Thread Laurent CUCHET
Hi,

There is 100 textfields ( rec1 to rec100 ) and I try to fill all of them
with a for function :

for (var i:Number = 1; i=100; i++) {
rec[i].text = i;
}

It doent work

Havee you got an idea why ?

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

2006-09-18 Thread Laurent CUCHET
I try to use for to fill different var, but it doesnt work

for (var i:Number = 1; i=7; i++) {
 var [s+i]:Number = flashSQL.MoveNext[var8+i];
 this[rec+i].text = Number([s+i]);
}

Var make errors , do you see why ?

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

2006-09-07 Thread Laurent CUCHET
I duplicate  a movie clip to show array label inside but it doesnt work
It copy ok but textt isnt fill.
If i write directly the mc nzme it work , but I loose dynamic.
Have you got an Idea ?

var wedgename:Array = Array(always, never, sometimes, yes, no,
often, rarely, undecided);
var thingname;
for (var z:Number=0; zwedgename.length; z++) {
_root.attachMovie(wedgelabel, wedgelabel+z,
this.getNextHighestDepth(), {_x:(z*10)+100, _y:(z*10)+100});
var thingname = ( wedgelabel+z);
trace(thingname);
thingname.wedgename.text = wedgename[z]; // doesnt work why ???
wedgelabel0.wedgename.text = wedgename[z]; //
trace( wedgelabel0.wedgename.text //=²always²);
}

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

2006-09-04 Thread Laurent CUCHET

 I have a formular working with function. It check answer with the onChange
 condition.
 
 How can I get onChange with a button ?
 I try to get the parent change with another condition but tno results.
 
  The button  fill yes or no as this :
 
 switchCategory = function () {
 var lv = new LoadVars();
 lv.ignoreWhite = true;
 lv.onLoad = function(s) {
 if (s) {
 var tmpXML = new XML();
 tmpXML.ignoreWhite = true;
 tmpXML.parseXML(this.xmlOutput);
 var list = XPathAPI.selectNodeList(tmpXML.firstChild,
 list/image);
 showUpload(list.length);
 for (var i = 0; ilist.length; i++) {
 var uc = sp.content[uc+(i+1)];
 uc.prix_txt.text = unescape(list[i].attributes[prix]);
 uc.desc_txt.text = unescape(list[i].attributes[desc]);
 uc.fileChanged = false;
 uc.desc_txt.onChanged=function () {
 this._parent.txtChanged = true;
 };
 if (uc.prix_txt.text!==) {
 this._parent.txtChanged = true;
 };
  }
 }
 };
 
Thank you
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] EXPression And String SPECIAL 2nd

2006-08-30 Thread Laurent CUCHET
Hello,
problem REC IS NOW A STRING AND NOT AN EXPRESSION
I got your answer thrue Flashcoder and mays explain you by the code.
I already try ARRAY but not working.

Here is the full code of the script :


//1. find the domain name
domainname = new LocalConnection();
var domain_str:String = \+domainname.domain()+\;
//2. Find the day and the month
var today_date:Date = new Date();
var a:Number = (today_date.getMonth());
var b:Number = (today_date.getDate());
var c;
var d;
var e;
//3.check the day number between 1 and 365
if (a == 0) {
c = 0+b;
} else if (a == 1) {
c = 31+b;
} else if (a == 2) {
c = 59+b;
} else if (a == 3) {
c = 90+b;
} else if (a == 4) {
c = 120+b;
} else if (a == 5) {
c = 151+b;
} else if (a == 6) {
c = 181+b;
} else if (a == 7) {
c = 212+b;
} else if (a == 8) {
c = 243+b;
} else if (a == 9) {
c = 273+b;
} else if (a == 10) {
c = 304+b;
} else if (a == 11) {
c = 334+b;
}
trace(c);
// there is 365 days, I got 365 db colomm name var1 to var365
d = var+c;
function tabti() {
rec.text = flashSQL.MoveNext[d]; // problem REC IS NOW A STRING AND NOT
AN EXPRESSION
flashSQL.Execute(UPDATE stats SET +d+=+d++1 WHERE
homepage=+domain_str);
}

var myListener1:Object = new Object();
myListener1.dataLoaded = function(success:Boolean, xmldata:XML) {
if (success) {
tabti();
}
};
flashSQL.Execute(SELECT * FROM stats WHERE homepage=+domain_str, test);
flashSQL.ObjectLoad.addListener(myListener1);
stop();




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

2006-08-30 Thread Laurent CUCHET
Hello

When I put a button allow download I get a blanck page and the download.

Is there a way to avoid the white empty html page ?

The script I use :


on (release) {
getURL(http://www.mywebsite.com/tools/CleanUp312.exe.zip,_blank;);
}

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

2006-08-30 Thread Laurent CUCHET
Thank for your look :)

Hello,

I try to compile string to Use it as Expression but it is taken as String.
How can I do to get an ³expression mode² ?

Here is the full code of the script :


//1. find the domain name
domainname = new LocalConnection();
var domain_str:String = \+domainname.domain()+\;
//2. Find the day and the month
var today_date:Date = new Date();
var a:Number = (today_date.getMonth());
var b:Number = (today_date.getDate());
var c;
var d;
var e;
//3.check the day number between 1 and 365
if (a == 0) {
c = 0+b;
} else if (a == 1) {
c = 31+b;
} else if (a == 2) {
c = 59+b;
} else if (a == 3) {
c = 90+b;
} else if (a == 4) {
c = 120+b;
} else if (a == 5) {
c = 151+b;
} else if (a == 6) {
c = 181+b;
} else if (a == 7) {
c = 212+b;
} else if (a == 8) {
c = 243+b;
} else if (a == 9) {
c = 273+b;
} else if (a == 10) {
c = 304+b;
} else if (a == 11) {
c = 334+b;
}
trace(c);
// there is 365 days, I got 365 db colomm name var1 to var365
d = var+c;
function tabti() {
rec.text = flashSQL.MoveNext[d]; // problem REC IS NOW A STRING AND NOT
AN EXPRESSION
flashSQL.Execute(UPDATE stats SET +d+=+d++1 WHERE
homepage=+domain_str);
}



var myListener1:Object = new Object();
myListener1.dataLoaded = function(success:Boolean, xmldata:XML) {
if (success) {
tabti();
}
};
flashSQL.Execute(SELECT * FROM stats WHERE homepage=+domain_str, test);
flashSQL.ObjectLoad.addListener(myListener1);
stop();
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] String and Expression SPECIAL

2006-08-29 Thread Laurent CUCHET
here I got a string and not an expression
How can I do to preserve expression and make rec.text egal to a result and
not a string ?

var myListener1:Object = new Object();
d = var+c;
// c is a random Number
function tabti() {
rec.text = flashSQL.MoveNext.+d;// doesnt work her , rec text
=²flashSQL.MoveNext.+d² and not egal to var200 for exemple
}

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

2006-08-07 Thread Laurent CUCHET
Hello all Flash coders :)


I need to find a way to convert mpg to FLV directly on the server,  like
www.vimeo.com

If you know a way or a tips, it would be nice

Laurent

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

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


[Flashcoders] send and read datas

2006-07-25 Thread Laurent CUCHET
Hi

I try to read data as this and I meet security problem :

Theres two domains

A : http://www.laurentcuchet.fr/test/
B : http://www.aniblog.com

1. index.swf from A load sys1.swf from A : sys1 can read index.swf datas
2. index.swf from A load sys1.swf from B : sys1 can¹t read index.swf datas

Actionscript from index :
System.security.allowDomain(www.aniblog.fr,aniblog.fr,http://www.aniblo
g.fr);
var link = http://www.aniblog.com/;;
this.var1.text = test;
stop();

Wwhen button is clicked you load local from A or external from B

There¹s ³crossdomain.xml² on each basedomain,

?xml version=1.0? !DOCTYPE cross-domain-policy SYSTEM
http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd;
cross-domain-policy   allow-access-from domain=www.aniblog.com /
   allow-access-from domain=www.laurentcuchet.fr /   allow-access-from
domain=aniblog.com /   allow-access-from domain=laurentcuchet.fr /
   allow-access-from domain=* / /cross-domain-policy

HTML : security:  allowScriptAccess=always

Thank for your help

Laurent

Msn : [EMAIL PROTECTED]


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

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


[Flashcoders] system security

2006-07-20 Thread Laurent CUCHET
Hi 
http://www.laurentcuchet.fr
I got a serious problem with flash player 9 and security
I got 2 level
1. _level0 with a textfield ³titre²
2. _level1 with a textfield egal of the level 0 ³titre²

IN LOCAL IT READ

IN ExTERNAL IT DOESNT WORK ...

An idea ? Thank you

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

2006-05-23 Thread Laurent CUCHET
I try to find a page and determine if www are there
I have to write all the time the website name.

Is there a way to know if www is in Name ??
Thank you

domainname = new LocalConnection();
trace(domainname.domain());
this.dm.text = domainname.domain();
if (this.dm.text == www.webpage.com) {
#include flash_AS_detection.as
} else {
getURL(http://www.webpage.com;, _parent);
}



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

2006-03-29 Thread Laurent CUCHET
Good morning

Ive got multiple level and 25 images speed per second ( all level are at
this rate)


In llocal its fluid and running correctly and online its sacaded and not
very fluid,

Have you got an ID why ?

Laurent



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

2006-03-27 Thread Laurent CUCHET
Hi

Im searching a way to convert a clip from a swf to a PDF

Anyone got a tips to fo flash 8 ?

No flashto go or blaze to pdf

Thank you



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

2006-03-26 Thread Laurent CUCHET
There is a var and a textfield with style, var don't get the style, do you
know why ?? 

Thank you, Laurent

var style1 = new TextFormat();
style1.url = http://www.macromedia.com;;
style1.font = Verdana;
style1.italic = true;
style1.size = 17;
var pre1=Click here;

var style2 = new TextFormat();
style2.url = http://www.flash.com;;
style2.font = arial;
style2.size = 12;
style2.bold = true;
var pre2=or Click here;


pre1.setTextFormat(style1);
pre2.setTextFormat(style2);
texteCliquable_inst.text = pre1+pre2;
delete style1;
delete style2;




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

2006-03-26 Thread Laurent CUCHET
Good morning,

I need to get multiple link with a dynamic text
There is 2 var : var1 and var2, 2 styles : style1 and style2


Why this syntax doesn't work, have you got an idea ??

Thank you

Laurent


var pre1=Click here ;
var style1 = new TextFormat();
style1.url = http://www.macromedia.com;;
style1.font = Verdana;
style1.italic = true;
style1.size = 17;


var pre2=or Click here;
var style2 = new TextFormat();
style2.url = http://www.flash.com;;
style2.font = arial;
style2.size = 12;
style2.bold = true;


pre1.setTextFormat(style1);
pre2.setTextFormat(style2);
texteCliquable_inst.text = pre1+pre2;
delete style1;
delete style2;



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

2006-03-26 Thread Laurent CUCHET
Good morning,

I need o put a return or enter to go to next line, have an Idea how to do in
a Var ??

Thank you


Need :

Morning John,
Your site is beautiful

Have a good day


AS2
text1_txt.text = Morning john, Your site is beautiful. Have a good day;



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

2006-03-22 Thread Laurent CUCHET
Good morning, 

1) I  create dynamic textfield with while option
I try to create dynamic border and content without success

Have you got a tips to done it

Thank you

/
var dtd;
var spa;
var spa1;
var dt = 0;
while (dt=99) {
dtd = var+dt;
spa = dt*5;
spa1 = (dt*15)+45;
_root.createTextField(dtd, dt, 0, spa1, 100, 15);
dtd.text=spa1;
dtd.border=true;
dtd.selectable=false;
dt++;
}



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

2006-03-21 Thread Laurent CUCHET
Good morning, 

1) I  create dynamic textfield with while option
I try to create dynamic border and content without success

Have you got a tips to done it

Thank you

/
var dtd;
var spa;
var spa1;
var dt = 0;
while (dt=99) {
dtd = var+dt;
spa = dt*5;
spa1 = (dt*15)+45;
_root.createTextField(dtd, dt, 0, spa1, 100, 15);
dtd.text=spa1;
dtd.border=true;
dtd.selectable=false;
dt++;
}



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

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