Basic problems with Buttons load

Hay there
I have just started programming AS 2.0 today, but have much experience from Java, C# and a lot of other programming languages.
I just want to know if there is a "attachButton" equviance to _root.attachMovie(...)?
If I need to use _root.attachMovie what is the equviance to onEnterFrame() in a SimpleButton, because this does not work:
class OwnedTile extends SimpleButton {
    function onEnterFrame()
        trace("42");
It never prints anything in the output even if the Buttons is created (shoved up in the scene)

Thanks, that explains why I where able to se the figures of the buttons.
But when I am in the button is there then a function that gets called every frame like onEnterFrame in a movie clip. Because the code under this text does not send anything to output, even If I can se that the buttons have been created correctly.
class OwnedTile extends SimpleButton {
        function onEnterFrame()
            trace("42");
Or is this one of the limitiations?
In fact I only need it to do stuff when It get manipulated by the mouse (like on(press)), so if it is not a check every frame then how do I do that?
regards

Similar Messages

  • Problems with Safari Loading Sites and Photos

    For the past week (Feb. 2015) I've experience problems with Safari loading websites on my 2009 20" iMac desktop. Running version OSX Lion 10.7.3  4 GB.   Intel Duo Core 2.66 GHz
    Mac also will frequently not upload photos at websites like Yahoo News or Facebook.   It does this throughout the day.
    So, I downloaded Chrome, thinking it would be a better browser if Safari is not functioning.  Chrome is just slightly better, and when it won't load a website I get the following error message from Chrome: DNS_PROBE_FINISHED_NO_INTERNET.
    I'm debating taking the Mac to the Apple store for diagnosis or repair today, but if anyone else is experiencing similar problems, could you please offer some solutions as to what is going on.
    Thank you.
    AngieRK

    Non-responsive DNS server or invalid DNS configuration can cause long delay before webpages load - Apple Support
    Unless you have a good reason not to, you should update the OS to version 10.7.5.

  • Problem with delta load urgent!!

    Hi,
    I have a problem with delta load
    We have an IP, which loads data from R/3 system daily, its a delta load to the ODS and it updates to the cube with the selection on Company Codes and 0FISCPER
    we are in 3.5 system
    For a couple of company codes A & B, the init was done for the period 07.2010 to 12.2099 and after tht the deltas are loaded from 07.2010 till 12.2099 and there's no pblm with tht
    Now, there was some updation in R/3 system and the data was maintained for the company codes in A& B for the FISCPER 001.2010 to 006.2010, for which init wasnt maintained...
    now how shall we need to load the init in this case? dnt ask me how the postings was done in R/3, but my pblm is purely related to the loading data in BW from R/3, as its very imp for the customer to see the data from 01.2010 to 12.2010 in reports, but the data was only available in reports from 07.2010 onwards
    do i need to create another IP and maintain the init for 01.2010 to 06.2010? so tht this selection will automatically appear in the ODS delta loading infopackage
    pls throw ur inputs ASAP
    thank you

