Using classes and access to the timeline...

Hello

I'm trying to externalize a class and have problems to make my class to work. In the flash timeline, I have this function call:

CreateText(lessonTitle, "Headline_1", textWidth, textX, textY - 5, 0xFCAF17, 54, 1, true, 0);

Which calls an external class:

package {

    import flash.display.*;
    import flash.text.*;

    public class CreateTextBlock extends MovieClip 
    {

        public function CreateTextBlock()
        {
                  // init           
        }

        public function CreateText(textString:String, 
                                                  textName:String, 
                                                  textWidth:Number, 
                                                  textX:Number, 
                                                  textY:Number, 
                                                  textColor:int, 
                                                  textSize:int, 
                                                  fontStyle:int, 
                                                  textWordWrap:Boolean, 
                                                  myLeading:int):void              
        {            
               trace(textString);
               trace(textName);
               trace(textWidth);
               trace(textX);
               trace(textY);
               trace(textColor);
               trace(textSize);
               trace(fontStyle);
               trace(textWordWrap);
               trace(myLeading);
        }        
     }
}

My function call does not recognize CreateText(), but acknowledges CreateTextBlock, however, if my function CreateText and rename it ChangeTextBlock, I still get the error message:


1137: Incorrect number of arguments.  Expected no more than 1.

Can someone help me to refactor this to a working class?, or highlight my default?, if all goes well, it is obvious platently.

Thank you very much

Chipleh

You are welcome

Tags: Adobe Animate

