Rotating knob from AS2 -- AS3 help please

I'm trying to create a rotating knob that a User can turn
with the mouse. The initial code worked in AS2 but the rest of my
project is in AS3. so I started to convert it over (with help) Can
anybody help make it work in AS3?
I'm sure the "update Advent" is incorrect. also i would like
to have the knob only able to rotate 180 deg from initial position.
I'm thinking i need to fid the initial x,y position and the final
x, y position and use those as bounderies but not sure if there is
a way to do it with rotation<180 type of thing. thank you in
advance for any help, or direction.

kglad
can you help me with something so simple that im embarrised
to mention it :) i can't figure out what i'm doing wrong i have a
button in a child movie clip and im trying to control another movie
movie clip, that is also a child of the same main moive clip with
no luck, i use the "insert target path" but when i try to run test
the flash it gives me a error " the Toggle_up button was clicked
TypeError: Error #1010: A term is undefined and has no
properties.
at controlpanel_demo_fla::Switch_Air_18/clickButton()"
any ideas sorry to bother you again

Similar Messages

  • Hi! I have an account from UK and I want to switch to the US, I can't because I still have Pounds 0,65 left! I can't buy any app because it is not enough credit & I cant add an american credit card either. I don't have credit cards from UK. HELP please!!

    Hi! I have an account from UK and I want to switch to the US.
    I can't because I still have Pounds 0,65 left!
    I can't buy any app because it's not enough credit but I can't add an american credit card either. I don't have credit cards from UK. HELP please!!
    I want an account from the US since my credit card is american.
    Thank you!

    Contact iTunes support in the UK and request that they zero out your account so that you can change the country in your account.

  • Photoshop elements 12 do not open nef files from Nikon D610 , help please

    photoshop elements 12 won't  open nef files from Nikon D610 , I have to use DNG converter to openfiles on my elements 12, help please
    Thank you
    Ptrebor
    [email protected]

    Thank you,
    First I cannot find how to see what version is my Camera Raw, please give
    me a hint on that.
    Secondly,  I am using Windows 7 .
    Thanks again,
    Ptrebor
    2014-12-13 17:34 GMT-05:00 R_Kelly <[email protected]>:
        photoshop elements 12 do not open nef files from Nikon D610 , help
    please  created by R_Kelly <https://forums.adobe.com/people/R_Kelly> in *Photoshop
    Elements* - View the full discussion
    <https://forums.adobe.com/message/7012253#7012253>

  • Reset phone to factory settings to remove unwanted email addresses from autofilling.  Now trying to only sync real contacts, photos, and apps from backup.  HELP PLEASE!  :)

    Reset phone to factory settings to remove unwanted email addresses from autofilling.  Now trying to only sync real contacts, photos, and apps from backup.  HELP PLEASE! 

    All of this should be on your computer as you should be syncing regularly to your computer.. Just sync it back.
    iPhone User Guide (For iOS 4.2 and 4.3 Software)

  • Unsatisfied link when callind dll from run method Help Please?

    Hi,
    I get an unsatisfied link error while trying to calling a dll at a certain time period in a run method. The same dll works fine called in another setup and even called in a loop.
    Can anyone help please?
    import java.util.Timer;
    import java.util.TimerTask;
    * Schedule a task that executes once every second.
    public class TimeRetrieve {
        Timer timer;
        public TimeRetrieve() {
                 timer = new Timer();
            timer.schedule(new RemindTask(),
                        0,        //initial delay
                        1*1000);  //subsequent rate
        class RemindTask extends TimerTask
           String string_A;
           double d1;
         double d2;
         double d3;
         double d4;
         double d5;
         double d6;
         double d7;
         double d8;
         int numIter = 3;
         int start = 1;
            public void run()
                  if (numIter > 0) {
                  cinterface(start, string_A, d1, d2, d3, d4, d5, d6, d7, d8 );
              System.out.println("In Java action performed start button, after call to dll  \n");
              System.out.println("   string_A =  :" +string_A );
              System.out.println("doubles , \t  d1  \t d2  \t  d3  \t d4 \t d5 \t d6 \t d7 \t d8");
              System.out.println(d1 +"\t" +d2+"\t"+d3+"\t"+d4+"\t"+d5+"\t"+d6+"\t"+d7+"\t"+d8);
              numIter--;
                 } else
                 System.out.println("End Looping!");
                    System.exit
                 System.exit(0);  
        public static void main(String args[]) {
                   System.out.println("Starting Data Retrieval.");
                 new TimeRetrieve();
    // Load shared library which contains implementation of native methods
                    public native void cinterface(int start, String string_A, double d1, double d2, double d3, double d4,
                    double d5, double d6, double d7, double d8 );
                    static
                          try
                               System.out.println ("load cinterface"); //unsatisfied link
                               System.loadLibrary("cinterface");
                          catch (UnsatisfiedLinkError ee)
                               System.out.println
                                    ("Caught unsatisfied link error for dlls" );
                               System.out.println
                                    ("get local msg = " + ee.getLocalizedMessage() );
                               System.out.println ("getMessage " + ee.getMessage() );
                                   // System.out.println ("print Stack Trace " +ee.printStackTrace() );

    My mistake! I found it. Had some wrong names.

  • Downloading Apps from other sites help please.(sideloading apps)

    I have been trying to download Apps for my playbook from the Good E Readers site and have installed the DDPB installer but i am having problems with it.
    When i try to install the App from pc to playbook using the installer it gets as far as half way then a little box comes up saying Done and the App is then showing on my playbook.
    but when i click on the App on playbook a message comes up saying loading please wait but thats it.
    so why is it only getting as far as half way when downloading from pc to playbook?
    i have contacted them and they are not much help.
    is there any other sites that i can download more Apps?

    Another way that works with WiFi on Windows, Intel Macs and Linux.
    You install Chrome browser on your computer that you are using to download and sideload apps to Playbook.
    Then you add the extension 'Playbook App Manager' from Chrome's Spanner, then Settings, Extensions, then Get More Extensions (or Gallery if you have none yet)
    Download the required .bar file from Goodereader.com (Playbook Apps) to your PC downloads folder.
    Have both computer and Playbook connected by wifi to your router. (No usb cable!)
    Ensure File Sharing and wifi sharing are enabled in Playbook (Settings, Storage and Sharing)
    Put the Playbook in Development Mode (Settings, Security, Development Mode) and add a password, preferably your normal Playbook password.
    Look at the IP address of the playbook by tapping the Development Mode icon when you top corner swipe.
    It will begin 192.168. when using wifi.
    Go to Chrome in the computer and go Spanner, Settings, Extensions, then select “Options” in Playbook App Manager.
    Type the IP address you noted in Device Hostnames/IP
    Click Save
    Click on the IP address where it says ‘manage your devices’.
    Ignore the big red warning and click “Proceed Anyway”
    Enter your password you added in dev mode and click Log In.
    A list of all playbook apps will appear.
    Click on the Install button
    Go to the folder where you downloded the .bar file from goodereader.com and click on open.
    The app will be sideloaded.

  • Checking convert from AS2 - AS3

    I am praticing to convert AS2 to AS3 code . Here moviclip instance name is handle_mc. Here I have AS2 code and trying to convert into AS3. Will u please look at my code of AS3. Is my code is correct ?
    AS2 Code 
    stop();
        var t1:Number = 0;
        handle_mc.onPress = function() {
            if (t1>=0) {
                if ((getTimer()-t1)<300) {
                    popContent_mc.play();
                } else {
                    _root.main.pop_mc.startDrag();
            } else {
                t1 = 0;
            var time:Number = getTimer();
            t1 = time;
        handle_mc.onRelease = function() {
            _root.main.pop_mc.stopDrag();
    AS3 Code
    stop();
        var t1:Number = 0;
        function press_handle_mc(event:KeyEvent)
            if (t1>=0) {
                if ((getTimer()-t1)<300) {
                    popContent_mc.play();
                } else {
                    _root.main.pop_mc.startDrag();
            } else {
                t1 = 0;
            var time:Number = getTimer();
            t1 = time;
        function click_handle_mc(event,MouseEvent)
            root.main.pop_mc.stopDrag();
        handle_mc.addEventListener(KeyEvent.PRESS,press_handle_mc);
        handle_mc.addEventListener(MouseEvent.CLICK,click_handle_mc;

    No, you still have AS2 code elements in your AS3 code.  If you really are trying to learn this, and not just seeing if you can get people to do your design work for you, then you should be running the code, seeing what errors occur, and then researching how to fix them one at a time.  The compiler will be happy to tell you where you have problems.  That is how you will learn it.

  • CS5 Indents Different From CS3? Help Please

    I'm completely stumped.
    I recently switched over from dreamweaver cs3 to cs5 because it had been running slow. As soon as I made the switch I noticed that in design view EVERYTHING is indented weird. I know this doesn't explain much, but please see the images below. As soon as I publish and check the page live, the indents vanish. I have been searching for a way (maybe in preferences) to remove the weird indents from the design view in cs5 for the sole fact that it irritates me. If it helps, each item is seperated by <dd>. Anyone know what is going on here?
    CS3 View
    http://i42.tinypic.com/xq9a14.png
    CS5 Views
    http://i41.tinypic.com/i1ljyg.png
    http://i41.tinypic.com/1494aqf.png
    Thanks so much!
    Brian

    Unfortunately screenshots don't tell us much other than there's apparently a problem.
    Hard to comment without seeing the code.

  • Latest Adobe Reader update deleted all files from my desktop - help please!

    Dear all!
    Yesterday I opened up a .pdf document with Adobe Reader. I clicked the Help | Check for Updates option. The reader informed me that there was an update available. I then disabled my antivirus (as is recommended). I selected the available update by checking the box next to it. I then clicked the Download option.
    The update began to download. At that moment I noticed that the .pdf document was still open (i.e. Adobe Reader was still running). Knowing that the installation, when it begins, tends to notify me that it must close Adobe Reader in order for the installation to continue, I decided to close Adobe Reader myself before being prompted to do so. All was fine until that moment, as the update download and install runs in a completely separate process from the Reader, it was not affected.
    After I closed the Reader, with the update still running I noticed that all files I had on my desktop were gone. None of the folders were missing, just the single files and most of my shortcuts. I checked to see if the files were just invisible or phisically missing. It was the latter. Windows Explorer showed that all files I had on my desktop were gone (deleted/overwritten I guess). A search of my computer for the file names came up empty, even though I was searching with the "search hidden and system files" options enabled!
    I tried a number of deleted file restoration softwares but none have identified the desktop files I was missing.
    Be so kind as to spare me from the "did you check the power cord" category of "answers", as I am not a complete idiot. The Acrobat Update, or something associated with it has to be at the root of this problem, as the antivirus software I have installed came up empty when I searched the computer for virurses, worms and the likes...
    All help on this matter would be appreciated. Needless to say, most of my current work was stored on the desktop...
    I am running WindowsXP sp. 3, Acrobat Reader 9.34
    With regards
    jack_84

    Please ignore the previous unrelated reply - I will deal with it separately.
    I must first say that this is a very puzzling problem, and that I have never heard of anything like it.  Apart from the missing desktop content, it also puzzles me that you state your Adobe Reader version as 9.34, when the latest Reader version is actually 9.3.2.
    Anyway, how to solve it?  Can I assume that you do not have a very recent backup, from where you can simply restore all the lost content?
    I do not know if your desktop content is really gone (deleted), or if it is somehow just not visible.  There are a few things we can try, but I strongly suggest that you make a full backup of your system before you try anything!
    Since I have never seen this before, I cannot make any definitive recommendations, but just suggest what I would do if that happened on my computer.  Again, not before making a full backup.
    Uninstall Adobe Reader.
    System Restore to a time before the problem started.
    Check the following registry keys, if they have a value 'NoDesktop', and what it is set to
    HKCU\Software\Microsoft\Windows\CurrentVersion\policies\Explorer
    HKLM\Software\Microsoft\Windows\CurrentVersion\policies\Explorer
    If you are on XP Pro, you can use gpedit.msc to check these settings (Configuration | Administrative Templates | Desktop ["Hide and disable all items on the desktop"]).
    Message was edited by: ʇɐb ɹəuəllıʍ - typos.

  • Calling arraylist from another class - help please!!

    Hey, I need some help calling my arraylist from my GUI class, as the arraylist is in the 'AlbumList' class and not in the 'GUI' class i get the error 'cannot find symbol', which is pretty obvious but i cannot figure how to get around this problem. help would be greatly appreciated.
    i have written ***PROBLEM*** next to the bad line of code!
    Thanks!!
    public class Album
        String artist;
        String title;
        String genre;
        public Album(String a, String t, String g)
            artist = a;
         title = t;
            genre = g;
         public String getArtist()
            return artist;
        public String getTitle()
            return title;
         public String getGenre()
            return genre;
    public class AlbumList
        public ArrayList <Album> theAlbums;
        int pointer = -1;
        public AlbumList()
            theAlbums = new ArrayList <Album>();
        public void addAlbum(Album newAlbum)
         theAlbums.add(newAlbum);
    import java.util.*;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class GUI extends JFrame
        public int max = 5;
        public int numAlbums = 4;
        public int pointer = -1;
        public GUI ()
            super("Recording System");
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            JPanel main = new JPanel();
            JPanel panel1 = new JPanel();
            panel1.setLayout(new GridLayout(3,2,0,0));
            JPanel panel2 = new JPanel();
            panel2.setLayout(new GridLayout(1,2,20,0));
            final JLabel artistLBL = new JLabel("Artist: ");
            final JLabel titleLBL = new JLabel("Title: ");
            final JLabel genreLBL = new JLabel("Genre: ");
            final JTextField artistFLD = new JTextField(20);
            final JTextField titleFLD = new JTextField(20);
            final JTextField genreFLD = new JTextField(20);
            final JButton nextBTN = new JButton("Next");
            nextBTN.addActionListener(new ActionListener()
                public void actionPerformed(ActionEvent e)
                    pointer++;
                    artistFLD.setText(theAlbums.get(pointer).getArtist());       ***PROBLEM***
                    titleFLD.setText("NEXT");
                    genreFLD.setText("NEXT");
            final JButton prevBTN = new JButton("Prev");
            prevBTN.addActionListener(new ActionListener()
                public void actionPerformed(ActionEvent e)
                    pointer--;
                    artistFLD.setText("PREVIOUS");
                    titleFLD.setText("PREVIOUS");
                    genreFLD.setText("PREVIOUS");
         panel1.add(artistLBL);
            panel1.add(artistFLD);
            panel1.add(titleLBL);
            panel1.add(titleFLD);
            panel1.add(genreLBL);
            panel1.add(genreFLD);
            panel2.add(prevBTN);
            panel2.add(nextBTN);
            main.add(panel1);
            main.add(panel2);
            setVisible(true);
            this.getContentPane().add(main);
            setSize(500, 500);
    -----------------------------------------------------------------------Thanks!!
    Edited by: phreeck on Nov 3, 2007 8:55 PM

    thanks, it dosnt give me a complication error but when i press the button it says out of bounds error, and i think my arraylist may be empty possibly even though i put this data in.. this is my test file which runs it all.
    any ideas? thanks!!
    public class Test
        public static void main(String []args)
            AlbumList a = new AlbumList();
            String aArtist = "IronMaiden";
            String aTitle = "7thSon";
            String aGenre = "HeavyMetal";
            Album newA = new Album(aArtist, aTitle, aGenre);
            a.addAlbum(newA);
            aArtist = "LambOfGod";
            aTitle = "Sacrament";
            aGenre = "Metal";
            Album newB = new Album(aArtist, aTitle, aGenre);
            a.addAlbum(newB);
            aArtist = "JohnMayer";
            aTitle = "Continuum";
            aGenre = "Guitar";
            Album newC = new Album(aArtist, aTitle, aGenre);
            a.addAlbum(newC);
            aArtist = "StillRemains";
            aTitle = "TheSerpent";
            aGenre = "Metal";
            Album newD = new Album(aArtist, aTitle, aGenre);
            a.addAlbum(newD);
         GUI tester = new GUI();
    }

  • Trying to restore from Time Machine - HELP please

    I tried to restore from time machine this morning...and am getting this error :good morning, "an error occurered (2) while copying, there is no such file or directory"
    any idea?????
    TIA

    lol, it didn't say goodmorning.
    Last night my mac froze, i had to turn it off buy the button on the back...i tried to turn it on, it just hangs at the gray screen with the apple on it and the little circle things goes around and around and around. I put in my leopard OS disk and went to utilities to do a disk scan repair, it said no valid packages found...i dont know what to do with that...Ithought i could do a simple restore from my time machine...what you saw above is the error i got...
    I don't know what to do or how to get my machine back to normal.
    Can you help me?

  • All Music and Video gone from Ipod classic - help please.

    I unplugged my ipod from my work pc yesterday and found that all the music and video have apparently been erased.
    I've plugged it back in this morning in the hope that an xml file needs rebuilding somewhere and itunes is showing my ipod as empty, even the pc thinks there is 150gb+ space on there. Sharepod also thinks it's empty.
    The strange thing being that some old photos that were on there have remained. I don't use the sync feature and unfortunately my back up external disk which contains my music library is in another country at the moment.
    Have my files gone forever?

    Sounds like the directory holding the music has been erased. Odd that it still had some photos. An undelete/unformat software might be able to rebuild most of your files from "free" sections of the disc that haven't yet had anything new written into them. If you can recover the files to the point that they are taking up space on the iPod's drive (or they can be copied to another drive) there are other posts that help with rebuilding them into a library.
    There probably are some suitable free tools out there if you can wade through all the "free" recovery tools that are only free up until the point of any actual recovery.... Otherwise shell out a little cash or wait until you can be reunited with your backup.
    tt2

  • Applescript process message body from mail rule help please

    Would someone be kind enough to help me figure out how to do this?  I've been reading for hours on other posts and I can't get this to work.
    Here is an example:
    I would like to set up a mail rule to run an applescript that searches the body of the email for "-Front Door- Open".  I then want to parse the body and sets myDevice= "-Front Door-" and myState="Open".  After I have these variables set, I want to make an call to something like https://foo.me.com/api/token/${state.accessToken}/smartapps/installations/${app.id}/Notify?device=${myDevice}&type=ContactSensor&state=${myState}
    I understand how to do the mail rule, I just can't figure out the applescript part of it.

    The script works just fine - at least, as designed if not as expected.
    When the script runs, Mail and/or AppleScript looks for a perform mail action handler. If that is found, the commands within are executed.
    If there is no perform mail action handler then the script is run as-is (i.e. as if you clicked 'Run' in AppleScript Editor).
    And that's exactly what's happening here. In the first case (that works) the script is running because there's no (visible) perform mail action handler.
    In the second case where it apparently doesn't work, there is a handler, so that handler is being executed. Any code outside that handler is ignored (unless it's called from within the perform mail action handler.
    Since your 'say' command is outside the handler, it is ignored. However, if you move it inside the perform mail action handler you'll hear your speech.

  • I'm finding it difficult creating exporting EPUB from pages. Help please!

    Hello,
    I'm finding it quite complicating on how to create and export EPUB files from pages so I can use these to send to iBooks on the iBook store.
    Can someone please tell me in the simplest term, how to create and export an EPUB file in pages please???
    Thank you!

    That's fine. If I wrote my book on pages on iPad, could I send via email as pages doc to my mac then open in pages on my mac and then export to EPUB from my mac?
    I like writing on the move.
    Thanks

  • Can't Load garageband 3 from DVD? HELP PLEASE

    I bought the ilife'06 DVD and no matter how many times i've tried, it won't install GarageBand 3. I tried to 'customize' install and it didn't work. Everything else updated (i.e. imove6, iphoto6 etc). Can anyone help me?
    I have an ibook G4-OS version 10.4.7. (No dvd burner though).
    Thanks,
    Rick

    Thanks HangTime....i'll just bring it into the store and get them to fix it! I've tried a few times now and now it says"there were errors installing software"."Please try installing again".
    Thanks again Hangtime!

Maybe you are looking for

  • How do I save a project so that I can watch it using QuickTime? (iMovie 10.0)

    Just updated from an older version now that I am running Mavericks. I am a teacher and edit inappropriate content from video so that my classes can still watch them. In the past I have always 'exported' my projects which enabled them to be viewed in

  • Solaris 10 Installation CDs

    Hi, I have downloaded solaris 10 installation CDs from site, verified them with checksums and burnt then into 700MB CDs. When I put the first one into CD-Rom and issue "boot cdrom" it prompt smthing like: there is no executable file ... What is the p

  • (CS3) Play Button vs. Enter Button on Remote Control

    Hello all- I'm hoping the answer to this is something so obvious I couldn't help but overlook it. However, after lots of searching I still can't figure it out. Any input would be great. Thanks! I have an Encore project with 1 menu, containing 1 butto

  • User Exit  during TO confirmation

    hello, I need to find a user exit that we can use during TO confirmation..need to capture some information from the TO , such as source , destination bins , quantity and user ....plz advise Kind Regards Edited by: BrightSide on May 18, 2009 9:29 AM

  • Forgot where I linked to save Screenshots on Mac, How to find out?

    Forgot where I linked to save Screenshots on Mac, How to find out? hi, I have changed the location (default was on desktop) to save the screenshots on Mac (software: MAC OSX Version 10.7.3). But, I forgot where was it linked to (the new location). Is