Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7673113
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T16:26:13+00:00 2026-05-31T16:26:13+00:00

I have an AS3 class with some getVideo function. I want to use this

  • 0

I have an AS3 class with some getVideo function. I want to use this function in mxml. So I am creating object there and trying to call the function, but I get this error:

Call to a possibly undefined method.

How can I use my functions in mxml?

My AS3 :

public class InitVideoSound 
    {
        var video:Video = new Video();

        public function InitVideoSound()
        {...}

        public function getVideo():Video {
            return video;
        }

My mxml :

<fx:Script>
        <![CDATA[           

            var ivs1 : InitVideoSound;

            public function init(){
            ivs1.getVideo();

            start.enabled = false;
            }
        ]]>
    </fx:Script>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T16:26:14+00:00Added an answer on May 31, 2026 at 4:26 pm

    Try this

    <fx:Script>
            <![CDATA[           
    
                var ivs1 : InitVideoSound = new InitVideoSound() ;
    
                public function init(){
                ivs1.getVideo();
    
                start.enabled = false;
                }
            ]]>
        </fx:Script>
    

    Make sure the neccesary import for classes are done.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In AS3 you have a function on a string with this signature: function replace(pattern:*,
I have used this code in my AS3 document class to remove all objects
I have this abstract factory pattern that I use in as3 that I am
currently I'm having some problems with my preloader. I have an as3 class website
For example i have function declared in AS3.0 class: private function log():void{ // working
I am trying to create a basic functionality in AS3. I have a class
Let's say I have some code like this in AS3 for(...) thing = new
I'm a C# developer who is trying to learn some AS3, so this is
I have as3 class like this package { import Global; import flash.display.MovieClip; import flash.events.*;
I have an AS3 Singleton: package { public class Singleton { public function Singleton(enforcer:SingletonEnforcer):void

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.