Working with AS3 External Classes

Ok... trying to work with AS3 external classes. I have a movieClip that I want to also function as a button. Instance name is "_onDemand". This movieClip is on the stage of my Home.fla.  "_onDemand" movieClip properties   Class:HomePage  Base clase: flash.display.MovieClip
I want the user to click this movieClip and take the user to an external URL within a new browser window or tab.
Can anyone help me? Or at least point me to a really really good tutroial that does exactly this using external classes?
Thanks so much,
Mark
My code:
package com.cox4college.pages
import com.gaiaframework.templates.AbstractPage;
import com.gaiaframework.events.*;
import com.gaiaframework.debug.*;
import com.gaiaframework.api.*;
import flash.display.*;
import flash.events.*;
import com.greensock.TweenMax;
import flash.net.URLRequest;
import flash.net.navigateToURL;
public class HomePage extends AbstractPage
public function HomePage()
super();
alpha = 0;
//new Scaffold(this);
override public function transitionIn():void
super.transitionIn();
TweenMax.to(this, 0.3, {alpha:1, onComplete:transitionInComplete});
override public function transitionOut():void
super.transitionOut();
TweenMax.to(this, 0.3, {alpha:0, onComplete:transitionOutComplete});
public class _onDemand extends Sprite
// Link Navigation button handlers
public var _onDemand:Sprite;
// if you want a hand cursor
_onDemand.buttonMode = true;
_onDemand.useHandCursor = true;
_onDemand.addEventListener(MouseEvent.CLICK, onDemandClickHandler);
_onDemand.addEventListener(MouseEvent.ROLL_OVER, onDemandRollOverHandler);
_onDemand.addEventListener(MouseEvent.ROLL_OUT, onDemandRollOutHandler);
public function onDemandClickHandler(e:MouseEvent):void{
navigateToURL(new URLRequest("http://ww2.cox.com/residential/santabarbara/tv/ondemand.cox"));
public function onDemandRollOverHandler(event:MouseEvent):void{
_onDemand.gotoAndStop("hover");
public function onDemandRollOutHandler(event:MouseEvent):void{
_onDemand.gotoAndStop("static");
Getting the following errors:
1120: Access of undefined property _onDemand.

Ok. I admit it... I had some wonderful help to resolve this issue. You ever feel like you are on an island learning AS3 External Classes? I feel that way all the time... so far... I plan on not feeling that way soon. I hope this helps someone get off that island.
package com.domainname.client {
    import flash.display.*;
    import flash.events.*;
    import flash.net.*;
    import flash.utils.*;   
    import caurina.transitions.Tweener;
    import caurina.transitions.properties.*;
    FilterShortcuts.init();   
    ColorShortcuts.init();      
    public class Main extends MovieClip {
        private var coverDelay:Number = 4;
        //#DF6D27
        public function Main():void {
            initMain();
        private function initMain():void {
            mc_form.visible = false;
            Tweener.addTween(mc_cover,{alpha:1,time:1,delay:coverDelay,onComplete:formIn});
            btn_onDemand.buttonMode = true;
            btn_listings.buttonMode = true;
            btn_ppv.buttonMode = true;
            btn_rhapsody.buttonMode = true;
            btn_onDemand.addEventListener(MouseEvent.MOUSE_OVER,navOver);
            btn_onDemand.addEventListener(MouseEvent.MOUSE_OUT,navOut);
            btn_onDemand.addEventListener(MouseEvent.CLICK,navClick);
            btn_listings.addEventListener(MouseEvent.MOUSE_OVER,navOver);
            btn_listings.addEventListener(MouseEvent.MOUSE_OUT,navOut);
            btn_listings.addEventListener(MouseEvent.CLICK,navClick);
            btn_ppv.addEventListener(MouseEvent.MOUSE_OVER,navOver);
            btn_ppv.addEventListener(MouseEvent.MOUSE_OUT,navOut);
            btn_ppv.addEventListener(MouseEvent.CLICK,navClick);
            btn_rhapsody.addEventListener(MouseEvent.MOUSE_OVER,navOver);
            btn_rhapsody.addEventListener(MouseEvent.MOUSE_OUT,navOut);
            btn_rhapsody.addEventListener(MouseEvent.CLICK,navClick);           
            function navOver(evt:MouseEvent):void {
                Tweener.addTween(evt.target,{_color:0xffc614,time:.2});
            function navOut(evt:MouseEvent):void {
                Tweener.addTween(evt.target,{_color:0xffffff,time:.2});
            function navClick(evt:MouseEvent):void {
                var url;
                switch (evt.target.name) {
                    case 'btn_onDemand':
                    url = new URLRequest("http://ww2.cox.com/residential/santabarbara/tv/ondemand.cox");
                    break;
                    case 'btn_listings':
                    url = new URLRequest("http://ww2.cox.com/myconnection/santabarbara/watch/entertainment/tv-listings.cox");
                    break;
                    case 'btn_ppv':
                    url = new URLRequest("http://ww2.cox.com/residential/santabarbara/tv/pay-per-view.cox");
                    break;
                    case 'btn_rhapsody':
                    url = new URLRequest("http://ww2.cox.com/myconnection/santabarbara/listen.cox");
                    break;                                                           
                navigateToURL(url,"_blank");

Similar Messages

  • I have a PowerBook G4 with a non-functioning monitor.  It used to work with an external monitor, but I reinstalled the OS, which cleared the display preferences and now when I restart it won't detect the external monitor. How do I fix?

    I have a PowerBook G4 with a non-functioning monitor.  It used to work with an external monitor, but I reinstalled the OS, which cleared the display preferences and now when I restart it won't detect the external monitor. This means I can't use the computer anymore. How do I fix? I tried using the Command+F2 keyboard shortcut, but it doesnt' work.  It's possible that since I reinstalled the OS, it still needs to be set up, so there's only a welcome screen (but since I can't see it I'm not sure).

    There is no limit to the number of times you can re-install Office on the same computer.
    You can activate by telephone:
    The last paragraph is the relevant bit

  • Does iMovie 08 work with two external devices?

    Does iMovie 08 work with two external devices without causing latency.  I need to capture the video through an external USB webcam and the audio through a Digital Recording box through firewire.

    YES and there are multiple postings here with complete information
    Also visit:
    http://www.dvinfo.net/conf/forumdisplay.php?f=156
    A Users Group with answers to al your questions.

  • Will Time Machine work with an external hard drive connected (via usb) to Airport Extreme?

    Will Time Machine work with an external hard drive connected (via usb) to Airport Extreme?

    Sorry, but this article is about 4 years old, and was printed based on preliminary information at the time.
    The bottom line here is that Apple does not officially support Time Machine backups to a drive at the USB port of the AirPort Extreme.
    If it works for you, great.
    You might want to review the Apple Support documents below, which are far more recent than the article you reference:
    http://docs.info.apple.com/article.html?path=Mac/10.6/en/15139.html
    http://support.apple.com/kb/HT2038
    It is supported.....
    This is NOT correct. Please do not post false information on the forums.

  • Will my mid 2010 iMac 27inch work with Thunderbolt external drives?*

    will my mid 2010 iMac 27inch work with Thunderbolt external drives?*

    No. Your iMac doesn't have Thunderbolt. You'll need a Firewire or USB drive.
    Regards.

  • Including AS3 external class file

    How do I include 2 or more external action script files in my FLA document.The first one is easy and taken care by setting the class property of the FLA document to the class file name. But if I have several external class files? I have tried the 'include' directive but the compiler complains - any suggestions?
    Thanks
    Joseph Karov

    To import the other Class, just start typing its name in an expression, and hold down the control key while hitting the space bar. Both the Flash IDE and Flash Builder will bring up a code completion dropdown. When you select the Class, the import statement will be generated.
    For example, if you are in Foo and you type:
    protected var bar:Bar;
    Then when you have typed in the "Ba" part of the word Bar after the colon, if you use the Ctrl-Space keyboard shortcut, it should show you your Bar Class, possibly among other Classes starting with "Ba." Select "Bar" with either your mouse or your cursor, and Flash will finish the word for you and generate the import statement. Note that you can now create and use instances of Bar, but Bar won't be "merged" into Foo, which it sounds like is what you want. To do that, you'll need to do what I suggested, which is to have one Class extend another Class.
    To have one Class extend the other, change the line that says "public class Foo" to "public class Foo extends Bar". Note that the two Classes must have compatible functionality and have the same base Class. I'm assuming they do, or else trying to "include" the code wouldn't work either.
    Another possible solution, depending on exactly what you're trying to acheive, is to apply the second Class to a symbol in the library and use that by placing it on the stage or accessing it through code. However, you haven't given us very much to go on, so it's really difficult to help you.

  • I was thinking about buy an 128GB SSD Macbook Pro, will it work with my external hard drive if i plugged it in through USB still?

    Well basically I've heard the hype about SSD and i was thinking about buying a mac with a 128GB SSD, but i was wondering, if i plugged in my 320GB external hard drive, would it work with an SSD mac? Or, do i need and internal hard drive for it to be compatible with my external one?

    You can replace your internal drive with a SSD and buy an external enclosure for your 320GB from OWC.
    No problems.
    Clinton

  • Mapping editor not working with Java 5 classes

    I have a small protoype web service which I wrote using Tomcat/Axis/Spring/Hibernate and using EJB3 annotations for the mappings. I want to port the persistence layer to Toplink.
    I installed Toplink 9.0.4.1 and added the toplink libraries to my project and implemented the DAO and the spring bean defs.
    I opened the mapping editor and created a project. When I try to add classes to it for mapping I get an error that it can't find the classes (even though I selected them from the chooser). I figured it might be that they were compiled with Java 5, so I switched the JRE_HOME in setenv.cmd to my Java 5 JRE. Now I can import the classes and see the attributes but when I click on any of them in the Navigator panel, the editor panel remains blank. If I now try to save, I get:
    java.lang.NullPointerException
         at oracle.toplink.workbench.ui.tools.CheckListModel.getRowCount(CheckListModel.java:119)
         at javax.swing.JTable.checkLeadAnchor(JTable.java:2949)
         at javax.swing.JTable.tableChanged(JTable.java:2993)
         at javax.swing.JTable.setModel(JTable.java:2827)
         at oracle.toplink.workbench.ui.tools.CheckList.initialize(CheckList.java:47)
         at oracle.toplink.workbench.ui.tools.CheckList.<init>(CheckList.java:26)
    It seems that the mapping workbench doesnt work with Java 5. What should I do?

    Ah, I see. I saw another post here stating that must use 10.1.3.

  • Work with an external hard drive

    Hi everyone. I use iMovie 6.0.3 a lot and I need to save the imported clips, but they are using up a ton of my disc space. Is it easy to save clips to an external drive, and then get iMovie to see them there and use them? I have a firewire external drive that is formatted to Mac OSX extended.
    Also, if I use a Firewire hub, can I plug my camera and drive in at the same time and have the import save right to the external drive, or do I have to import to my computer, then copy them to the external drive?
    Thanks in advance,
    Kevin

    BatmanFD wrote:
    .. Does the new version of iMovie (7.0) work with external hard drives in the same way? ..
    mainly
    iM08 has a very different concept - iMHD6 stored all data (camera imports, stills, music, ...) in one solid 'package' file. iM08 now has a Library (similiar as iPhoto), which contains all imports (ever), called 'Events', and small Projects, which can be made of any Events (e.g. you can use an import again and again in as many Projects you want.. )
    So, you can easiely locate all or just some Events (=huge files) on ext. HDDs. Locating Projects (=small files) to external drives is possible, but not recommended (HowTo on my site, karsten.schluter.googlepages.com ).
    A considerable workflow is, to buy some harddrives, and make a file management 'manually': store imports/Events by content (vacations, year 2008-10, birds, aliens...), each on a different drive - over the years you build a 'Library' of all your Recordings, and have easy access (plug 'n play).
    iM08 supports the cheaper usb2 drives.
    My workflow with iMHD6 is to erase any project after finishing; my 'raws' are on tape, my projects too + DVDs. With tapeless-camcorders you HAVE to store your recordings on some additional 'memory' = harddrives.
    for a beginning, you can use for sure the internal one, because you're allowed to de-locate any Event later to other drive(s) within iM08 (don't use the Finder to move Events!).
    happy movie making!

  • Will Migration Assistant work with an external drive?

    I'm upgrading the hd in my Powerbook and for various reasons have the new drive in an external enclosure. It's got a fresh OS installed and all I need to do now is copy all the data from my old drive that's still in the Powerbook to the new drive in the external enclosure. What's the best way to do this? I know I shouldn't just copy everything over and I got error messages using Disk Images. A friend suggested Migration Assistant but that only seems to want to work with complete computers, not external drives. I've got a G5 in the office too that I can employ if needed.
    I want to keep all my settings and prefs intact as I'm told Migration Assistant will do.

    As long as the Firewire hard drive is a bootable drive for Mac OS X it should work with the Migration Assistant. These two companies offer that kind of drive:
    http://www.macsales.com/
    http://www.cooldrives.com/
    While it doesn't matter for the machines you quoted, if you choose to migrate to a newer Intel Mac, it won't work. This article explains what to do in that case:
    http://discussions.apple.com/thread.jspa?threadID=435350&tstart=10
    Also, there is no such thing as a "Fresh install". This tip discussions what installation options exist:
    http://discussions.apple.com/thread.jspa?messageID=607614

  • Does Time Machine and Sleep Mode work with your external USB HD???

    I have a new iMac 10.7.3 with latest software updates.
    Do you have an external USB hardrive that works with Time Machine turned on and Energy Saver set at 10 minutes on the computer???
    If so which external USB HD are you using???
    So far I have not found one that works correctly. They seem to corrupt the external USB HD requiring a reformat of the drive each time.
    I need to buy one that works.
    Tom..........

    I am presently using four different brands of external drives with Time Machine on different Macs:
    Seagate
    Iomega
    Western Digital
    Maxtor (this is an old Firewire 400 drive)
    I never configured any of these drives specially for sleep or spin down. I just formatted them and then used them with Time Machine. The computers are set to sleep after various idle times raging from 10 minutes to 20 minutes. The box for "put hard disks to sleep when possible" is also checked.  Two are laptops and two are iMacs.
    I have never had any issues with any of these drives, and they've been used with Time Machine for over two years in some cases. That corruption you mention sounds unusual.
    Did you format the drives for use with a Mac before connecting them up for Time Machine? For instance, Mac OS Extended and GUID partition table? Some PC formats won't work, for instance If you select an NTFS or FAT-formatted drive, Time Machine prompts you to reformat the drive. If you have one of these, reformat the drive in Mac OS Extended (Journaled) format.
    I am suspecting you have a drive with one of the PC formats that isn't compatible with Time Machine.

  • Importing flash with AS3 external files

    developing a ui in flash for photo gallery which I am loading
    into dreamweaver.
    using as3 in flash to load external photo files so not all
    having to download on opening.
    have had no problem in dreamweaver with swfs with embedded
    jpgs.
    ui comes up in dreamweaver but not external files. even
    though when I open swf movie or the flash created html of same
    file, on its own, no prob.
    anyone run across this problem, jpgs are in same file as
    flash media, also dropped them into image file just in case that
    might work---no go
    any ideas ?

    Post a link to the page, please.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "pandorasboxtop" <[email protected]> wrote
    in message
    news:gajd7f$qpv$[email protected]..
    > developing a ui in flash for photo gallery which I am
    loading into
    > dreamweaver.
    > using as3 in flash to load external photo files so not
    all having to
    > download
    > on opening.
    > have had no problem in dreamweaver with swfs with
    embedded jpgs.
    > ui comes up in dreamweaver but not external files. even
    though when I open
    > swf
    > movie or the flash created html of same file, on its
    own, no prob.
    > anyone run across this problem, jpgs are in same file as
    flash media, also
    > dropped them into image file just in case that might
    work---no go
    > any ideas ?
    >

  • Can I work with a derived class from u0093ApplicationClassu0094

    Hello, I want to create a derived class from “ApplicationClass” for use in my Application, the problem is the function “SAPbouiCOM.SboGuiApi.GetApplication(-1)”, it return a COM object. If I do a specific cast to my own class (that derive from ApplicationClass), the metod give a COM exception and say that I can’t do a specific cast with a COM object.
    Can I do that cast? And How can I do it?
    I’m programming in C#.
    Thanks.

    I think that you can´t assign an object of the base class
    to an object of the derived class. I don´t know why you need to do that. With more information we could help you

  • Java-JSP working with packages and classes

    Hi everybody,
    I'm bearly new on Java-JSP developping and I wanted to know how Tomcat (for example) manage the imported packages and classes.
    The fact is I'm working on a project ('/bob') which use some packages that I don't see in the '/bob' directory. So, is that possible that '/bob' is downloading packages and classes from Internet to '/bob/download' virtual repertory and use it? If it is true, is it possible to override this download by making '/bob' project using local packages or classes (example : com.boblibrary.classes.util in '/bob/WEB-INF/classes/com/boblibrary/classes/util') instead of downloading it?
    Therefore, the '/bob' project is using bugged classes (that I think it downloads from Internet) which I can't correct.
    Thanks for your help.
    - Renaud

    Thank you for your answer, but I can't imagine where is physicaly the class that my project use and show me as http://localhost:8080/atlassian-jira-3.13.2/download/ressources/br.com.ecore.jira.plugin.projectViewPlugin:ProjectViewTabPanel/js/projectviewtabpanel.js. Where is that Javascript file suppose to be on my hard drive? Or where is that class 'br.com.ecore.jira.plugin.projectViewPlugin' suppose to be on my hard drive? If it is not dowloaded from the Internet.
    I have no trace of that class on 'atlassian-jira-3.13.2/', neither on 'jdk1.6.0_18/', 'jre6/' or 'apache-tomcat-5.5.28/common/classes/'.
    Thanks.

  • Working with ArrayList and classes

    Hi:
    I'm trying to create a program that adds and remove information to an ArrayList. I can't figure out the errors that I'm having. See if anyone can help me.
    import javax.swing.JOptionPane;
    import java.io.*;
    import java.util.*;
    public class StudentRegistration {
        class Name
           // String first = JOptionPane.showInputDialog(null,"Enter First Name","First Name", JOptionPane.QUESTION_MESSAGE);
           // String last = JOptionPane.showInputDialog(null,"Enter Last Name","Last Name", JOptionPane.QUESTION_MESSAGE);
            String first, last;
            Name(String first, String last)
                this.first = first;
                this.last =last;                   
            String getFirstName()
                return first;           
            String getLastName()
                return last;
        class Address
            String street, city, state, zipcode;
            Address(String street, String city, String state, String zipcode)
                this.street = street;
                this.city = city;
                this.state = state;
                this.zipcode = zipcode;
            String getStreet()
                return street;
            String getCity()
                return city;
            String getState()
                return state;
            String getZipCode()
                return zipcode;
         public class Student
            String id;
            Date date;
            Address address;
            Name name;
            Student (String id, Name name, Address address)
                this.id = id;
                this.name =name;
                this.address = address;
                date = new Date();
            String getId()
                return id;
        class Admissions
            ArrayList list;
            int i;
            boolean found;
            Admissions()
                list = new ArrayList();
            void addStudent(Student s)
                list.add(s);
            Object getStudent(int i)
                return list.remove(i);
            boolean Empty()
                return list.isEmpty();
            boolean getIndex(String id)
                int i, index;
                boolean found;
                while(i < index && !found)
                    Object o = list.get(i);
                    if (o instanceof Student)
                        Student s = (Student) o;
                        if (s.getId().compareto(id))
                            found = true;
                        else i++ ;
               return found;
        public static void main(String[] args)
            Admissions adm = new Admissions();
            Admissions drop = new Admissions();
            boolean cont;
            while(cont = true)
                  String input = JOptionPane.showInputDialog(null, "Enter Selection Number:\n\n 1 - Add Student\n 2 - Remove Student\n 3 - Print List\n 4 - Quit\n" ,"Sutdents Services", JOptionPane.QUESTION_MESSAGE);
                  int selection = Integer.parseInt(input);
                    switch (selection)
                    case 1:{
                        String first = JOptionPane.showInputDialog(null, "First Name:" ,"Sutdents Services", JOptionPane.QUESTION_MESSAGE);
                        String last = JOptionPane.showInputDialog(null, "Last Name:" ,"Sutdents Services", JOptionPane.QUESTION_MESSAGE);
                        Name name = new Name(first, last);
                        String street = JOptionPane.showInputDialog(null, "Street Address:" ,"Sutdents Services", JOptionPane.QUESTION_MESSAGE);
                        String city = JOptionPane.showInputDialog(null, "City:" ,"Sutdents Services", JOptionPane.QUESTION_MESSAGE);
                        String state = JOptionPane.showInputDialog(null, "State:" ,"Sutdents Services", JOptionPane.QUESTION_MESSAGE);
                        String zipcode = JOptionPane.showInputDialog(null, "Zip Code:" ,"Sutdents Services", JOptionPane.QUESTION_MESSAGE);
                        Address address = new Address(street, city, state, zipcode);
                        String id = JOptionPane.showInputDialog(null, "Student ID:" ,"Sutdents Services", JOptionPane.QUESTION_MESSAGE);
                        Student s = new Student(name, address, id);
                        adm.addToList(s);
                    case 2:{
                        if(!adm.Empty());
                            String id = JOptionPane.showInputDialog(null, "Student ID:" ,"Sutdents Services", JOptionPane.QUESTION_MESSAGE);
                            if(adm.getIndex(id))
                                index = adm.index();
                                drop.addToList(adm.getStudent(index));
                    case 3:{
               case 4: break;
               default: JOptionPane.showMessageDialog(null,"Wrong selection.");
            System.exit(0);
        

    yes i did but it didn't changed anything..... but I fixed them by making the classes static. Logically is ok but I 'm not sure really if it 's ok. Now I have only one error two times here is the code again and the output...
    import javax.swing.JOptionPane;
    import java.io.*;
    import java.util.*;
    public class StudentRegistration {
        public static class Name
            String first, last;
            Name(String first, String last)
                this.first = first;
                this.last =last;                   
            String getFirstName()
                return first;           
            String getLastName()
                return last;
        public static class Address
            String street, city, state, zipcode;
            Address(String street, String city, String state, String zipcode)
                this.street = street;
                this.city = city;
                this.state = state;
                this.zipcode = zipcode;
            String getStreet()
                return street;
            String getCity()
                return city;
            String getState()
                return state;
            String getZipCode()
                return zipcode;
         public static class Student
            String id;
            Date date;
            Address address;
            Name name;
            Student (String id, Name name, Address address)
                this.id = id;
                this.name =name;
                this.address = address;
                date = new Date();
            String getId()
                return id;
        public static class Admissions
            ArrayList list;
            int i, index, lastindex = list.size();
            boolean found;
            Admissions()
                list = new ArrayList();
            void addStudent(Student s)
                list.add(s);
            Object getStudent(int i)
                return list.remove(i);
            boolean Empty()
                return list.isEmpty();
            boolean getFound(String id)
                while(i < lastindex && !found)
                    Object o = list.get(i);
                    if (o instanceof Student)
                        Student s = (Student) o;
                        if (s.getId().compareTo(id) == 0)
                            found = true;
                        else i++ ;
               return found;
            int getIndex(String id)
                while(i < lastindex && !found)
                   Object index = list.get(i);
                    if (index instanceof Student)
                        Student s = (Student) index;
                        if (s.getId().compareTo(id) == 0)
                            found = true;
                        else i++ ;
                 return index;          
        public static void main(String[] args)
            Admissions adm = new Admissions();
            Admissions drop = new Admissions();
            boolean cont;
            while(cont = true)
                  String input = JOptionPane.showInputDialog(null, "Enter Selection Number:\n\n 1 - Add Student\n 2 - Remove Student\n 3 - Print List\n 4 - Quit\n" ,"Sutdents Services", JOptionPane.QUESTION_MESSAGE);
                  int selection = Integer.parseInt(input);
                    switch (selection)
                    case 1:{
                        String first = JOptionPane.showInputDialog(null, "First Name:" ,"Sutdents Services", JOptionPane.QUESTION_MESSAGE);
                        String last = JOptionPane.showInputDialog(null, "Last Name:" ,"Sutdents Services", JOptionPane.QUESTION_MESSAGE);
                        Name name = new Name(first, last);
                        String street = JOptionPane.showInputDialog(null, "Street Address:" ,"Sutdents Services", JOptionPane.QUESTION_MESSAGE);
                        String city = JOptionPane.showInputDialog(null, "City:" ,"Sutdents Services", JOptionPane.QUESTION_MESSAGE);
                        String state = JOptionPane.showInputDialog(null, "State:" ,"Sutdents Services", JOptionPane.QUESTION_MESSAGE);
                        String zipcode = JOptionPane.showInputDialog(null, "Zip Code:" ,"Sutdents Services", JOptionPane.QUESTION_MESSAGE);
                        Address address = new Address(street, city, state, zipcode);
                        String id = JOptionPane.showInputDialog(null, "Student ID:" ,"Sutdents Services", JOptionPane.QUESTION_MESSAGE);
                        Student s = new Student(id, name, address);
                        adm.addToList(s);     //The error is here. It says that can't find add.ToList
                    case 2:{
                        if(!adm.Empty());
                            String id = JOptionPane.showInputDialog(null, "Student ID:" ,"Sutdents Services", JOptionPane.QUESTION_MESSAGE);
                            if(adm.getFound(id))
                               int index = adm.getIndex(id);
                               drop.addTolist(adm.getStudent(index));  //And also here. Same error
                    case 3:{
               case 4: break;
               default: JOptionPane.showMessageDialog(null,"Wrong selection.");
            System.exit(0);
    }This is in the output window:
    init:
    deps-jar:
    Compiling 1 source file to C:\Java\StudentRegistration\build\classes
    C:\Java\StudentRegistration\src\StudentRegistration.java:184: cannot find symbol
    symbol : method addTolist(StudentRegistration.Student)
    location: class StudentRegistration.Admissions
    adm.addTolist(s);
    C:\Java\StudentRegistration\src\StudentRegistration.java:195: cannot find symbol
    symbol : method addTolist(java.lang.Object)
    location: class StudentRegistration.Admissions
    drop.addTolist(adm.getStudent(index));
    Note: C:\Java\StudentRegistration\src\StudentRegistration.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    2 errors
    BUILD FAILED (total time: 0 seconds)

Maybe you are looking for

  • Trial balance creation

    hello experts,   Has anyone ever worked created a trial balance report using 11g.. My boss just gave me an assignment to create one, I am not sure where to start. Any idea on this please? I know what  a TB is in terms debits and credits. I just haven

  • Iphoto Libraries are to large. Next step.

    Weighing my options, trying to reach a final decision on what to do next. My Iphoto libraries are 350 GB I am ready for new editing tools. I want to have an organized library and when I return to my photos I need to be productive with my time. I have

  • Syncing issues on Sky drive

    Hi, I cannot be able to sync documents on skydrive to the shortcut on my PC.I am currently using sharepoint 2013.When i try to sync, i get the error "We can't sync this library because it's too large. For more information, please see SkyDrive Pro hel

  • Queue Issue, reentrant/multiple calls

    I have a slight problem using queues. I've read the posts that are close to my problem but i haven't figured out how to solve my case. I have a "main window" where i want the queue to show constantly. Then i have 5 places that can add values to a sin

  • Video footage pulsating

    I videoed a wedding outside and when the family walks down the isle to be seated as I followed them with the camera and view it on the t.v. when they pass by the video looks jerky and pulsating (like when you have a still image and add movement to it