[Flashcoders] recursive buttons

2006-07-10 Thread riccardo.roasio
I,
i need to recursively create some buttons to put into an accordion.
I'm able to create Buttons and add them a label, but i'm not able to connect 
every button to a different action.
Anyone can help me?
Thanks,Riccardo
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] problems loading an image into a movieclip

2006-05-22 Thread riccardo.roasio
Hi,
i have a movie with a button and a movieclip.
I want that when i click the button an external image is visualized into 
the movieclip.

I called the movieclip instance ic and in add this code to the button :

on(click)
{
   loadMovie("penguin.bmp",ic);
}

the problem is that the movieClip became white but the image is not 
visualized...
Ehat's wrong?
Thanks,Riccardo
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] list file into a remote folder

2006-05-22 Thread riccardo.roasio
Hi,
how can i list all files contained into a remote folder?
Thanks,Riccardo
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] datagGRid elements alignment

2006-05-15 Thread riccardo.roasio
Hi,
there is a way to align a datagrid column on the left ?
i mean dispose all elements of a certain row on the left?
Thanks,Riccardo
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] dynamic creation of a datagrid

2006-05-10 Thread riccardo.roasio
I use a perl script that give me a big string with | as row delimiter and 
# as cell delimiter.
I'm able to spit it by rows and split every row .
I also have another string with all headers.

I'm able to add headers but i don't know how to add data...
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 creation of a datagrid

2006-05-10 Thread riccardo.roasio
Hi,
i need to put into a datagrid data coming from a db.
The problem is the number of columns is variable.
I use addColumn to add n new columns with their names, but when is time 
to use assItem i don't know what to do...
The use of addItem is addItem( { col1: "val1",col2:val2 } ) but i know 
col1 and col2 only at runtime 
What can i do to solve this problem?

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

2006-05-03 Thread riccardo.roasio
Hi,
anyone uses flash with perl cgi as server side application?
I have problems with it ,seems that the script doesn't pass values to flash.
here is the perl cgi (is very simple) :

#!/bin/perl

print "Content-type: text/html\n\n";
$out="&_service_=";
for($i=0;$i<20;$i++)
{
$out .=$i."#";
}

print $out;
exit(0);


and here is what LoadVars.contentType , .toString contain :

TYPE :application/x-www-form-urlencoded 
CONTENT :%5Fservice%5F=%22%3B%0Afor%28%24i%3D0%3B%24i%3C20%3B%24i%20%20%
29%0A%7B%0A%09%24out%20%2E%3D%24i%2E%22%23%22%3B%0A%7D%0A%0Aprint%20%24out%
3B%0Aexit%280%29%3B%0A&%23%21%2Fbin%2Fperl%0A%0Aprint%20%22Content%2Dtype%
3A%20text%2Fhtml%5Cn%5Cn%22%3B%0A%24out=%22&onLoad=%5Btype%20Function%5D 

and here il what i receive as value of the variable 

";
for($i=0;$i


I don't understand...
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] LoadVars problems

2006-05-03 Thread riccardo.roasio
Thanks , now it works... Now i only need to understand what's appening here

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

2006-05-03 Thread riccardo.roasio
I did it, ialways do it with c++ and it works but in perl it doesn't...
but if in the perl script i simply do print "&var1=1&var2=2&var3=3"  flash 
reads them.
So i thinks is something passed to flash from perl when it dinamicalli create 
the string and i'm trying to get more informations using LoadVars.toString 
method... 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] LoadVars problems

2006-05-03 Thread riccardo.roasio
Here is the code :

list_lv.onLoad=function(success:Boolean)
{
if(success)
   {
 //test is the var associated to a text area
 test = list_lv.contentType+" "+list_lv.toString;
  }
}
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 problems

2006-05-03 Thread riccardo.roasio
Hi,
i have a perl cgi that pass variables to a flash movie.
Usually i use c++ but this time i need to use perl, so...

Tha problem is that when i run onLoad method it loads but i'm unable to take 
variables values.
So i tried the LoadVars.toString method and it return [type Function] ... 
what means?

Thanks,Riccardo
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] problem with FileReference download

2006-03-28 Thread riccardo.roasio
Hi,
i'm trying to download a file from the server using the FileREference download 
function...

If i try from flash ( TEst movie ) it download the file correcly, but if 
i try from the web browser it seems to wait for something