Similar Questions

  • manage all folios and access all the Analytics

    Hello and happy new year

    We have an urgent question about dps:

    We create an adobe id different for each application we build.

    by downloading folios associated with a certain app to the folio Builder we need to connect with this specific adobe ID?

    or can we use 1 adobe ID to manage all folios for all applications.

    which is the best way to go, in the long term to manage all folios and access all the Analytics.

    Please let us know as soon as possible.

    Ediz

    one account per app. Yes, you have to identify you with this Adobe ID to create content for this App. unless you intend to create application kiosk (one that shows all folios of all content), this is the right approach.

  • Sliding to organize diapers "forward and backward" in the timeline?

    I'm puzzled as to why you can't move layers up and down on the timeline to arrange "forward and backward". I can click on the submenu to move from front to back. Do you want to add one?

    I had this same problem. Make sure that you drag in the ASSETS Panel and not the timeline. It is redundant and a bit confusing if you're used to working in AE or Flash.

  • Why use ins and out of the points for the clips?

    Hello

    I use PPCS3 and never understood the need for the ins and points for the clips.

    Always just, I took my clip (no matter how long or short) and he parried on the chronology of the sequence.

    Is this just another method or y at - it something I'm completely missing when it comes to the ins and outs?

    I guess it depends on what you are used to doing.

    Any guidance here on where the ins and outs made a big difference would be appreciated.

    Thank you

    Simon

    Simon,

    You are using and the Points on the instances of your footage on the Timeline. You're just doing it on the timeline, instead of in the Source monitor. It's a matter of how you want to work. PrPro offers many ways to do different operations. We could also use the monitor fitting to do this, if that's how they want to.

    Good luck and we hope this helps,

    Hunt

  • I do my job to the computer on a MAC computer. I want to create a document using Pages and then convert the document to PDF and send a group email. I want to send the PDF using the pdf for each receiver icon must click the icon to open t

    I do my job to the computer on a MAC book PRO. I want to create a document using Pages and then convert the document to PDF and send a group email. I want to send the PDF using the pdf for each receiver icon must click the icon to open the document. My problem is the document does not show the icon, but rather the document is already open. I spoke with 2 Apple. 'Experts' care and can help me. Can someone tell me what to do?

    It's a question of how the recipients e-mail programs deal with attachments. Many e-mail programs will open all the files they can handle, including files jpg and PDF, by default, and if the recipient has not changed that there is nothing you can do about it. The only solution is to the compress first, then it will be delivered as an attachment, allowing the recipient to decompress and open it.

  • How to use headphones and speakers at the same time

    I want to use headphones at the same time that I use the speakers.

    I am hard of hearing and need the LOUD volume. When others are watching a film, projected on HDTV, they won't let me turn the volume up to where I need it, which is why, headphones and speakers at the same time.

    I use Windows 7, I want to stick with Windows 7, so I want a Windows 7 solution.

    If there is no solution for Windows 7 and there is a solution using Windows 10, then and then only, I will be upgrading to Windows 10.

    Using headphones and speakers was possible under Windows XP. I think that a kid at Microsoft, with a regular audience, thought this feature was redundant and removed. Large.

    Macs will play through the headphones and speakers, so maybe it's time to buy a Mac!

    Hi Bob,

    Thanks for posting your query on the Microsoft Community.

    With the description, I understand that you want to use headphones and speakers at the same time on your Windows 7 computer. I will certainly help you get this fixed number.

    I suggest you check the suggestions contained in below mentioned thread and check if this is useful:

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-pictures/headphones-speakers-at-the-same-time/7ed31bcf-3762-430D-9c9f-e6967d670d0e

    Hope this information is useful. Please come back to write to us if you need more help, we will be happy to help you.

  • I am a beginner using photoshop and I hid the layer tool and can not find a way to get it back... Please help

    I am a beginner using photoshop and I hid the layer tool and can not find a way to get it back... Please help

  • Use certificate and form to the same application of ADF basic authentication

    Hello

    We have an application that needs to use time based authentication CLIENT-CERT and FORM.

    I have configured a domain with Client certificate requested and applied, generated a client certificate, created an Asserter custom identity with a Login Module and successfully recorded in our application using the CLIENT-CERT. , our customer wants to use the FORMS authentication at the same time with the CLIENT-CERT authentication type.

    The idea only I had was to use a servlet proxy deployed on another instance of WebLogic (10.3.6) that uses the CLIENT-CERT authentication that will forward requests to the main ADF application using classic FORM based authentication. The problem with this approach is that the proxy servlet is accessible using HTTPS and the communication between himself and the application of the ADF is made by using HTTP, so the client browser is redirected to HTTP on first access. For example, if I used Apache to proxy requests that would have been easily solved using RequestHeader set true WL-Proxy-SSL.

    You have any other suggestions on how to achieve this?


    Thank you in advance,


    Ionut Cristian Paraschiv

    Multichannel Solution Architect

    Advahoo Business Solutions

    I found a work around for this problem:

    -l'application uses FORMS authentication in function

    -l'application is deployed on a server managed with Client Cert has requested and applied (only clients with certificates will connect over HTTPS)

    -the login page has only one input for the password text

    -in the bean of login, in the doLogin() method page, we can get the certified client and get the username with a custom class of UserNameMapper

    Object certChain = request.getAttribute ("javax.servlet.request.X509Certificate");

    Certificate CERT [] = certChain (certificate []);

    X509Certificate cert = (X509Certificate) CERT [0];

    ... to get the user name

    Ionut Cristian Paraschiv

    Multichannel Solution Architect

    Advahoo Business Solutions

  • Storage and access to the values of the pageFlowScope at the bean

    Using JDeveloper 11.1.1.4.0

    Hi again,
    I read somewhere that store parameter values in a bean is a good practice, now I wonder. I did this and 'declared' this bean to my workflow bounded as pageFlowScope. Now, I need to access the values in another bean "method (scope of application) and cannot get them." If I would have just used EL #{pageFlowScope.variable1} I know how access (as in my code below), but since they are in a bean I can't find the right way to retrieve the values. Is it possible and how?
        <managed-bean id="__3">
          <managed-bean-name id="__2">ViewAmtsParameters</managed-bean-name>
          <managed-bean-class>tax.viewamtsowedtreetbl.view.ViewAmtsParameters</managed-bean-class>
          <managed-bean-scope id="__4">pageFlow</managed-bean-scope>
        </managed-bean>
    
        // Get access to the adf faces context for page flow scope
        AdfFacesContext adfctx = null;
        adfctx = AdfFacesContext.getCurrentInstance();
        BindingContainer bindings = getBindings();
        OperationBinding operationBinding =
            bindings.getOperationBinding("ExecuteWithParams");
        // Set the parameters for the query
        operationBinding.getParamsMap().put("cid",
                                            adfctx.getPageFlowScope().get("ViewAmtsParameters.clientIdParam"));
        operationBinding.getParamsMap().put("can",
                                            adfctx.getPageFlowScope().get("ViewAmtsParameters.canParam"));
        operationBinding.getParamsMap().put("asofdate", newValue);
        System.out.printf("first execute parms  %s   %s      %s \n",
                          operationBinding.getParamsMap().get("cid"),  -- returned null
                          operationBinding.getParamsMap().get("can"), -- returned null
                          operationBinding.getParamsMap().get("asofdate"));
    I also tried to use accessors of the bean of the pageFlowScope, which gives me an error indicating that the access is forbidden.

    Thanks again in advance.
    Troy

    "" "You're almost there. '" You cannot directly access the bean inside bean attributes. The pageFlowScope card allows you to access the bean itself. Once you have the bean, you can use their getter to get the attributes.
    Or you use the EL (as you use it on the page) and evaluate it for the value:

    
    public static Object resolveExpression(String expression)
        {
            try
            {
                FacesContext facesContext = FacesContext.getCurrentInstance();
                Application app = facesContext.getApplication();
                ExpressionFactory elFactory = app.getExpressionFactory();
                ELContext elContext = facesContext.getELContext();
                ValueExpression valueExp =
                    elFactory.createValueExpression(elContext, expression, Object.class);
                return valueExp.getValue(elContext);
            }
            catch (Exception e)
            {
                e.printStackTrace();
            }
            return null;
        }
    
    public void YOURMETHOD()
    {
        AdfFacesContext adfctx = null;
        adfctx = AdfFacesContext.getCurrentInstance();
    
        Map pageParams = adfctx.getPageFlowScope();
        // assuming the class of your bean class is ViewAmtsParametersBean and the name you've given the bean is "ViewAmtsParameters"
        ViewAmtsParametersBean parambean = (ViewAmtsParametersBean) pageParams .get("ViewAmtsParameters");
    
        //an other way to access the bean attributes is to use EL
        String strIdParam = (String) resolveExpression("#{pageFlowScope.ViewAmtsParameters.clientIdParam}");
    
        BindingContainer bindings = getBindings();
        OperationBinding operationBinding =
            bindings.getOperationBinding("ExecuteWithParams");
    
        // Set the parameter for the query
        operationBinding.getParamsMap().put("cid", parambean.getClientIdParam());
        operationBinding.getParamsMap().put("can", parambean.getCanParam());
    
        operationBinding.getParamsMap().put("asofdate", newValue);
        System.out.printf("first execute parms  %s   %s      %s \n",
                          operationBinding.getParamsMap().get("cid"),
                          operationBinding.getParamsMap().get("can"),
                          operationBinding.getParamsMap().get("asofdate"));
     }
    

    Timo

  • Unload the loader and continue on the timeline

    I used the loader class to read an external .swf file. When it's over, I need to stop it and continue to the next image of the screenplay for the original film. I can load and unload, but how to I download it after that she has played and will continue to frame 2 of the timeline?

    var myLoader:Loader = new Loader();
    myLoader.x = 150;
    myLoader.y = 75;

    myLoader.load (new URLRequest ("movie.swf"));
    addChild (myLoader);

    myLoader.contentLoaderInfo.addEventListener (Event.COMPLETE, onComplete);

    function onComplete(e:Event):void {}
    myLoader.unload ();
    this.gotoAndPlay (2);
    }

    With this code, it jumps the film loaded and goes straight to the frame 2.

    Thank you!

    var myLoader:Loader = new Loader();
    var loadedSWF:MovieClip;
    var tl:MovieClip =;

    myLoader.x = 150;
    myLoader.y = 75;

    myLoader.load (new URLRequest ("movie.swf"));
    addChild (myLoader);

    myLoader.contentLoaderInfo.addEventListener (Event.COMPLETE, onComplete);

    function onComplete(e:Event):void {}

    loadedSWF = MovieClip (myLoader.content);
    checkPlayProgress();
    }

    function checkPlayProgress() {}
    tl.addEventListener (Event.ENTER_FRAME, currentFrameF);
    }

    function currentFrameF(e:Event) {}
    {if(loadedSWF.currentFrame==loadedSWF.totalFrames)}
    tl.removeEventListener (Event.ENTER_FRAME, currentFrameF);
    tl.gotoAndPlay (2);
    }
    }

  • Political dynamic VPN access and access to the administration

    Hi all

    I'm testing a scenerio with an ASA 5520 so he could authenticate VPN users against and an environment Active Directory more access to management as well. I created a dynamic access on the ASA policy indicating that, if you are a member of the Active Directory 'Managment' group continue. I have chagned the DefaultAccessPolicy to "Finish." With it, users could not connect VPN because they are not a member of this group, but access to manage the ASA is allowed due to this policy.

    Is there a way through the use of dynamic access policies I can afford access to the administration (SSH, AMPS, etc.) by matching to membership in a group and will allow normal users to VPN in successfully, but not give them access to the management of the ASA?

    I just try this but it seems that I should be able to swing that?

    Thaks in advance.

    Hello

    You can try to apply the DAP and configure the filter ACL network. allowing only the protocols you want to that they can access.

    Kind regards

    Anisha

    P.S.: Please mark this thread as answered if you feel that your query is resolved. Note the useful messages.

  • How can I change the login email address and access to the features of Windows 8?

    Original title: I accidentally entered a wrong email across to the top of the upgrade to windows 8 and now I can't access all the features of windows 8.

    When you install the upgrade for windows 8 he asked for my email address.  I misspelled my domain name, which causes it have instructions or messages will in the vast desert of never never land.  I need to check my email to make the apps work, but given that the email is valid I can't do that.  I need to know how to change the login email address in windows 8 so that I can go ahead and verify my account.

    Hi I also had this problem but I have used the local account and was able to access all applications with my correct email. I hope this helps!

  • What is the meaning of the OPA session tables in Siebel for OPA? That is to say why they were created when they should be used? and what was the first thought behind the creation of tables of session?

    Hi all

    I wanted to know best practices regarding the use of the tables of session OPA? that is, what was the initial logic of creating tables of session? where we should use them and why? also can you please argue for and against about two approaches mentioned below

    Method 1: Save and reterieve OPA session data tables using session ID and case ID?

    Approach 2: Save data in Siebel database tables and just use reterieve case Id Siebel data and save the back.

    Thanks for your replies.

    Session tables are there to allow easy storage of the results of an interview of the OPA. It can be used to extract data from an interview, but probably more useful as an archive of past interviews. Is it possible to load a previous interview in the determinations of the Web from this table.

    1. This can be very useful to resume a partially completed interview.

    2. it can be used as verification of de facto mechanism to see what has been entered in an interview.

    In general I prefer to approach 2 where there are intercepted the incoming data to an interview in a before handler registration and then save the data you need from the interview in the location that you must save it.

  • How to use substr and instr, where the line of input Multi text

    Hi all

    with

    data in the form of)

    Select ' Mary America.1234 Southridge Park Dr... Samna Lorie.MO.31234..' double val

    Union of all the

    Select 'Bill Johnson.Apartment 3 b. Sterling.VA.20166.3 Plaza Falke' of the double

    )

    Select

    regexp_substr (shipping_instructions, "[^ #] +' 1, 1") name

    , regexp_substr (shipping_instructions, "[^ #] +' 1, 2") address

    , regexp_substr (shipping_instructions, "[^ #] +' 1, 3") city

    , regexp_substr (shipping_instructions, "[^ #] +' 1, 4") State

    , regexp_substr (shipping_instructions, "[^ #] +' 1, 5") zip

    , regexp_substr (shipping_instructions, "[^ #] +' 1, 6") County

    FROM (select REGEXP_REPLACE (val, ' \.)) () [^.])', ' #\1 ") data shipping_instructions)

    (1)'Mary America.1234 Southridge Park Dr... Samna Lorie.MO.31234..'

    (2)'Bill Johnson.Apartment 3 b. Sterling.VA.20166.3 Falke Plaza. »

    "Mary America. 1234 Southridge Park Dr. Samna Lorie. MO.31234..'

    NAME ADDRESS CITY ZIP County SATE

    ---------                  --------                                ------------           ------           -------    -- -----

    Married America 1234 Southridge Park Dr.    Samna Lorie MO 31234  NULL VALUE

    "Bill Johnson. Apartment 3B. Sterling. VA. 20166. Falke Plaza 3... "

    NAME ADDRESS CITY ZIP County SATE

    ----------------      -----------------        -------       -----        ---         --------

    Bill Johnson apartment 3B Sterling, WILL 20166 3 Falke Plaza.

    Problem

    ---------

    (1) if the value, if the County (if null) value then it shows the ZIP with dot's (.) value, in the 31234 above..,.

    How to solve this problem?

    (2) another possible to fix the code, I want to use substr and InStr.

    (3) who is the best approach?

    Conditions:

    --------------

    (1) shipping_instructions column has the value with "Mary America.1234 Southridge Park Dr... Samna Lorie.MO.31234... »

    This means it combined all the similar name, address, city, State, zip

    (2) we insreted in the table separately.

    =========================

    / * Use Substr and Instr * /.

    =========================

    I used substr and instr, but I'm getting the money results (no point in the address).

    "America Mary. 1234 Southridge Park Dr. Samna Lorie.MO.31234..'


    NAME ADDRESS CITY ZIP County SATE

    ---------                  --------                                ------------           ------           -------    -- -----

    Mary America 1234 Southridge Park Dr. Samna Lorie MO 31234  NULL VALUE

    But I need the results (no point in the address)

    NAME ADDRESS CITY ZIP County SATE

    ---------                  --------                                ------------           ------           -------    -- -----

    Mary America 1234 Southridge Park Dr.    Samna Lorie MO 31234  NULL VALUE

    Hello

    994122 wrote:

    Hello

    (1) how do to do this, use the substr and instr functions?

    Thank you

    You can't do all the work with SUBSTR and INSTR; you need regular expressions to obtain a string delimited by a #.

    Once you have such a string, then you can use SUBSTR and INSTR (instead of REGEXP_SUBSTR) to get the separate secondary strings:

    WITH got_delimited_string AS

    (

    SELECT REGEXP_REPLACE (val

    , '\. ([^ .]| $)'

    , '#\1'

    ) AS delimited_string

    FROM the data

    )

    got_pos AS

    (

    SELECT delimited_string

    , INSTR (delimited_string, "#", 1, 1) AS pos_1

    , INSTR (delimited_string, "#", 1, 2), pos_2

    , INSTR (delimited_string, "#", 1, 3) AS pos_3

    , INSTR (delimited_string, "#", 1, 4) AS pos_4

    , INSTR (delimited_string, "#", 1, 5) AS pos_5

    , INSTR (delimited_string, "#", 1, 6) AS pos_6

    OF got_delimited_string

    )

    SELECT SUBSTR (delimited_string, 1, pos_1 - 1) AS the name

    SUBSTR (delimited_string, pos_1 + 1, pos_2 - (pos_1 + 1)) AS address

    SUBSTR (delimited_string, pos_2 + 1, pos_3 - (pos_2 + 1)) AS city

    SUBSTR (delimited_string, pos_3 + 1, pos_4 - (pos_3 + 1)) AS State

    REPLACE (SUBSTR (delimited_string, pos_4 + 1, pos_5 - (pos_4 + 1))

    , '.'

    )                                                           AS zip

    SUBSTR (delimited_string, pos_5 + 1, pos_6 - (pos_5 + 1)) AS the County

    OF got_pos

    ORDER BY delimited_string

    ;

  • How to zoom in and out on the timeline of the first cc effects?

    I can zoom out on the timeline of project with alt + mouse wheel, but I can understand how do on the effects Panel and project zoom seems not to effect it.

    Never mind--and looked in the keyboard shortcuts and a = found

Maybe you are looking for