A Flash Developer Resource Site

Results 1 to 15 of 15

Thread: Passing variables into a class in .as file

Hybrid View

  1. #1
    Senior Member
    Join Date
    Jan 2011
    Posts
    171
    Class

    Actionscript Code:
    public var _videoURL:String;// = "video/showreel.mov";
    public var _imageURL:String;// = "image/showreel.jpg";

    Timeline

    Actionscript Code:
    mcVideoplayer._videoURL = "video/showreel.mov";
    mcVideoplayer._imageURL = "image/showreel.jpg";




    arkitx
    Last edited by arkitx; 04-16-2012 at 11:09 AM.

  2. #2
    Junior Member
    Join Date
    Apr 2006
    Posts
    29
    Quote Originally Posted by arkitx View Post
    Class

    Actionscript Code:
    public var _videoURL:String;// = "video/showreel.mov";
    public var _imageURL:String;// = "image/showreel.jpg";

    Timeline

    Actionscript Code:
    mcVideoplayer._videoURL = "video/showreel.mov";
    mcVideoplayer._imageURL = "image/showreel.jpg";

    No, this didn't do it. Comes up with error "1120: Access of undefined property mcVideoPlayer". Because I'm not creating an instance of mcVideoplayer (it's being created through a symbol that's linked to the class) I can't reference it.


    arkitx

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center