probbably you are not writing this code in separate as
you need to create separate actionscript file with name 'abc.as' for that in your project src folder and the paste that code in it
the name of actionscript file should be same as your class file.
you can do this by clicking
file->new->ActionScript Class this will open new dialog
enter your class name in the name textbox and click finish
now you can use this class in your main project easily
by importing it
then you will probbably call its constructer to use it
var myabc:abc=new abc()
thx, i was committing this mistake.
do u have any idea for streaming video from a server.
hi! I tried your code. But still same error is coming. Error1037, Package cannot be nested.
you may need streaming server for that FMS or Red5 server depends on your requirement .
thx a lot, i got my mistake. thx a lot.
One more thing.
Can u tell whats difference bw
ur code goes here;
2) second what the purpose of 'trace' function.?
1) They are effectively the same thing, but it allows you to code your ActionScript outside an application or component, perhaps using it in multiple places or applications.
2) trace() prints whatever you put in it to the Flex Builder console view. So trace(myVar) outputs the value of myVar.