263 posts
  • Has been part of the Envato Community for over 6 years
  • Located in Antarctica
  • Has sold $100+ on Envato Market
  • Has collected 1+ items on Envato Market
+1 more
x360c says
The code below throws this error:
1120: Access of undefined property video01_conn.
1120: Access of undefined property video01_stream.
1120: Access of undefined property video01_stream.
1120: Access of undefined property video01_stream.
1120: Access of undefined property video01_st.
And here’s the code
package 
{
    import flash.events.MouseEvent;
    import flash.display.MovieClip;
    import flash.net.NetStream;
    import flash.net.NetConnection;
    import flash.events.Event;
    import flash.media.SoundTransform;
    import flash.media.Video;
    import caurina.transitions.Tweener;
    public class video01 extends MovieClip
    {
        var video01_conn:NetConnection = new NetConnection();
        video01_conn.connect (null);
        var video01_stream = new NetStream(video01_conn);
        video01_stream.play (null);
        video01_stream.togglePause ();
        var video01_st = new SoundTransform();
        video01_stream.soundTransform = video01_st;
    }
}

Please help and thanks in advance, again.

691 posts
  • Has been part of the Envato Community for over 7 years
  • Has sold $5,000+ on Envato Market
  • Located in Canada
  • Has collected 10+ items on Envato Market
+2 more
geoken says

Your class doesn’t have a main function. You need to sort that out before you start trouble shooting anything.

You need to have a function with the same name as your class.

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by