How to use nextScene.gotoandplay link using class property (external code.as)

i try this code but i got error
package  {
                        import flash.display.SimpleButton;
                        import flash.display.MovieClip;
                        import flash.events.MouseEvent;
                        public class np extends SimpleButton {
                        public function np() {
                                                this.addEventListener(MouseEvent.CLICK, clickF);
                                                private function clickF(e:MouseEvent):void{
                                                MovieClip(this.root).nextScene(),gotoAndStop(1);
Call to possibly undefined method gotoanStop
Note: i want to go next scene

Thx guys
I got the solution
package  {
                        import flash.display.SimpleButton;
                        import flash.display.MovieClip;
                        import flash.events.MouseEvent;
                        public class np extends SimpleButton {
                        public function np() {
                                                this.addEventListener(MouseEvent.CLICK, clickF);
                                                private function clickF(e:MouseEvent):void{
                                                MovieClip(this.root).nextScene();

Similar Messages

  • How to use gotoandplay scene link using class property (external code.as)

    Hello
    I am using ‘gotoandplay’ scene by scene link using this code. If I use this in the same time line (internal), it’s working properly but when I use this code in as a class, I got this error
    Call to a possibly undefined method MovieClip.
    I use this code in time timeline
    b_enter.addEventListener(MouseEvent.CLICK, fl_ClickToGoToScene_enter1);
    function fl_ClickToGoToScene_enter1(event:MouseEvent):void
                MovieClip(this.root).gotoAndPlay("p menu", "Menu");
    I use this code in class
    package  {
                import flash.display.SimpleButton;
                public class next extends SimpleButton {
                            public function next() {
                                        // constructor code
                                        MovieClip(this.root).gotoAndStop("p2", "page2")
    u can download the flash file using this link
    http://www.delta-adv.com/nav/np.rar

    oops, i didn't notice you were trying to add that code in a button class and were nesting named functions.  use:
    package  {
                        import flash.display.SimpleButton;
                        import flash.display.MovieClip;
                        import flash.events.MouseEvent;
                        import flash.events.Event;
                        public class np extends SimpleButton {
                        public function np() {
    this.addEventListener(Event.ADDED_TO_STAGE,init);
    private function init(e:Event):void{
    MovieClip(this.root).addEventListener(Event.RENDER,renderF);
                                    this.stage.invalidate();
                                    MovieClip(this.root).nextScene();
    private function renderF(e:Event):void{
                                              MovieClip(this.root).gotoAndStop(5);

  • How to disable "blue underlined links" (which I did not code) in FireFox?

    How to disabl "blue underlined links" (which I did not code) in FireFox? Here's an example website that has no underlined links coded in the simple html source: www.setv.org. After I updated FireFox to a more recent FireFox version, blue underlines appear in websites. I know that there is a way to disable that annoying 'feature'.
    Thanks in Advance
    tron nee
    Electro-Optical Tech*Artist
    Los Angeles Burning Man Artist Association
    burner et von tron

    Cor El,
    Thank you. Re; under-lined links...I thought I looked everywhere...but I missed it!
    Any chance there being a way to easily enable/disable animations? I'd sure like to selectively rid the screen of those noisy flashy-blinky advertisements.
    And how about storing java-script enable/disable flags with bookmarks? That way I would not be forced to click tools->options->content->enable-javascript each time I wanna turn it on or off? When I surf using database engines I disable j-script (phkem) and when I need to get something from nextegg I turn it on. What about being able to selectively disable/enable (also stored in bookmarks) embedded google-ads/beacons flags? I hate being tracked, now I'm getting ads on my cable TV set based on where I've been lurking on the InterNet. Big-phkn-brother's on us, and its the greedy phkn corporations who don't give sht about us except for what's in our wallets. InterNet used to be cool, now its the CIA, the FBI, KGB, policia, FartBuuk, Macro$haft, AT&T, Giggle (at least they give something of value back), and all the other facist big-brothers. Mozilla was born fighting that schema. There's so much more that FireFox could do to mitigate InterNet facism.
    Anyway, thanks again for your time and I appologize for the ranting.
    burner von tron

  • How can I save multiple links using the "save link as" function?

    I'm trying to save about 300 pdf files. The link to each one is listed ona website. To save each one I'm right clicking on the link, selecting "save link as" and repeat.
    How can I select multiple links and save them?

    Actually you can save multiple page pdf's in elements.
    Try something like this:
    (This is easier if you have the project bin open)
    1. Select the first page
    2. Right click on that page in the project bin and choose Add Blank Page or as many pages as you need.
    3. Use the move tool and drag your pages down into the blank pages in the project bin
    4 Then File>Save As>Acrobat.PDF

  • How do you conditionly display links using images?

    I created a classic report with the following SQL.
    select rownum,
    case
    when mod (rownum, 2) = 0 then link
    else null
    end "Link Works",
    case
    when mod (rownum, 2) = 0 then link
    else null
    end "Link fails"
    from All_Tables
    where rownum < 10;
    Then for colum two (Link Works) I went to the "Column Link" tab and set the link to #Link Works#. This correctly displays a clickable link (link) on rows where the column is not null and an empty space on rows where the column is null.
    For column three (Link Fails) on the "Column Link" tab, I set the link to an icon (image). This displays a clickable icon on every row no matter if the value in the column is null or not.
    Is there any way to only have the clickable image display on rows where the column is not null?
    thanks,
    William

    Hi,
    You can do this by adding a style class to the region header:
    <STYLE>
    .display_link_Y{}
    .display_link_N{display:none;}
    </STYLE>Then add a LINK_FLAG column to your report using for example:
    case when link is null then 'N' else 'Y' end link_flagHide the LINK_FLAG column and on the LINK column add the class into the column link attributes:
    class="display_link_#LINK_FLAG#"Rod West

  • Help using javas inbuilt Linked List class

    I'm trying to create a LL of ints using Javas inbuilt LL class.
    I declared it using it: LinkedList test = new LinkedList();
    Now the Java API says it takes objects, is there a way of declaring the LL so that it takes ints, or a way of adding ints to the above LL?
    Thanks

    Integer.valueOf(int) gives an Integer object that wraps the int. If you're using >= 5.0, then autoboxing will do that for you, so you can just do list.add(someInt); Note, however, that it's still an Integer object, that's being stored, not an int primitive. If you want to store primitives, you'll have to define your own class or download a third-party one.

  • Can't use image as link using asfunction for some reason

    I have a pretty large which was coded using AS2 in about 2006 so I'm trying to make a few changes using AS2 which I'm pretty rusty on.  I have a swf which loads an xml file into a textarea in flash and it all works well.  I have to link some images which appear in the xml file but those images have to be links to external sites and that is where I am running into problems with my asfunction.  Here is the code.
    Function in my AS:
    function launchSite(arg) {
      if(arg == "agri") {
        getURL("http://www.usda.gov/wps/portal/usdahome", "_blank");
    then of course arg will take different values for the other links:
    In the xml file, here is the asfunction code:
    <a href='asfunction:_root.launchSite,agri'><img src="images/agri.gif"></a>
    What is happening is the function is working and the external link is opening in a new browser window, but the xml stops at that point so most of the agri.gif image and the rest of the page are gone.  If I change the img tag to just a text link, then all is well .. but my client wants the images to be the link.
    To further complicate, if I remove the link text and have only the img tag, the page is fine.  They just won't work together for some reason.  Any thoughts?
    Thanks!
    Nancy

    >the cdata tag is needed so you can load the xml that contains html tags.
    Interesting since my xml files are full of html tags and everything else renders just fine without CDATA tags.  My textarea is configured to allow HTML.
    AS as follows:
    //set up the textarea
    //init TextArea component
    myText.html = true;
    myText.wordWrap = true;
    myText.multiline = true;
    myText.label.condenseWhite=true;
    //set up the XML
    myXML = new XML();
    myXML.ignoreWhite = true;
    myXML.load("xml/acts.xml");
    myXML.onLoad = function(success)
    var myArray:Array = myXML.firstChild.childNodes;
    myTitle.text = myXML.firstChild.attributes.title
    myLoader.contentPath = myXML.firstChild.nextSibling.attributes.src
    myText.text = myXML.firstChild.nextSibling.nextSibling
    function loadFunction(target){
    myXML.load(target);
    myXML.onLoad = function(success)
    var myArray:Array = myXML.firstChild.childNodes;
    myTitle.text = myXML.firstChild.attributes.title
    myLoader.contentPath = myXML.firstChild.nextSibling.attributes.src
    myText.text = myXML.firstChild.nextSibling.nextSibling
    //function to load the external XML
    function launchSite(arg) {
      if(arg == "agri") {
        getURL("http://www.usda.gov/wps/portal/usdahome", "_blank");
    pertinent part of the xml as follows (portion of the text node which displays all the text):
    <a href='asfunction:_root.launchSite,agri'><![CDATA[<img src="images/agriculture.gif">]]></a> Department of Agriculture:  The Department of Agriculture began in 1862.  The main job of this department is to keep our food is safe and healthy.  They also work with farmers if they need help selling their crops both in the US and around the world.  Secretary of Agriculture is Mr. Thomas J. Vilsack.
    I added the CDATA tags at your suggestion.  What that gives me in the browser is a working function (loads the external site in a new window as desired) but instead of the image, I have the img tag printed out due to the CDATA tags (which by definition is not parsed).
    I have had pages on pages like this in this site since 2006 (which is why it's done in AS2 and not 3) and have never had a problem until the client wanted the images to be links to the external sites.  If I put in the image tag without the link, it works.  If I put in the link tag with a text link rather than the image, it works.  It's the two together that do not work.
    Does that make sense?
    Thanks again!
    Nancy
      after that you need to parse the xml correctly and assign to your textarea.  are you?

  • V.Important: How to use se24 to build a class step by step:  Points assured

    hi all
    I am new to OO based abap programming.  I want to build a class using SE24 but i dont know where to put the various pieces of code in SE24.
    Can anyone please provide a step by step procedure (including screenshots) on how to use SE24 to build a class using most of the features like constructor, attributes , interface , friend etc.
    Documents would be more helpful as compared to links.
    Points will be awarded
    thanks in advance

    Hi,
    Just follow the below givenlink. Using this you can create a class in SE24.
    http://help.sap.com/saphelp_nw04/helpdata/en/b3/f4b1406fecef0fe10000000a1550b0/content.htm
    I think the below document would be
    a very good introduction
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0a33479c-0b01-0010-7485-dc8c09d6bc69
    See the Following Dem Program:
    DEMO_ABAP_OBJECTS Complete Demonstration for ABAP Objects
    DEMO_ABAP_OBJECTS_CONTROLS GUI Controls on Screen
    DEMO_ABAP_OBJECTS_DIALOG_BOX Splitter Control for Screen with Dialog Box
    DEMO_ABAP_OBJECTS_EVENTS Demonstration of Events in ABAP Objects
    DEMO_ABAP_OBJECTS_GENERAL ABAP Objects Demonstration
    DEMO_ABAP_OBJECTS_METHODS Demonstration of Methods in ABAP Objects
    DEMO_ABAP_OBJECTS_SPLIT_SCREEN Splitter Control on Screen
    Regards,
    Padmam.

  • How to I get a link with a "Mail to" address to open up a Compose window in my Yahoo mail, rather than in the Mail progrom on my Mac. I do not use the Mac Mail program.

    How to I get a link with a "Mail to" address to open up a Compose window in my Yahoo mail, rather than in the Mail progrom on my Mac. I do not use the Mac Mail program.
    == This happened ==
    Not sure how often
    == always

    Thank you, "the-edmeister" -- You render a great service, one that lifts my spirits.
    Your answer also taught me to be a little more persistent, as I had started looking at Preferences, and just didn't notice the icons (including Applications) at the top of that window that would have led me to my answer.
    Dave

  • How can I use apple mail (linked to gmail) and get it to only do autofill on the contacts that I have in apple address book?

    How can I use apple mail (linked to gmail) and get it to only do autofill on the contacts that I have in apple address book? Everytime I write an email on the Apple mail app (as well as in Gmail) it recommends a bunch of emails that are not my contacts. I want it to just autofill for the contacts that I have in my address book. Is this possible? Thank you. I have an Imac Intel version and an Iphone 5 phone.

    Mail > Window > Previous Recipients

  • How do i go about linking 2 laptops 3 ipads using the same itunes and to stream all films and music

    how do i go about linking 2 laptops, 3 ipads using the same itunes and to stream all films and music through the house.

    make sure they are all using the same itunes store account and turn on home sharing
    http://support.apple.com/kb/HT3819 - more info about home sharing
    -mvimp

  • How to read ZIP files(having PDFs,Image) using MQ Series link for R/3

    Hi,
    1)Is it possible to transfer a zip file (having an image or pdf) using IDocs in SAP 4.6C using MQ Series link for R/?
    Scenario: "MQ Series link for R/3" converts Business-Reports from a third-party software,into SAP IDocs.Each Business-Report contains one XML file and one ZIP file.
    2)Being on ABAP side,do I have to worry about how the zip file would be converted into IDocs?
    Detailed descrption:
    This scenario requires integration of a non-SAP software which talks in XML with SAP R/3(4.6C).The customer has decided to go with 'MQ Series link for R/3' (which integrates any non-SAP application running on IBM MQ Series to R/3,by converting data(in any format) into IDocs).He is not ready to go for XI.
    The Problem area is a functionality which requires the non-SAP software to send XML file along with an attached Zip file.So,XML document,basically,has a 'zippedFile' XML element having actual file in XML keyword 'file'.
    This XML document ideally, should be converted by the subsystem(MQSeries link for R/3) into IDocs i.e. into a stream which could be stored in a table on R/3 side and later, sent back to the non-SAP software through MQ Series link to be converted into zip-file again with corresponding pdfs,images.I want someone who has worked in a similar scenario to confirm this.

    Hi,
    I have a feeling I have posted this question in the wrong forum or maybe I will let you decide this.Any help would be appreciated (even the right forum name).
    My scenario requires integration of a non-SAP software which talks in XML with SAP R/3(4.6C).The customer has decided to go with 'MQ Series link for R/3' (which integrates any non-SAP application running on IBM MQ Series to R/3,by converting data(in any format) into IDocs).He is not ready to go for XI.
    The Problem area is a functionality which requires the non-SAP software to send XML file along with an attached Zip file.So,XML document,basically,has a 'zippedFile' XML element having actual file in XML keyword 'file'.
    This XML document ideally, should be converted by the subsystem(MQSeries link for R/3) into IDocs i.e. into a stream which could be stored in a table on R/3 side and later, sent back to the non-SAP software through MQ Series link to be converted into zip-file again with corresponding pdfs,images.I wanted someone who has worked in a similar scenario to confirm this.

  • How can I add a hyperlink to a PDF with OSX 10.9? The "Help" article says to use the "add link" feature under "edit." It's not there.

    How can I add a hyperlink to a PDF with OSX 10.9? The "Help" article says to use the "add link" feature under "edit." It's not there. I could add links w/ the previous OS. Time sensitive project.

    Which application are you using?
    Clinton

  • How to use the html:link with a arraylist

    Hi everyone:
    I want to display the data using struts html:link.
    I query the database and place all the data to javabean,later place all the javabean to ArrayList.In Action,I use the "request.setAttribute("lovetable",articlelist) to set request to jsp page.
    I want to pass a parameter "id" use the hyperlink so I can get the parameter when I click the hyperlink.
    But how to use html:link to display it?
    I use <html:link action="viewtopic.do" paramId="id" paramName="lovetable" paramProperty="id"/>,it can't work and Tomcat report error :
    org.apache.jasper.JasperException: No getter method for property id of bean lovetable
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:248)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
    The lovetable is a ArrayList and it don't have a getter or setter method.
    How to use it pass parameter? :( Thks

    Thank you.
    I use the bean:define successful.And display all the data to jsp.My jsp code is:
    <logic:iterate id="love" name="lovetable">
    <bean:define id="idbean" name="love"/>
    <tr bgcolor="<%=color%>">
    <td><bean:write name="love" property="id"/></td>
    <td><html:link forward="viewtopic" paramId="id" paramName="idbean" paramProperty="id"><bean:write name="love" property="title"/></html:link></td>
    <td><bean:write name="love" property="name"/></td>
    <td><bean:write name="love" property="time"/></td>
    </tr>
    </logic:iterate>
    In Action : request.setAttribute("lovetable",articlelist)
    ResutlSet rs=.............
    List articlelist=new ArrayList();
    while(rs.next()){
    articlebean bean=new articlebean();
    bean.setName(rs.getString("name"));
    bean.setTitle(rs.getString("title"));
    articlelist.add(bean);
    The above code will work property.
    The Tag "html:link" need bean to work other than arraylist so I iterate all the bean out.
    The Tag "logic:iterate" need collection to work so I make Action return a List.
    right?
    Any idea? :)

  • How to use custom password encryptor/decryptor class for jdbc connection

    I am in process of migrating application from Jrun server to weblogic . In jrun we use to provide our custom class which used to decrypt the password provided in resource file as below
    <username>webclt</username>
    <password>AAAAAAASSSSSSSCCCCCCCCCCCCCC</password>
    <encrypted>true</encrypted>
    <encryption-class>com.CustomEncryptor</encryption-class>
    How could i use the same class while configuring datasource in weblogic 10 server.

    1- By default, the jre will read the user's cacerts which runs the program.
    2- You can specify another cacerts this way :
    System.setProperty("javax.net.ssl.trustStore", my_trust);
    For the case 1 and 2, you need to put the certificate in the cacerts.. Or,
    3- You implement a custom TrustManager which, for example, accepts all certificates :
    class X509TrustManagerTrustAll implements X509TrustManager {
    public boolean checkClientTrusted(java.security.cert.X509Certificate[] chain){
    return true;
    public boolean isServerTrusted(java.security.cert.X509Certificate[] chain){
    return true;
    public boolean isClientTrusted(java.security.cert.X509Certificate[] chain){
    return true;
    public java.security.cert.X509Certificate[] getAcceptedIssuers() {
    return null;
    public void checkClientTrusted(java.security.cert.X509Certificate[] chain, String authType) {}
    public void checkServerTrusted(java.security.cert.X509Certificate[] chain, String authType) {}
    and you call it in the right place in the code you wrote (SSLContext,..)
    Hope it helps and deserves a duke star ;)

Maybe you are looking for

  • Many podcast episodes marked as saved

    I am getting many episodes marked as saved, despite never manually downloading episodes and never manually marking episodes as saved. I have to manually reset them to unsaved before they files will get deleted. In my personally idea scenario there wo

  • AR and AP upload -T Code F-02.

    Hi Team, Let me know correct approach BDC or BAPI or LSMW for AR AP upload - T Code F-02. Thanks MMV

  • WLS 6.1 SP2 NSAPI and iPlanet (Sun One) issues

    Hi. I am going nuts with this NSAPI issue. I am working in a Solaris 8 environment, WLS 6.1 SP2 and iPlanet (Sun One)and NSAPI. I can get everything to work fine and dandy in aniPlanet 4.1 environment. I can not get it to work in an Iplanet (Sun One)

  • XServ doesn't display files in open/save window

    Hi; I have a weird problem. I have installed OS 10.5.1 on three machines so far and have worked through most of the issues but currently I have 1 machine with a weird problem. It is that when I try to show the files in the XServ in the standard OS Di

  • Resend Form Data on Huffington Post

    In the past few weeks, I get this annoying message every 15 seconds, whenever I go to www.huffingtonpost.com: "This web page is being redirected to a new location. Would you like to resend the form data you have typed to the new location?" I have not