Good way of coding?

Hi guys,
Im working on my first website in flash and i was wondering if i code in a good way.
I dont have experience with flash websites at all only animation.
So i thought im in for a greater project like my own website in flash because its now php.
If there are any tips you can also post them below.
- its not an external swf like in the attach
- im using the greensock class
p.s.sorry if my english is bad.
Edit: Im using as3.0

i got the soln..

Similar Messages

  • Good way to start with the WM programming?

    I follow "Community Contributions" and I'm testing every new WM what's out there. I know C and I would like to write the WM. How did you learn to write your first WM?
    What would you suggest to starting WM programmer? Reading Xlib (or others) reference manuals or just studying other WM's source code? Or something else?

    TTWM's code is a complete mess.  I don't know what kind of fool is responsible for that collection of kludges!
    I'll second the recommendation for TinyWM, but once you want to dig deeper I'd suggest looking at other non-reparenting window managers.  I don't know of any non-reparenting floating WMs other than TinyWM, so that may leave you with the tilers - many of which have been mentioned.
    Dwm is a good choice.  That is some finely polished code that has some bright people working for some time to perfect it.  But it has the downside for learning that it does implement many more "complex" features.  It can also be hard to follow the program logic sometimes as there are so many function calls - you have to scroll back and forth through the code while trying not to lose your place ... bring your breadcrumbs.
    In my own coding I try to minimize function calls - not for optimizing the code, as the compiler will handle this pretty well - but for making it more readable.  In every place where a series of actions will be executed in a linear order, I try to keep the commands presented in a linear order within the same function.  Along with this I avoid complicate macros or inline functions: if they'll be inlined anyways, there is no saving on resource use at run time, but only saving a few lines of code while sacrificing the ease of reading and understanding.
    Also, if you have not found it yet, I highly recommend Christophe Tronche's Xlib guide.  I can't say I ever just read through it from start to finish (yet), but when I google any Xlib related function if there are any entries on tronche.com that is the first one (and then often the only one) I look at.
    PS: there's nothing fancy about workspaces/desktops.  You just maintain a list of client windows on each desktop - or have "tags" associated with each client - then when the user changes desktops you just hide all windows that are not on that desktop/tag and show those that are.  Hiding can mean "unmapping" but I preferred an easier hack which I found the dwm authors also used: just move the window (XMoveWindow) off of the screen. Unmapping might even be problematic as it generates a set of events when unmapped and remapped.  This can be remedied and there may be good ways of doing this, but moving off screen works for me.
    Last edited by Trilby (2012-09-26 01:32:22)

  • Does anyone know if apple's one-to-one program would be a good way to learn how to use logic pro or am I better off going to school to learn audio engineering or something?

    Of course going to school would be a good option, but I want to know if one-to-one is also a good way to learn how to use logic pro. Has anyone been through the one-to-one program for logic pro and can say that they learned how to use logic pro well because of it?

    For sure, one to one training, if given by a tutor who is capable, will hand you the means to build up self-confidence  and will therefore let you operate the hard/software in an intelligent manner, instead of going for the trial and error method which has its pro's and con's too. Once you've passed this beginners phase you will make your own decisions intelligently and then you will also start to get experience and learn even from your mistakes. Something like that in theory and the rest is up to you!
    Have a nice day

  • What are the good ways to send a big file( 20MB-100MB) file to my friend?

    what are the good ways to send a big file( 20MB-100MB) file to my friend?
    Thanks in advance

    if this is with the internet, iChat is probly your best bet,
    but if you just want a transfer,
    plug a firewire into both of your computers, shutdown one of them, hold "T" and press the power button, the restarted computer should pop up as an external drive on the second computer.

  • Is there a good way to automate changing existing links to external PDFs to instead be to PDF attachments with same names?

    Greetings!
    Can anyone tell me a good way to automate changing a "main" PDF's existing hyperlinks to external PDFs to instead be links to PDF attachments to the main PDF (the attached PDFs to have the same filenames as the external PDFs) ?
    Format of current link in main PDF:
    Go to a page in another document
    File: C:\\path\filename.pdf
    Destination name: P:1
    When link is manually changed to link to a PDF that has been attached to the main PDF:
    Go to a page in another document
    File: PDF attachment
    Page: 1
    Zoom level: Fit page
    The new PDF link does not list the PDF attachment filename in the link.
    The main PDF (the one that has the links that I would like to automatically change) is generated with the hyperlinks to other PDFs from Adobe FrameMaker 11.  In FrameMaker11, we added special marker text "openpage filename.pdf:1" that is "automatically" changed to be hyperlinks to external PDFs when the main PDF is created (postscript file is processed) by Adobe Acrobat Pro 11.
    My first choice is to be able to change the format of the special marker text in Adobe FrameMaker source file, but I have not found way to specify a link to be to a PDF attachment with a certain filename.
    However, I would also really like the option of running a batch file on a main PDF to change the links there.
    Has anyone tried using that Adobe ExtendScript ToolKit CS6 to do this? That is, a script that could automatically modify the hyperlinks in a PDF to link to PDF attachments rather than external PDFs, or else modify the unprocessed links while they are still in Postscript file format, or else modify the marker text in FrameMaker to instead of creating a link to a PDF in the same directory as the main PDF being processed, to create a link to a PDF attachment files?
    Thank you,
    Judith Wallace
    [email protected]

    FrameMaker's Hypertext feature has no ability to "link" to an attachment on/in a target PDF.
    PDFs sourced from FM can have named destinations set in the FM authoring files such that a link from file01.fm to the specified named destination in file01.fm will be functional in the PDFs created from the FM files.
    Then, of course, there's the dynamics possible by use o FM Books. But that's the grist for the mills at the FM user-2-user forum.
    RE: Scripting - PDF scripting is via Acrobat JavaScript. That something still of and by Adobe although it may migrate to an ISO Standard (or be rolled up in a future ISO 32000).
    So, to the point - look to Acrobat JavaScript for scripting.
    Be well...

  • Any good way to store pdf files in oracle 10g?

    have, i have many pdf files, i want to store in database. Any good way to do that in 10g? Or, I have to go to 11?
    thanks,
    t.k.

    mbobak wrote:
    Justin Cave wrote:
    user10217806 wrote:
    Can I store pdf in blob, and still search words in the pdfs?Probably not, no. If you want to search the data inside Oracle, you'll want to look at Oracle Multimedia.I think the correct answer is "not efficiently". :-)Well, there is nothing that prevents you from building Oracle Multimedia yourself and getting similar levels of efficiency. Other than a desire not to invest dozens of man-years replicating delivered functionality, of course.

  • Safari and Others Hang. Is there a good way to diagnose which process is being a trouble maker?

    I have a peculiar problem that has been developing for some time now.
    Current Symptoms:
      Safari (Any Version 5.0-Current) will load but WebProcess.app Opens to 100%
               on one core of CPU (Non-Responsive) and no web-pages will load.
      VLC.app launches in the same fashion, one process pegs to 100%.
      iMovie.app hangs.  Not crashing, but failing to successfully launch.
      Apple Script saved as an application behaves in the same way.
    Attempted Diagnosis:
          I'm currently running OS 10.7.3 on a Early 2009 Mac Pro.
         I have tried:
      Deleted Preferences, and Saved Application States. Then realized the
    problem can't be in ~/Lib/Prefs. because it also is a problem on a clean user
    profile I created to check. So I also looked in /Sys/Lib/Prefs. with no Success.
      I have run disk permissions more times that I can count. 
                    This comes up with regularity but solves nothing:
      Group differs on “Library/Preferences/com.apple.alf.plist”; should be 80; group is 0.
      Repaired “Library/Preferences/com.apple.alf.plist”
      Permissions differ on “usr/lib/ruby”; should be lrwxr-xr-x ; they are drwxr-xr-x .
      Repaired “usr/lib/ruby”
      Reinstalled 10.7.3 from the Combo Updater from apples website.  No Help.
      I did find launching any affected App from the Unix Exe File in the .app
             bundles (So it launches in terminal)  will open them and allow them to
             runwithout issue (yea! temporary fix)! 
    Finally I booted with -x into Safe Mode.  There the problem vanished.  Hooray
            it's another piece of  software or an extension I have loaded (Could  be any over
            the past 6 months or so)!
    So, I rebooted and tried to launch Safari immediately. It worked!  Only after a
            minute or so, when the GUI and background Apps had finished
            loading, the problem returns.
    What I need help with:
    Is there any good way to tell what application is causing the problem or what
    these four apps have in common?  I have looked at Console Logs, Crash Reports,
    etc. etc. but admittedly am not sure what to look for.  I would be happy to post logs
    or reports or more detailed info, if it would help.
    Otherwise Thank-you to anyone who reads this and has any good ideas short
    of a fresh install. Cheers!

    Hi...
    Reinstalled 10.7.3 from the Combo Updater from apples website.
    The only way to reinstall the Mac OS X or repair the startup disk running v10.7.3 Lion, is to use Lion Recovery The combo update does not do that.
    How much free space on the startup disk? Not enough free space can account for the problems with your apps.
    Right or control click the MacintoshHD icon. Click Get Info. In the Get Info window you will see Capacity and Available. Make sure there's a minimum of 15% free disk space.
    and no web-pages will load.
    Try using OpenDNS as suggested here >  Safari 5.0.1 or later: Slow or partial webpage loading, or webpage cannot be found
    Use OpenDNS for better speed, more security, includes anti phishing filters, prevents browser redirects, and it's free.
    Open System Preferences / Preferences then select the Network tab. Click the Advanced tab then click the DNS tab.
    Click +
    Enter these addresses exactly as you see them here.
    208.67.222.222
    Click +
    208.67.220.220
    Then click OK.
    edited by:  cs

  • What's a good way to dynamically allow shortened commands?

    I have a BufferedReader set up that attaches to System.in.
    so, when I check the BufferedReader, it will retreive any commands put in by a user.
    I will have a hash table for commands set up like so:
    "north", "dn"
    "west", "dw"
    "south", "ds"
    "east", "de"
    "follow", "follow"
    "flee", "flee"
    "flip", "flip"
    So, what I want is to be able to check all the commands and shorten them to the lowest amount of chars before they're the same.
    Therefore, for the example hash list, if I typed in "fle", the code would select "flee". Or, if I typed "fo", the code would select "follow". But, if I typed in "f", then the code would respond with a "command not found" error, because "f" could be follow, flip or flee. I want to make it so that I can type "follow", "follo", "foll", "fol", "fo", and "fo" to select the same "follow" command.
    Has anyone found a good way of going about this? If my description is confusing, I'll try to re-explain in greater detail.

    Demo: I'm using the nul character to represent the end of the word, so that the data structure can represent that "hell" and "hello" are both in the vocabulary:
    import java.util.*;
    class Node {
        private SortedMap<Character, Node> children = new TreeMap<Character, Node>();
        //0 <= index <= word.length()
        private void add(String word, int index) {
            if (index == word.length()) {
                children.put(Character.valueOf('\u0000'), null);
            } else {
                char ch = word.charAt(index);
                Node child = children.get(ch);
                if (child == null) {
                    children.put(ch, child = new Node());
                child.add(word, index+1);
        public void add(String word) {
            if (word == null || word.length()==0)
                throw new IllegalArgumentException();
            add(word, 0);
        public String toString() {
            return children.toString();
    public class Example {
        public static void main(String[] args) throws Exception {
            Node root = new Node();
            root.add("hello");
            root.add("how");
            root.add("who");
            root.add("hell");
            System.out.println(root.toString());
    }

  • What's a good way to manage custom schema for DS  5.1?

    What's a good way to manage custom schema?
    Custom Schema for Object Class and Attributes
    The reason I ask this is because there might be a need in the future where I need to export those custome schema into different branded directory server. I just want to make this as painless as possible.
    Right now, I thought of 2 options
    1) Create my own LDIF file with my custom attributes and object classes, so if one day I need to export to another directory server, I can just copy that custom created LDIF file over. (Will this work?)
    2) Create a JAVA application using JNDI. What this Java App. will do is read through a XML file and create those object classes and attributes on-the-fly. (of course, the XML structure will be predefined by me, so that my Java App. will be able to parse through it correctly. Will this work?)
    Anymore suggestion? I would want to hear more advices and suggestions.
    Also, I assume that will work even with replication. All I need to update is the master server, and the slaves will replicate automatically.
    Thank you very much! :)

    Demo: I'm using the nul character to represent the end of the word, so that the data structure can represent that "hell" and "hello" are both in the vocabulary:
    import java.util.*;
    class Node {
        private SortedMap<Character, Node> children = new TreeMap<Character, Node>();
        //0 <= index <= word.length()
        private void add(String word, int index) {
            if (index == word.length()) {
                children.put(Character.valueOf('\u0000'), null);
            } else {
                char ch = word.charAt(index);
                Node child = children.get(ch);
                if (child == null) {
                    children.put(ch, child = new Node());
                child.add(word, index+1);
        public void add(String word) {
            if (word == null || word.length()==0)
                throw new IllegalArgumentException();
            add(word, 0);
        public String toString() {
            return children.toString();
    public class Example {
        public static void main(String[] args) throws Exception {
            Node root = new Node();
            root.add("hello");
            root.add("how");
            root.add("who");
            root.add("hell");
            System.out.println(root.toString());
    }

  • What's a good way to do a thread dump into a separate file

    What is a good way to do a thread dump automatically into a separate file.
    Example. I run a script to do the thread dump, but unfortunetly, it goes into my stdout log file with the rest of my weblogic errors.
    Any ideas? I want it in a separate file when I run my script?

    Do a Google search on "Drobo S" "benchmark."  I don't have a Drobo S, only the regular Drobo.  But here's a guy who tested one on Windows:
    http://mansurovs.com/drobo-s-review-usb-3-0-2nd-generation
    This one has it a bit faster:
    http://the-gadgeteer.com/2011/12/31/drobo-s-storage-array-review/
    Do read up on a few reviews of it, and be absolutely clear that interface speed (i.e. eSATA versus Firewire versus Thunderbolt) is NOT the same as the performance of the system.  The Drobo cannot keep up with any interfaces... at least the Drobo and the Drobo S cannot.
    I am not using the FS model which is a NAS.  I am using the plain old "Drobo" which is slower than the Drobo S, but that's not to say that the Drobo S is fast, because it is not.
    The Drobo in theory is really attractive: Dead simple to manage, can mix and match drive sizes, offers you some data protection, etc.  However do note that protected storage is not, in and of itself, a backup.  You need other backups besides just the data on the Drobo.  And, because it's so slow, it's really not a great fit for photo storage.  See this review from a guy who used to think the Drobo was great for that and then appended his review:
    http://www.stuckincustoms.com/drobo-review/
    To be as clear as possible, IMO the BEST backup strategy with something like Aperture (so long as your managed Aperture library is of a manageable size, like < 800 GB), is to get a few small portable Firewire 800 drives and keep vaults on each one.  They are great because they are easy to use, to have with you, are bus powered, and you WILL offsite them.

  • Is java servlet a good way for developing a website

    Hi,
    i am developing a website that has to download huge data and upload huge data .also money transactions through credit cards need to be involved.is java servlet a good way to do this or should i use an ejb or any other technology.
    Any help is appreciated.

    Thanks for the reply.But di i need to use threading of some sort or can i directly write private methods to fulfill the purpose.Also is there any way my servlet can recognise when a device is connected to a usb port of local machine
    any help is appreciated

  • Is this a good way for loading and handling an xml file?

    I'm new to xml files, but it seems to me that a good way to handle them may be this:
    - create an xmltype table with a unique xmltype column
    - load the xml file in the xmltype column of the table
    - writing a procedure for scanning the whole column of the table by using the extractvalue built-in function for inserting the different nodes of the xml file (just loaded) in the final tables (to link correctly the father and son tags with foreign keys)
    Does it seem to you a good way to load the nodes of a xml file in a relation database?
    Thanks!

    Is this the 10gR2 Express Edition you mentioned over in How to load a XML file into a table or a different version?

  • What is a good way for a heavy iMovie HD user to learn iMovie'09 ?

    Hi Guys,
    I have been using iMovie HD to edit my videos since mid 2005. I understand that Apple will, sooner or later, stop supporting iMovie HD with updates etc (it may have done so already).
    I'm doing event and safety videos for the company I'm working for. I tried to edit a video in iMovie'08 and found it too different from iMovie HD and it was difficult for me to "unlearn" iMovie HD.
    What would be a good way to learn iMovie '09 ?
    I would appreciate any tips & pointers. Thanks in advance.
    Sincerely,
    Azman

    I think the best way is to jump in and make a movie. If you get frustrated about something you know you should be able to do, there is probably a way to do it and you can ask here.
    Also, there are some [very good video tutorials here|http://www.apple.com/findouthow/movies>
    I recommend you start with the iMovie 08 videos because they cover some of the basics, and Apple has not gotten around to doing some of these topics for iMovie 09. Especially watch the videos for handling audio and keywords. Then watch the iMovie 9 videos.
    The biggest thing is getting used to a different metaphor. iMovie 6 uses the timeline, scotch tape and scissors metaphor, while iMovie 09 uses a storyboard, copy and paste metaphor more like a word processing program. Both metaphors work. Both do the same thing. But it can be frustrating making the switch. Good luck.

  • Good way to manage running Java service

    I have a small Java http server, and I'm looking for a way to be able to tell it to shut down. As of now, it listens for a special "/SHUTDOWN" HTTP request, but I don't like that as any Joe Schmoe can do it. I can limit that to only coming from the localhost (a server), but still has the "anybody" issue.
    I'd like to get it to something I can invoke from the command line. In C++ I'd just send a signal, but that's not supported in Java and I'm not too hot to dig into JNI just for this.
    Any ideas for a good way to go about this?

    Make a shutdown hook and crtl-c the java program. That will invoke the shutdown hook and make it have a clean stop.
    Still applies for the any user thing though. :(
    There are some tools out there for wrapping java programs as services (for windows).
    As far your invoking from command line.
    Well you could always make the server have a flag called -stop for example that instead of launching the actual web server sends a shutdown request by HTTP or whatever to the server on the localhost.

  • Good way to start with the learning the 11g concepts

    Hi,
    I have a work experience on the BEA weblogic server 8.1 sp4 on which i have worked for about 2 year now. My current assignment requires working with the Installation/ Development and deployment in the Fusion middleware 11g server. Could some body please suggest me a good way to start with the learning the 11g concepts.
    I understand that all the documentations are available in the Oracle forum, but i want to understand where to start from.
    my core tasks in the assignment would be
    1. installation (OSB on top of WLS).
    2. development/configuration on OSB.
    3. Deployment and administrative tasks.
    regards,
    Prakhar

    Hi thanks for the update. I have been going through the links and found them very useful.
    I have few new doubts.
    In all the tutorials for getting started with the Fusion middleware, the examples which are given use the Oracle JDeveloper extensively. This IDE is used for implementing the BEPL and other important aspects. I found this very similar to the Workshop IDE initially bundled with the BEA-Weblogic 8.1. Is JDeveloper enhanced to accomodate the features of the Weblogic Workshop IDE?
    Also, i need some information regarding the Eclipse IDE which is bundled with the OSB installation. Are there any tutorials available which show how to use the Eclipse IDE with OSB.
    Also, can the Eclipse IDE be used to implement the same set of components which are being developed using the JDeveloper in the tutorials.
    My concern here is i want to know the best way to start with the training/development. I am already familiar with the Eclipse IDE and donot want to switch to the JDeveloped unless it is absolutely necessary. Can one of these IDE be used repeacebly in place of other.
    Please inform me if in case my wuestion is not clear.
    Regards,
    Prakhar

Maybe you are looking for

  • How do you add pictures instead of video into the comic book theme?

    I'm doing a project for school and I have to use the comic book theme in iMovie. In the box above the text where you would usually add a movie or video, I want to put photos. How do I do that? Thanks

  • Photoshop Elements (4.0) - opening iPhoto photos

    I'm using both iPhoto '08 (v 7.1.3) and Photoshop Elements 4.0. While in Elements, I do a file - open and browse to my Photos folder but the 'iPhoto Library' is grayed out. How can I easily edit my photos that I've imported into iPhoto with Elements?

  • Working with Matrix

    Hello, I've designed a form using screen painter that has a matrix with columns - IteCode, Description, Rate, Qty, LineTotal. Now i want this matrix to work as any normal matrix on Purchase Order or A/P Invoice etc. I have bouund a CFL to ItemCode co

  • CRM SURVEY SUITE + Dynamic Components

    Hi, all ! There are a lot of useful functionality described (http://help.sap.com/saphelp_crm50/helpdata/en/2c/2ddf3ac9ecc11de10000000a11402f/frameset.htm). But, unfortunately, a lack of knowledges HOW to realise this features. In particular, i'm inte

  • HP2207 monitor DVI-D cable

    Should I buy a single-link or dual-link DVI-D cable for my HP2207 monitor?  This question was solved. View Solution.