    Hi Prince,
    No need to maintain any Init for this data, It will be enough if you can load the data from jan 2010 to jun 2010 into your Info Cube.
    Follow the below steps:
    1)create full load IP for this data source.
    2) give the selection as A and B company codes and 0FISCPER as 001.2010 to 006.2010
    3) in menu bar, click on scheduler --> select full repair request
    4) In the next screen check the check box and save
    5) Now execute the IP, it will the data with out disturbing your daily delta.
    follow the same procedure to load data till to your Info Cube.
    Please revert if you have any questions
    Regards,
    Venkatesh

  • Problems with the load of Deliveries

    Hi experts,
    I am having some problems with the load of Deliveries from R/3 into BW.
    In LIPS table of R/3, there are 41412 records. I delete the setup tables and realize the extraction with the transaction OLI8BW. After that I launch a simulation with RSA3 but only 6765 records are taken into account.
    Apart of that, there is a range of deliveries documents (between 180000000 and 1084000000) that is not be taken into account.
    Has someone have similar problems with the load of deliveries?
    Thanks.

    Matute,
       you can try comparing those missing records with those already extracted. I found in my side that some records with document category of "H"(Returns) don't be extracted by 2lis_12_vcitm.
    Jin Ming

  • Problems with pages loading

    We are having a lot of problems with pages loading slowly or not at all. We get this message all the time...server not found...even on pages that have just recently been visited. We have this problem with Safari, Firefox, and Camino. I don't have Internet Explorer installed, but why should I just keep adding new browsers. My ISP assures me that the connection is fine. I have emptied caches, cookies, whatever I can find to empty. Did I empty too much? We use a Netgear router and a company called Digitron. Any suggestions?
    Message was edited by: cynder13

    Hi
    Perhaps the easiest way to sort this out is to set up a separate Network Location for your connection:
    -Location - set up a personal location by clicking on the drop down menu and selecting "add a location". Use a name familiar to you. Once established, select "apply".
    -Next, click on the "Show" drop down menu and select Network Port Configurations. Only Airport ought to be checked. Move it to the top of the list (you can drag it). Select "apply".
    -Back to the "Show" menu, select "Airport". Click on the TCP panel. There, enter 4.2.2.2 and 4.2.2.1 (separate lines) in the DNS servers box and select "apply". Also, you can always call your Internet Provider to find out if they have specific codes.
    Creating a personal location, plus adding the DNS codes seems to speed things up. Otherwise, the "automatic" function has a tendency to "search" for available locations, hence creating the lag you are seeing.
    Lastly, in the Finder, go to your Applications>Utilities folder and select "Terminal". Once the screen is open copy/paste lookupd -flushcache and press return. This clears out the DNS cache. Once done, quit Terminal.
    If the above doesn't help, I suspect the Router is the problem. Perhaps you need to upgrade its firmware. Check at the Netgear site>Support.
    Post back

  • I have problems with buttons and Forms in my trial proof of Indesign CC, how can I fix it?

    I have problems with buttons and Forms in my trial proof of Indesign CC, how can I fix it?

    Moved to InDesign forum.
    You can start by telling us what the problem is.

  • Problem with thumbnails loading on LR Gallery.

    Hi everyone.
    I am having difficulty getting galleries to upload properly, and show the jpg files after running them through Lightroom.
    I use the web gallery in LR, but then when I go to view a gallery online (it looks fine my the example given in LR), random photos are not uploaded.
    I have tried uploading in LR, and also FileZilla.
    The error I get in File Zilla is " 550 The process can not access the file because it is being used by another process. 
    Critical File Transfer Error."
    The thumbnails that are being left out are COMPLETELY random!  The number of the image left out varies from gallery to gallery.
    I have called my host, as well as my internet provider, and there is no problem on their end.
    I am working on horse show photos, and need to get these galleries uploaded correctly asap.
    Can anyone help please??

    Now I am able to load the applet on MAC OS X 10.4.11. This is due to network issue.
    Now my problem with the applet functionality. My applet will display the map image. Applet contains the navigation arrow keys at the top left of my applet. These keys will be used to navigate through the map.
    The problem is while user using the navigation buttons, the image got squash and stretch.
    This is happened only on MAC OS X 10.4.11 and Its working fine on PC and MAC OS X 10.5.5.
    Please anyone help in this regard. Thanks in advance.

  • Problem with dynamically loading the dropdown list from database

    Please help me,
    i am having a jsp page which contains a form
    with a textfield ,two dropdown list
    and a submit button
    when i select a list from first drop down, second drop down has to
    be loaded from the database dynamically according to the
    selected one in the first drop down.
    i gave onselect event for the first drop down and
    gave this one
    temp=first dropdown selected value
    self.location='currentfile+query='+temp;
    after this current page is reloading, but the already existing
    values in textfield and first selected value in drop down list is
    missing.
    how to solve this problem? and the rest of the problem. i mean
    loading the data into second drop down list.
    plz help me......

    in first <selcet> tag write Onchange and submit to the jsp then the values will return in second select box.

  • Problem with safari loading unselected pages

    I've been having some problems in safari associated with pages loading that weren't selected. I don't believe that any of the pages that I end up on are actually links on the pages I was on. It happens when I'm reading in google reader or in Yahoo reading some of their top stories. I usually end up on a "select a survey question", I am able to hit the back button and get back to the page, but then it will try and forward to the same page I just left.
    I've emptied cache, reset safari, ran the disk utility repair, and while it's an infrequent occurance it happens often enough that I want to fix it.

    Good... you're up to date.
    I think this may be more of a Google Reader issue then Safari. Try the troubleshooting help here.
    http://www.google.com/support/reader/?hl=en
    If you can't resolve the problem there, post back here.
    Carolyn

  • Problem with Application Loader

    Hi,
    I'm trying to submit an iPhone application to iTunes using the Application Loader on a Mac Mini (OSX 10.5.8). After I enter my iTunes Connect login details I receive the following error response
    *There is a problem with you login information*
    Please click back and try again
    An error occurred talking to the iTunes Store
    The login details are correct, the device connects to the itunesconnect web site from Safari without issue.
    Is anybody else experiencing a similar issue? Anybody have any ideas on how I might resolve this issue. It's really frustrating as this is now the only way to get an App into iTunes and the error message is not exactly giving me a lot to go on.

    I got a message in an email saying I had the wrong binary code and therefore had to change it by downloading the application manager.
    This was the email they sent me?
    Some potential reasons that your binary is invalid: the binary icon doesn't meet our requirements, the payload directory is set at the wrong level in the .app wrapper, the bundle version has not been increased, and so on.
    You will receive an email detailing the reason for your invalid binary. To clear the error, log in to iTunes Connect, locate your app, and click Ready to Upload Binary to reset your app's status to Waiting For Upload. This will allow you to redeliver your corrected binary through Application Loader.
    Makes no sense to me either!

  • Problem with buttons in page fragment

    Hi,
    I'm developing a jsp-page, which has two page-fragments and one inline frame..
    I've a problem with one page-fragment. This one contains three buttons, for changing the language. When someone pushes the button, it seems that there is no action triggered...
    Here is my code:
    <?xml version="1.0" encoding="UTF-8"?>
    <div style="-rave-layout: grid" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:j="http://www.sun.com/creator/jsfcl">
        <f:loadBundle basename="oltbwebapplication.bundle" var="bundle"/>
        <h:outputText binding="#{OltbStatus.mnuBanksys}" id="mnuBanksys" style="left: 96px; top: 0px; position: absolute" value="#{bundle.mnuLac}"/>
        <h:commandButton action="#{OltbStatus.choseNl}" actionListener="#{OltbStatus.btnNl_processAction}" binding="#{OltbStatus.btnNl}" id="btnNl"
            style="left: 432px; top: 0px; position: absolute" value="NL"/>
        <h:commandButton action="#{OltbStatus.choseFr}" binding="#{OltbStatus.btnFr}" id="btnFr" style="left: 480px; top: 0px; position: absolute" value="FR"/>
        <h:commandButton action="#{OltbStatus.choseEn}" binding="#{OltbStatus.btnEn}" id="btnEn" style="left: 528px; top: 0px; position: absolute" value="EN"/>
    </div>Thx in advance
    Ann Carpentier

    Hi Ann,
    I was working with dropdowns in pagefragments consequent to your query. I noticed that there is a problem with the dropdowns too. This especially happens if you have the same components in both the page fragments. For example buttons in both the page fragments or dropdowns in both page fragments etc.
    I have filed a change request on your behalf for the same.
    We thank you for bringing this to our notice.
    Thanks and
    Cheers :-)

  • Problem with buttons in Content Viewer iPad app

    Hi,
    I'm having a problem with my navigation once my app is viewed on the iPad. All pages in all of my articles are using the same master page for a menu button, and they all work when I view the app through the Content Viewer on my desktop. Once I log in to the Content Viewer on my iPad, however, the menu button on the first page of every article doesn't work. I did a test of swapping the first page with the second page in one of the articles, and the original page's menu button then worked while the second page's (now located at the beginning) wasn't being read. Other buttons on the first page work (which are also from the master page), it's just the menu button that makes my table of contents box appear. I have eleven articles in my folio and it's happening on the first page of every single one. Not too sure what's going on here, any help is appreciated.
    Thanks.

    I also figured out after playing around with it a bit more that this only happens when "Horizontal swipe only" is checked in the properties.

  • Problem with XML loading and xmlns

    I'm having a problem with loading an XML file that was created by Filemaker.  Filemaker will output an XML file using one of two different grammars.  One outputs in a mostly standard form that I can use with one glitch.  Flash CS4 AS3 seems to have a problem with the xmlns in one of the nodes.
    Specifically:
    <FMPDSORESULT xmlns="http://www.filemaker.com/fmpdsoresult">
    If I remove the xmlns="http://www.filemaker.com/fmpdsoresult" the file loads properly and I can access the various fields with no problem.  However, when I leave the xmlns=... in, it will trace out the XML properly but I can't access the fields using the code listed below.  This is driving me crazy!
    With the xmlns part in the XML file I get the following error when it tries to load the thumbnail files:
    TypeError: Error #1010: A term is undefined and has no properties.
    I need to have it so that the user can enter/edit data and simply output the XML file from Filemaker and then Flash will load up the unaltered XML file and show the info requested by the user.  That is to say I could have the user open the XML file in a word processing application and have them delete the xmlns..., but that is rather cumbersome and not very user friendly.
    I've tried every xml.ignore function I could find but it doesn't help.  Hopefully someone out there can help
    Thanks,
    -Mark-
    Partial XML:
    XML From Filemaker Export:
    <?xml version="1.0" encoding="UTF-8" ?>
    <!-- This grammar has been deprecated - use FMPXMLRESULT instead -->
    <FMPDSORESULT xmlns="http://www.filemaker.com/fmpdsoresult">
      <ERRORCODE>0</ERRORCODE>
      <DATABASE>Sport.fp7</DATABASE>
      <LAYOUT></LAYOUT>
      <ROW MODID="1" RECORDID="1">
        <FirstName>Mark</FirstName>
        <LastName>Fowle</LastName>
        <Sport>Sailing</Sport>
        <Medal>None</Medal>
        <CourseOfStudy>Design</CourseOfStudy>
        <Year>1976-1978</Year>
        <HomeState>California</HomeState>
        <ImageName>93</ImageName>
      </ROW>
    </FMPDSORESULT>
    AS3 Code:
    import fl.containers.UILoader;
    var aPhoto:Array=new Array(ldPhoto_0,ldPhoto_1,ldPhoto_2,ldPhoto_3,ldPhoto_4,ldPhoto_5);
    var toSet:int=10;//time out set time
    var toTime:int=toSet;
    var photoPerPage:int=6;
    var fromPos:int=photoPerPage;
    var imgNum:Number;
    //var subjectURL:URLRequest=new URLRequest("testData_FM8.xml");
    var subjectURL:URLRequest=new URLRequest("Sports.xml");
    var xmlLoader:URLLoader=new URLLoader(subjectURL);
    xmlLoader.addEventListener(Event.COMPLETE, xmlLoaded);
    var subjectXML:XML = new XML();
    subjectXML.ignoreWhitespace=true;
    subjectXML.ignoreComments=true;
    subjectXML.ignoreProcessingInstructions=true;
    function xmlLoaded(evt:Event):void {
        subjectXML=XML(xmlLoader.data);
        if (root.loaderInfo.bytesTotal==root.loaderInfo.bytesLoaded) {
            removeEventListener(Event.ENTER_FRAME, xmlLoaded);
            trace("XML Data File Loaded");
            trace(subjectXML);
        } else {
            trace("File not Found");
        imgNum=2;//subjectXML.ROW.length;
        trace(subjectXML);
        loadThumb(0);
    function loadThumb(startPos:int):void {
        var count:Number=aPhoto.length;
        trace(subjectXML.DATABASE);
        for (var i=0; i<count; i++) {
        try{
            aPhoto[i].source="images/"+subjectXML.ROW[startPos+i].ImageName+"_main.jpg";
        }catch (e:Error){
            trace(e);
            aPhoto[i].mouseChildren=false;
            aPhoto[i].addEventListener(MouseEvent.MOUSE_DOWN, onThumbClick);
        trace("Current mem: " + System.totalMemory);
        ldAttract.visible=false;
    function unloadThumb():void {
        var count:Number=aPhoto.length;
        for (var i=0; i<count; i++) {
            aPhoto[i].unload();
            aPhoto[i].removeEventListener(MouseEvent.MOUSE_DOWN, onThumbClick);
        trace("Current mem: " + System.totalMemory);
    function onThumbClick(evt:MouseEvent) {
        var i:Number;
        //trace("Thumbnail Clicked " + evt.target.name);
        i=findPos(evt.target.name);
        ldLrgPhoto.source="images/"+subjectXML.ROW[i+fromPos].LOCAL_OBJECT_ID+"_main.jpg";
        ldLrgPhoto.visible=true;
        btnPrev.visible=false;
        btnNext.visible=false;
        gotoAndStop("showPhoto");
    function findPos(thumb:String):Number {
        var pos:Number;
        var count:Number=aPhoto.length;
        for (var i:Number=0; i<count; i++) {
            if (thumb==aPhoto[i].name) {
                pos=i;
        return pos;

    Hi,
    I was trying to use xml namespaces, so in my application I receive an XML file from the server. The file has a namespace, so when I parse the file I need to specify the namespace:
    I got the following piece of xml:
    <ls:exchange xmlns:ls=".../tsw" xmlns:tm="http://kxa">
        <ls:projects>
             <tm:annotation id="" date="" action="getprojects" status="responseok"/>         
        <ls:project id="" name="proj" description="..." owner="asss"  release="2" />
            <ls:projectV  id="" version="" creationdate="" modificationdate=""/ >
        </ls:project>
    </ls:projects>
    </ls:exchange>
    and the following code
    <mx:VBox label="WELCOME" verticalScrollPolicy="off" horizontalScrollPolicy="off">
          <mx:Tree id="tree" dataProvider="{srv.lastResult.project}" labelField="@name"  width="300" height="100%" itemOpen="itemOpenEvt(event);" />
    </mx:VBox>
    So i want to display the content of the xml (project nodes”) in a tree view, but i don’t know how to includes the namespace"ls:" in the data provider “srv.lastResult.project”. can u help me it’s urgent.
    sincerly
    Celine

  • Specific problem with buttons and states

    Hello,
    I first apologize for using Google Translate :-(
    I have a problem with InDesign not solve. It is for a digital publication.
    My goal is:
    A 'gallery' button is pressed and the ball image appears with three buttons: "Previous image", "Next image" and "close gallery".
    I do not want the gallery to be visible, or buttons that control, until the button is pressed "gallery", so I think all buttons except "gallery" with the "hidden until activated" option selected.
    I want the gallery, and buttons that control it, disappears when I press the button "close gallery".
    What I call "Gallery" is an image that fills the screen.
    After placing the image on your site have become the property button "Hidden until activated."
    Then convert this button in order to several states (what I will call "button states") and by the successive states with the images I want to show in the gallery.
    I think the interactions of the buttons.
    When button "gallery" I assign the following "I click the"
    - "Go to state"
    - Hide "gallery"
    - Show "close gallery"
    - Show "previous picture"
    - Show "next image"
    - Show "button states."
    The buttons "Previous Image" and "Next Image" are assigned, respectively, to go to previous state and go to the next state.
    When button "close gallery" I assign the following "I click the"
    - Show "gallery"
    - Hide "close gallery"
    - Hide "previous picture"
    - Hide "next image"
    - Show "button states."
    The buttons "Previous Image" and "Next Image" are assigned, respectively, to go to previous state and go to the next state.
    When button "close gallery" I assign the following "I click the"
    - Show "gallery"
    - Hide "close gallery"
    - Hide "previous picture"
    - Hide "next image"
    - Hide "button states."
    I put it up and working properly until I press "close gallery". Then I hide the buttons "close gallery", "previous image" and "next picture" but it keeps me visible "button states" showing the last image that was shown.
    Do not know how to fix this and I'm going crazy!
    Please can anyone help me?
    The solution may be another approach but without using "Folio Overlays".
    Thank you very much.

    I've moved your post to the DPS forum.
    I'm afraid the way you're doing this is not going to work with DPS.
    This should all be done with a multi state object. The first state would contain nothing but a button to go to the first state. After that set up each state with the proper buttons. Without seeing the file it's a bit difficult for me to envision exactly what you want to do.

  • Help with buttons loading sections. Code looks awkward!

    Hi everyone!
    I have a class that creates a navBar with some buttons. Each button loads an external .swf and everything is working just fine BUT the code is really awkward. I also wanted to use TweenLite to add transitions from section to section.
    I also wanted to handle the "section change" process from yet another Class (SectionChange) but whenever I try it I fail miserably.
    Here's what I have (including the vars), without the SectionChange Class, that's working.
    private var _app:Sprite;
    private var _navData:Array;
    private var _loader:LoadDisplayObject;
    private var _container:Sprite = new Sprite();
    private var _currentSection:String = "";
    public function NavBar(app:Sprite, navData:Array) {
         _app = app;
         _navData = navData;
         _navData.pop();
         addChild(_container);
         build();
    private function build():void {
         for (var i:uint;i < _navData.length;i++) {
              var menuBtn:MenuBtn = new MenuBtn(_navData[i]);
              menuBtn.name = _navData[i];
              menuBtn.x = 420 + (menuBtn.width + 3) * i;
              menuBtn.y = 60;
              menuBtn.addEventListener(MouseEvent.CLICK, onClick, false, 0, true);
              addChild(menuBtn);
    private function onClick(e:MouseEvent):void {
         if (_currentSection == e.target.name + ".swf") {
              trace("Section Already Loaded");
         } else {
              _currentSection = e.target.name + ".swf";
              _loader = new LoadDisplayObject(_currentSection);
              _loader.addEventListener("displayObjectLoaded", checkChildrenNum, false, 0, true);
              _container.addChild(_loader);
              trace("Another Section were Loaded");
    private function checkChildrenNum(e:Event):void {
         if (_container.numChildren > 1) {
              _container.removeChildAt(0);
    As I said, this is working, but it's going to be a mess when I start adding the Tweens.
    So here is the same code now using the SectionChange class that I tryed to implement.
    //Inside NavBar class (same as above)
    private function onClick(e:MouseEvent):void {
    //edit: ADDING THE _sectionChange TO THE DISPLAY LIST HELPS A LOT WITH THE ERRORS and returns only one error.
         addChild(_sectionChange);
         _sectionChange = new SectionChange(e.target.name + ".swf");
    And here's the SectionChange class:
    public class SectionChange extends Sprite {
         private var _loader:LoadDisplayObject;
         private var _container:Sprite = new Sprite();
         private var _currentSection:String = "";
         public function SectionChange(currentSection:String = "") {
              if (_currentSection == currentSection) {
                   trace("Section Already Loaded");
              } else {
                   _currentSection = currentSection;
                   _loader = new LoadDisplayObject(_currentSection);
                   _loader.addEventListener("displayObjectLoaded", checkChildrenNum, false, 0, true);
                   _container.addChild(_loader);
                   trace("Another Section were Loaded");
         private function checkChildrenNum(e:Event):void {
              if (_container.numChildren > 1) {
                   _container.removeChildAt(0);
    I don't know what I'm doing wrong here but I get tons of errors with this code.
    edit: Now that I'm adding the _sectionChange to the display list I only get the following error:
    TypeError: Error #2007: Parameter child must be non-null.
        at flash.display::DisplayObjectContainer/addChild()
        at br.com.publishyours::NavBar/onClick()
    Thanks again for all the patience!
    Message was edited by: newToAS3

    I finaly understood the error and got the SectionChange to work.

Maybe you are looking for

  • Error while deploying, Custom Style Skin in OBIEE 11.1.1.6.7

    Hi, I have deployed Custom Style Skin in OBIEE 11.1.1.5 successfuly (with the help of http://www.rittmanmead.com/2010/12/oracle-bi-ee-11g-styles-skins-custom-xml-messages/ ). Now when we're moving RPD, Catalog & Custom Style Skin from OBIEE 11.1.1.5

  • Form very slow to open

    I have completed my dynamic, interactive form but it takes an inordinate amount of time for users to open with their Adobe Reader. I am using some Javascript in my form. Is there any way to minimize the time it takes to open the form? Thanks for any

  • ITunes 9 crashes when connecting to store

    iTunes 9 is not functioning at all. The problem seems to be linked to something called webkit.dll?? Safari 4 has the same problem. At this point, iTunes is unusable.

  • How to display data in table region

    HI All, I have a requirement to display data from a VO to a table region after clicking the GO button please help me on this. Thanks Deb

  • Oracle UCM VS Share Point

    can any one please give me the diffrences between oracle UCM and Sharepoint?