So i tryed to run it directy as swf and it sayd that i'm doing something 
potentially 
dangerous...

I need to set something about security to permit to connect to the server?


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

2006-03-26 Thread riccardo.roasio
Here is my code :

this.createEmptyMovieClip("tempShape",20,1):
tempShape.lineStyle...
tempShape.moveTo(x1,y1):
tempShape.lineTo
...

this tempShape is a shape with a strange form...
i need to know if a particualr pixel hit this shape

for(i=0:ihttp://chattyfig.figleaf.com/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] hitTest

2006-03-26 Thread riccardo.roasio
It return me always true...is it possible???
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] hitTest

2006-03-26 Thread riccardo.roasio
Is possible to use hitTest function to check if a particolar pixel is inside 
a run-time created shape?

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] duplicate movieclip?

2006-03-25 Thread riccardo.roasio
I found the easy way...

1) create  BitmapData
2)for every point paint 6 pixel


That's all...easier and faster
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] duplicate movieclip?

2006-03-25 Thread riccardo.roasio
Ok, i will give more details.

I need to plot  a big number of points on a graph.

The first time i symply created every time a new movievlip ( too slow)

Now, afeter RuneImp suggestions i'm using attachmovie and it seems to work.


But, returning to the main issue... i need to plot these series of points and 
after 
i must draw a shape and check which of these points are inside this shape.
I do that using the function to control collision..

I hope to be more clear and i hope someone can suggest me how to make my 
script perform faster... Thnaks to all
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] duplicate movieclip?

2006-03-25 Thread riccardo.roasio
I have a big probelm,

i need to draw a lot of points in my movie (like 1) . I tryed creating at 
run time a little square for every point and moving it in a certain position.

It works but is very slow.

My question is if i can use duplicatemovie clip to duplicate this little square 
shape ( and how can i do it) and if this will help to make my movie ligther 
and faster...


Thanks,Riccardo  

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

2006-03-25 Thread riccardo.roasio
Hi,
i have problems updating a comboBox in the sense that i use the funcyion 
addItem 
but values are not dysplayed in the combo box.
I found that if i put the same code in a blank movie it works...
In my case thi addItem is in a function and as frame action i have stop();
can be that the stop action cause problem to it?

I also tryied redraw nut nothing appen...


Any suggestion?
Riccardo
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] save as bitmap

2006-03-24 Thread riccardo.roasio
Hi,
there is the possibility to save a movie as a Bitmap?

Something like printAsBitmap but that permit to save as image or to copy as 
image?

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

2006-03-24 Thread riccardo.roasio
I found the problem...

i solve it adding the .x and .y properties to every movieclip and passing them 
the movie clip position.

In this way i can retrieve these values with movieclip.x and movieclip.y

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

2006-03-24 Thread riccardo.roasio
I tryed to trace the movieclip ?width and height properties and it works, 
but if i try with x and y it write 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] array of movieCLip

2006-03-24 Thread riccardo.roasio
If i create n movieclip with the createEmptyMovieClip giving to anyone a 
different name is possible to know the x and y value from another function?
To me seem no , if i create for example 10 movie clip and in another function 
i write 
trace("x : "+movieclip1._x) 
trace("y : "+movieclip1._y) 

trace("x : "+movieclip2._x) 
trace("y : "+movieclip2._y) 


...


it writes always 0...


Any suggestion?
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] draws and regions

2006-03-24 Thread riccardo.roasio
I have a big (for me) problem,

i have a grpah made of a series of point (of one pixel).
I need taht the user can draw a series of line on this graph to make a 
shape or region.
This is the first problem: how to permit to the user to draw...

The second is this one :

there is a way to check if a point is inside the refion or outside?


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

2006-03-23 Thread riccardo.roasio
Hi,
i need to draw a graph made of a series of points .
I Know the x and y values of every point only at run-time because i take 
them from a cgi script.

I tryed creating a movieclip at run-time in a for statement .but at the end 
i view only oone point...

the code is this one:


for(i=0;ihttp://chattyfig.figleaf.com/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] control two text area with one scrollbar

2006-03-18 Thread riccardo.roasio
Hi,
is possible to control the scroll of two text area using only one scrollBar+
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] flash8 and cgi

2006-03-17 Thread riccardo.roasio
Hi,
anyone know how to connect a flash movie to a cgi script?
I tried to use sendAndLoad but when i check with the onLoad function it 
gives me an unsuccess...

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

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