Passing argument to, when using one class for multiple assets

I had a class that I was passing a simple argument to like so:
var quiz_1_2:CaseStudyQuiz = new CaseStudyQuiz(2);
addChild(quiz_1_2);
I now would like to use this class for multiple MCs in my library. I thought I could let Flash create a class for each of them and specifying the CaseStudyQuiz class as the Base class. When I do that, I get the following error:
1136: Incorrect number of arguments.  Expected 0.
Obviously this is because the class created by flash does not except an argument. Does that mean, I would have to create a seperate class for each of the movies that use that class? And if so, what would I have to do in that class for it to except the parameter and pass it on to my base class?
Thank you very much for any help with this!!!

use the super() function and pass your parameter.  but you still might get a runtime error but i don't think that will cause a problem.

Similar Messages

  • Shall I use one datasource for multiple connection pool?

    Hi,
    I need to clarrify that, Shall I use one Datasource for multiple connection pool in distributed transaction?
    Thanks with regards
    Suresh

    No. If its transactions across multiple databases you should use different datasources.

  • To use one SessionInfo for multiple frames

    how to use one SessionInfo for master frame and other frame the detail
    Thanks for your reply.

    You can instantiate the SessionInfo and other dataproducer objects in frame1 and bind them to controls in the first and second frames.
    If you plan to change/execute queries pass the sessionInfo instance to the second frame.
    Hope this helps.
    Sathish
    null

  • How to set username and password when using Proxy class for SOCKS5?

    Hi all,
    I use the proxy class for SOCKS5, so need to set username and password, I don't find where can I set the value. whether the API support it.
    Thanks in advance!

    System.getProperties().put("proxySet", "true");That does nothing. Remove.
    System.getProperties().put("proxyHost", getProxyHost());
    System.getProperties().put("proxyPort", getProxyPort());You should be setting socks.proxyHost and socks.proxyPort here.
    System.setProperty("java.net.socks.username", getSOCKSUsername());
    System.setProperty("java.net.socks.password", getSOCKSPassword());
    Authenticator.setDefault(new ProxyAuth(getSOCKSUsername(), getSOCKSPassword()));You either need the first two lines or the third, not both. See the last link posted above.
    1. After I set the value, I connect internet by proxy, how the proxy server knows the values?Because Java tells it during the SOCKS handshake.
    2. In my app, I just set the values in the system properties, then JVM does remaining work? Remaining work is not concerned?Should be OK unless you have to connect to a different SOCKS proxy from the same JVM, but that kind of thing is problematic anyway due to the curious Authenticator design which is set globally, not per connection as you might expect.

  • HT1495 how to delete apps when using one account for iphone 4s and ipod4, can delete from phone but not ipod

    How do we delete apps from ipod 4 when using same account as iphone 4s, we can delete from the phone but not the ipod, and when i get an app on my phone it automatically comes up on the ipod and visa versa, now ipod is full,

    Read the article from which the thread was posted, it clearly defines how to use multiple iDevices on a single computer.
    Sharing an Apple ID is not an issue.

  • How do I use one layer for multiple pages?

    I've been using Photoshop to create a series of web pages. I have about 20 such pages right now.
    Unfortunately, I need to change the navigation menu that is found on all 20 pages.
    To make these changes, do I need to change 20 different files? Or is there a way to link one layer group to multiple PSD files so that editing it once results in it changing on all 20 pages?
    Thanks,
    C

    You'll have to make some sort of change to each document, but it should only take a few minutes when there's only 20 of them. You edit the group in one, then for each of the others, simply duplicate or drag the edited group into it and delete the old group.
    There is also the option of structuring your workflow with Smart Objects which can be refreshed in each document with a common document containing only the menu group. For linking of Smart Object content, there is a third party plug-in but I don't know whether it is reliable.

  • How do I use one library for multiple iPods

    I have three girls that recently got iPod nano's. I would like to use only one library for their music etc. How do I do this. when I installed the first one it worked great. Then when I installed the second one it won't recognize the first one. Then when I went back to factory settings on the first and synched her music the second one is not recognized. Help......

    Sorry, guess I am not using the "technical lingo". I already had itunes on my computer for a medical review course that I purchased to study for a certification exam. When nano #1 was purchased I hooked it up, registered it, and synched music to it. When my daughter tried to play songs, the songs titles and songs were mixed (song didn't match title). I hooked it up to the computer. It said it needed to be formatted. So I did and reregistered and synced the songs back on. Everything ok. Second nano hooked up, registered, named different name than #1, synched with the music she wanted. Tried to hook up #1 and it didn't recognize the nano. I went to the website and found out how to "find" it on the computer, followed the instructions to find it, and again it had to be "formatted" to have it recognized. I was again able to sync her music. Will I have to do this everytime I try to sync more music? that could be a real pain!
    thanks for any help for this sometimes electronically challenged mom.

  • Using one song for multiple menus

    I know you can assign an audio file to each meu, but Is it possible to use one audio file that continues to play when you change menus?
    Thanks for your help.

    So your saying you can have, let say, 3 buttons on menu 1. One of these button is a "next menu" button. Pressing this will take you another menu without a break in audio? What command goes into the cell command?
    By spec all cell need to be non-seamless if there is a command so I don't think its possible. I always love to be wrong though.
    Here's a relevant thread that might help
    http://dvdafteredit.com/node/1024

  • Using one library for multiple computers and accounts (not store accounts)

    Okay, we currently have four macs in the house. One was recently bought: i7 iMac (late 2009), another is dying: (mid 2005 iMac), another is going somewhere else: (late 2006 iMac) and another is a laptop: C2D MBP (late 2008). We might add another computer into the mix some time later.
    Anyway, what I want to do is have one iTunes library which all of the computers can access (even guest's/friend's computers). We have a Time Capsule, and as I have heard one can make the TC the HDD for the iTunes library, I thought it best for it to be there.
    The only thing is, how can each computer (and the possible multiple accounts) each access the same library, without duplicating and messing anything up? Is that possible? If it is too hard for multiple computers to do this, I would still want the (late 2009) iMac to be able to use the same library for the two accounts on it.
    Thanks.

    Make sure everything you want to share is on the centralized drive (music, video, and books, but if any of you have mobile devices, keep the apps on your local drive). Mount the drive on your computer. (Remember, from now on you must do this before starting iTunes.) If iTunes isn't running, start it now.
    At the moment iTunes thinks the library is on the local computer and has all the music on it so that has to be changed. Click on Music in the left window pane, select all, and delete. This deletes all the music from the library and, if you choose, from the computer too. (Until you are sure this set-up is to your liking, don't delete the music from the drive.) Now go to Preferences and select the Advanced tab. Set iTunes to look at the music folder on your shared drive. And finally, select File>Add to Library to repopulate your iTunes library. This could take a while if you have a large music collection.
    Since you changed the music location, anything that is added to one person's library will be saved onto the shared drive so it isn't too much of a hassle to manually add music. You'll have to rebuild playlists which is a minor hassle but it’s a one time deal.

  • Using one prompt for multiple fields in a report

    We are using Oracle CRM on Demand, Release 16.
    I have a report I am building that involves four different date fields. I'd like to give the user the ability to enter a date range for the date fields via a Prompt when the report executes. But the date range would be the same for all four date fields. Is there a way to capture the date range in one prompt, but use that same range in all four date fields in the report?

    I recommend to use two dashboard prompts, one for each date field of your range and each will set a presentation variable.
    Then use the FILTER metric function and reference the presentation variable.
    Best Regards,
    Christian

  • OpenScript 9.1 - use one script for multiple environments

    Greetings everyone.
    I am using Openscript 9.1 on Windows XP. I want to record a script on a web application hosted in one environment and reuse the same script (with minimal re-work) against the same web application hosted in a different environment. For example, record in development and reuse in test and production.
    From what I read on the Internet, the only way to do it is to find the URL in the Java code of the script and replace it as needed. Is there a more sophisticated way of doing this? Thanks in advance for your time and response.

    This one could work:
    WITH t AS (SELECT ROWNUM rn,
                      ' abcdefghijklmnopqrstuvwxyz' char_table
                 FROM all_objects)
    SELECT 1000 + ROWNUM - 1 empid,
           'king ' || char_counter,
           100 + (ROWNUM - 1) * 100 sal
      FROM (SELECT char_counter
              FROM (SELECT SUBSTR(t1.char_table, t1.rn, 1) || SUBSTR(t2.char_table, t2.rn, 1) char_counter
                      FROM t t1,
                           t t2
                     WHERE t1.rn <= 27
                       AND t2.rn <= 27
                       AND t2.rn >  t1.rn
             ORDER BY char_counter
    WHERE ROWNUM <= 100
    ; C.

  • Use one parameter for multiple markers in PreparedStatement?

    I have a prepared statement with a where clause of the following form:
    where x = ? or y = ?
    where the ? for x and y is the same literal value. Is there a more elegant way to handle this other than what I'm doing now (which I think is pretty clumsy):
    pstmt.setString(1, aValue);
    pstmt.setString(2, aValue);
    Obviously, I'd like to only set the value once, and have it used both places.

    No. If its transactions across multiple databases you should use different datasources.

  • When using quick edit for compressed CSS, edge code does not jump to the particular class but displays the whole thing. This destroys the whole purpose. Does anyone know a fix or extension for that.

    When using quick edit for compressed CSS, edge code does not jump to the particular class but displays the whole thing. This destroys the whole purpose. Does anyone know a fix or extension for that.

    I suspect that beautify doesn't touch CSS that it is not aware  of (e.g. new properties/syntaxes, vendor-prefixes). See if there's a newer version available.
    Which compressed CSS are you using? Most CSS libraries come with both compressed and original stylesheets, so use the original one during development/debugging, and switch to the compressed one for deployment.
    Randy

  • Use one account for apps and other for itunes match

    Hello everybody
    My question today is quite simple. I use one account for apps and tv shows, but inwant to use a different itunes account for purchasing itunes match. How can I use them both on my devices? Will it be asking for my user-pass each time i play a song? What other thing should i consider?
    Thank you in advance

    I would strongly recommend you not do this.  You will regret it.
    I have played with this issue a lot.  You have to remain signed into match in order for it to show up on your phone. If you sign out to purchase an app or redownload one from your appstore id you use then match will be removed from your phone and when you go into your music app the icloud will not be there.  You then have to go sign back out of the store id you used for your app purchase and then sign back into match and everything will have to go though the download to your device process again.  This really is not what you want to do.
    Sign up to match with the apple id that you know you will use the most or has the most purchased items and use that for all purchases, i.e. books, apps, movies, and music.  You don't want to go though the other process.
    Plus apple will start not letting you sign into match because you signed out and back in, in to short a period of time.
    all store purchases on an iphone are linked to the store id.  if you sign out of your match id on the appstore and sign into another account to purchase an app then itunes match will sign out in the music app.  You can't have two store id's signed into your iphone at the same time.  They are all linked together.

  • When using rabbitmq-jms for vFabric RabbitMQ javax.jms.Message.getJMSDestination does not return the actual destination when it is received from a consumer listening on a Topic with a wild card

    When using rabbitmq-jms for vFabric RabbitMQ javax.jms.Message.getJMSDestination does not return the actual destination when it is received from a consumer listening on a Topic with a wild card. I have tested with both 1.0.3 and 1.0.5 clients with RabbitMQ 3.1.5.
    I was wondering if the community was aware of this problem and if there are any workarounds? If not what is the proper channel to file a bug report. An example code snippet is below. The test fails because the TextMessageMatcher expects the destination passed in on construction (second parameter) to equal the desination on the message received (aquired from getJMSDestination).
            Mockery context = new Mockery();
            final MessageListener messageListener = context.mock(MessageListener.class);
            final Latch latch = new LatchImpl();
            final String prefix = "test" + System.currentTimeMillis();
            context.checking(new Expectations() {
                    oneOf(messageListener).onMessage(with(new TextMessageMatcher("MSG1", prefix + ".1234")));
                    will(new CustomAction("release latch") {
                        @Override
                        public Object invoke(Invocation invocation) throws Throwable {
                            latch.unlatch();
                            return null;
            final Connection connection = createConnection(null, null);
            Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
            connection.start();
            Topic wildcardTopic = (Topic) getInitialContext().lookup(prefix + "." + "#");
            Topic destination = (Topic) getInitialContext().lookup(prefix + ".1234");
            final MessageConsumer consumer = session.createConsumer(wildcardTopic);
            consumer.setMessageListener(messageListener);
            MessageProducer producer = session.createProducer(null);
            producer.send(destination, session.createTextMessage("MSG1"));
            latch.await(5000);
            connection.close();
            Thread.sleep(5);
            context.assertIsSatisfied();

    Check where your MDB sends the [response] messages to.

Maybe you are looking for