all groups > flash actionscript > march 2004 >
You're in the

flash actionscript

group:

Creat Object....


Creat Object.... Mário Diogo
3/18/2004 11:03:54 PM
flash actionscript:
To creat a remote stream, i have first to create a netstream object.....

For example:
remotestream = "my_sample_remote_stream"; //where "my_sample_remote_stream"
is my object..

How do i creat this object?

I´ve been watching the flash help files and for what i understand i can
creat it like this. What i want to know is if this code is correct, to creat
the object.?!!

Is it like this?
newobject = ([my_sample_remote_stream]);

Thanks for any help...

Re: Creat Object.... Todd Coulson
3/19/2004 9:51:09 AM
The format for creating any new object is the following format:
someVar= new Object();
//someVar is a variable name you make up to represent the instance of the
new object you are creating.
So if you were making a new array, you could write it in the following:
some_array=new Array();
//with the array object you can also pass items for the array like so:
some_array=new Array("item1", "item2");
trace(some_array); //traces back item1, item2
I am not sure about the remotestream object. But your best bet is to look
up in the same help files you were looking at, keeping in mind that object
must have a variable created then associate it to a new object of your
choice, whether it be Date, MovieClip, Array, String, Sound, ect. They all
have the same format of making an object.

--
Todd R. Coulson
multimedia developer - Haley Productions
todd@haleypro.com
search newgroups at: http://groups.google.com

[quoted text, click to view]

Re: Creat Object.... Mário Diogo
3/19/2004 5:03:04 PM
thank you Todd...


"Todd Coulson" <todd@haleypro.com> escreveu na mensagem
news:c3f1ct$nc2$1@forums.macromedia.com...
[quoted text, click to view]

AddThis Social Bookmark Button