Beginner Actionscript Resource Question

Are there any good resources that explain how to set up a .as file to run a flash app?  I've purchased two books and they both utterly suck at this.  This should be easy material, but I can't find anything.  I don't want to code in the timeline.  I don't want to buy another book for this.
Thanks for any help.

if you want to use a .as file without code, you are basically screwed. .as files are code, and the file does not have any way to know you want to use it without you explicity telling it to use it. if the file is in the same work directory of the rest of your project, you dont have to do that much, you can use it as you would any code written in the same movie, if you are using a class declaration (but the filename of the .as should be the same name as the class declared inside). if you are keeping this file in some other directory, you must use 'packgage' and import declarations according to your file tree structure
filename example.as
package {
public class example { // extends Sprite {
public static function example_func():void {
trace("called from a movie");
} //example_func
}//class
}package
_________in a movie inside the same directory:
example.example_func();

Similar Messages

  • Beginner Flex2 / AS3 question

    I am a beginner by all respects and have decided to develop
    an FTP via browser application for my company website in my free
    time. Before I buy a few Flex 2 and Actionscript books for myself
    and dive in, I figured it might be smart to ask the community if
    its even possible or recommended.
    Can you (should you) use Flex2 / AS3 as the basis for a drag
    and drop .ftp through browser application? If so, feel free to
    advise me on any Flex packages or methods to use as a basis and I
    can place emphasis on that in my learning.

    One thing I'd like to point out, generally I'm all for
    recreating something on my own but for something on that magnitude
    I'd suggest checking out this link, someone has already pretty much
    created what you need to accomplish.
    http://www.onflex.org/ted/2007/05/flexftp-ftp-client-in-flex-using.php
    obviously if your not using PHP you can change the server side
    around to reflect your needs but the source there has already
    tackled some of the major issues of a(n) FTP client in Flex. One of
    the biggest ones is with sockets you don't know when it's full so
    you constantly need to clear it. However if you were to use the
    FileReference classes (based on HTTP protocol) your going to need
    to configure your server to allow large buffer sizes for files to
    be uploaded as well as setup long timeouts. The other drawback is
    using sockets theres no way to create a true progress of what's
    been done. Just my two cents. Hope this helps.

  • Storage Resource question

    Hi,
    I have a question, Can I use Storage Resources in Discrete Manufacturing? If so, is there a specific configuration for it?
    This question is because I have Discrete Manufacturing in my plant and there is a process where I have to make a liquid base preparation which then I keep it in a tank so I can bottle it later in different sizes and flavours, and in different machines. Is there a way in Discrete Manufacturing to model this tank so I can link my liquid base preparation which is made with a PPM to the final product from another PPM?
    Thank you in advance,
    Fernando

    Hi,
    I have written an article about storage resources in discrete manufacturing in SNP Optimizer. Please take a look.
    http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/bpx-community/supply-chain-management/how%20to%20plan%20with%20constrained%20storage%20in%20apo%20supply%20network%20planning%20with%20optimization-based%20planning.pdf
    In PP/DS it is a different story.
    Regards
    Frank

  • Beginner training resources

    Greetings RoboHelpers,
    I've recently downloaded a trial copy of RoboHelp 9 and am just trying to get oriented. My help production system is currently based on Frame 8 and Quadralay WebWorks, so at least I have some single-sourcing experience.
    I've been plowing through the product help, but as the "Getting Started" section doesn't actually seem to provide much meaningful assistance in terms of ... well, actually "getting started", I was wondering if there's not some basic resource somewhere that would walk one through setting up a project, mapping styles and generating some basic output, etc. to start getting a feel for the product. 
    I dabbled with RoboHelp years back prior to the Adobe aquisition - it certainly seems to be vastly more extensive compared to those early days. In particular, I'm hoping that RoboHelp is more customization-friendly than WebWorks, which I've been finding to be too kludgey and brittle in many respects. I appreciate any tutorial suggestions anyone might have, as well as any input w/respect to the whole WebWorks v. RoboHelp question! 
    Cheers, Brian S.

    There's also a bunch of stuff on Peter Grainge's website (grainge.org) and Rick's RoboWizard site (robowizard.com).

  • Beginner Menu Layout Question

    Hello,
    I apologize since I know this question has to be answered somewhere but I'm not sure how to search it...
    What is the proper way to build a menu for a website?  I have built my homepage with the header, footer, and side menu that I like.  Now I want to build pages that the menu link while keeping the header, and menus.  What is the right approach?  My code is written in html and css.  I use to develop websites in pure html and used frames but I know they are not recommended.  Also, I don't want to have to copy my code into each link.
    If you could also recommend a good beginner tutorial on layout for css websites, I would be greatly appreciative.  I have read through w3schools tutorials and a few others.
    Thank you in advance!
    -Eric

    You have 2 choices:
    Templates    
    Server Side Includes
    Using the template function within Dreamweaver is a good way to go if it's a small site . .
    For larger sites then serverside includes would be more practical and easier for maintenance purposes.
    Templates:
    You create a master template page, you declare which areas will be the same for every page, (non-editable regions)  and then declare an area that will
    change on every page (the content area) , these are editable regions.
    Once you create the template and save it, you are then able to create 'child' pages from this template  - as many as you like  :-)  If you every need to make a change to the menu or the footer or the header, change it in the master template, save it and the changes will flow through to the child pages created from the template.
    Using DW Templates:
    http://www.adobe.com/devnet/dreamweaver/templates.html
    http://www.adobe.com/devnet/dreamweaver/articles/dw_templates.html
    The other option is to use Server Side Includes (SSI)
    A bit more about SSIs here:
    http://help.adobe.com/en_US/Dreamweaver/10.0_Using/WSc78c5058ca073340dcda9110b1f 693f21-7b6ca.html
    http://bignosebird.com/ssi.shtml
    Using PHP includes if your server supports php:
    http://www.w3schools.com/PHP/php_includes.asp 
    One major difference between using Templates and SSI and PHP Includes?
    When you make a change to a template page, you will need to re-upload all the pages to the server that were changed - may become very tedious if it is a very large site.
    With using SSI, you make a change to one file and only have to upload the one file and all pages on the server will be update accordingly.
    When to use Templates, Library Items & SSIs -
    http://www.adobe.com/devnet/dreamweaver/articles/ssi_lbi_template.html
    Nadia
    Adobe® Community Expert : Dreamweaver
    http://www.perrelink.com.au
    Unique CSS Templates | Tutorials | SEO Articles
    http://www.DreamweaverResources.com
    http://csstemplates.com.au/
    http://twitter.com/nadiap

  • Beginner Unity Connection question

    I have a very simple beginner question I would've thought would be really easy to find the answer, but so far, I have not.
    To set up a call system call handler for your basic company main number, do I need a physical phone with the number attached to a line.
    I've tried it without the physical phone and can't get it to work, but with a line, no problem?
    thanks

    Thank You.
    Figured it would be fairly simple, just needed to know where to start.
    This might be the answer to another beginner question I have been thinking about also.
    Is it common for users to call their own number when they are calling in from outside to pick up vm and then press * to access?
    The Meridian system we are tossing has a common DID number, but the way our vm was setup, the number is internal. I'm not sure if calling your own number is common or if I need to make a new number, or another CTI rp sort of thing and forward to internal vm DN.
    Hope that makes sense.

  • ActionScript version question?

    Hi, I need to make a flash game using action script and i have read some tutorials about it, most of them are using actionscript 2.0.
    My question is, what do you think can happen if I use actionscript 2.0 instead of 3.0.
    I mean, would it work correctly in the current browsers? sorry for asking this, maybe is a silly question, but flash and AS is not my everyday working tool.
    I know that since actionscript3.0 is newer have some advantages, but since I dont have much time to do it, i´ll prefer to make it in AS 2.0 since i understand it better than AS 3.0.
    If you have any comment, please let me know i will really appreciate it!
    Thanks!

    The Flash Player supports all versions of actionscript so if you are able to use AS2 to complete the design you should not have any problem.

  • IDCS5 Mac - Resource question

    My current project may open up as many as 194 documents in a session before it starts telling me that it is unable to open up the next document in line because it is "damaged."  Yet when I get out of InDesign, return, and open the documents that were reported as damaged, they open just fine.  Additionally, the plugin that was being used to open all these documents will open the documents just fine and do what it is required to do.
    BTW, if I process a lesser number of documents through the plugin in question in the Debug version, no leaks are reported when I exit InDesign.
    Is there a resource limit involved here that I should know about?  And if there is, is there any way around it?
    Please be advised that I am using ProcessScheduledCommands() to ensure that a document is really closed once I tell InDesign to close it.

    macinbytes wrote:
    If only I could do that with my keys, I'd have as many points as Peter.
    I'd gladly give you a few, but there's no way to do it.  And I still don't have the t-shirt...

  • Flash/ActionScript Interview Questions

    We are currently hiring for a Flash position. I am trying to
    come up with
    some good ActionScript questions for the interviews. I have
    looked all over
    the net and can't seem to find anything like what I am
    looking for.
    I don't want general programming questions like "when would
    you use an
    interface class?" So far I have the following... feel free to
    critique
    these questions.
    1. What are a few ways to cause an event to occur on a timed
    basis?
    2. How do you add a listener to another object? What are some
    of the
    built-in broadcasters?
    3. How would you create and use a custom broadcaster for the
    event
    "onNextItem" broadcasting to the MovieClip "itemSheet"?
    4. What are some of the primitive data types in Flash? What
    would be a
    foreseeable use of each?
    5. What are some of the complex data types in Flash? What
    could they be
    used for?
    6. Can you mix data types in an Array, what about an
    associative Array
    (Object)?
    7. What are the two ways to create a new, empty object ready
    for use?
    8. What are the two ways to access a property of an object?
    9. What are some methods for getting data from a web server
    via the http
    protocol?
    10. Which built-in classes do you use the most?
    11. Which third party classes/libraries do you use?
    Please let me know if you can think of any others.
    Thanks

    Whic are good for Interview and Adobe Flash Developer Cirtification.

  • Animated .gif actionscript 3 question

    I hqve some small swfs that I need to convert to animated .gifs for
    a client. I assumed this this was a painless task but I was oh so wrong as the bigger the swf the worse
    the animated gif looks. But I have some small.swfs I need to convert and I did and they do not look bad but my problem is the swf had clikTag info in it for googleadwords. When I converted to animated .gif the file does not have any actions inside, which leads me to ask how do I pass actionscript to an animated .gif done in Flash?
    anybody??
    rdee

    HTML links are likely your only recourse.  If you need help with that, visit the Dreamweaver or web design forums.  They might have some alternative approaches to offer as well, possibly using javascript or something along those lines.

  • Failover Cluster Core Resources question on a Windows 2008R2 three node cluster

    We have a three node Windows 2008R2 cluster with SQL Server 2008 R2 as a clustered resource. There are three resource groups in this cluster 1) Available Storage 2) Cluster Group 3) SQL Server.  The Available Storage and SQL Server resource groups
    reside on one node while the Cluster Group resides on another.  The only resources residing in the Cluster Resource Group is the Cluster name and IP.  I'd like to failover the Cluster Resource Group to be on the same node as everything else. 
    I'm not sure what the implications are on doing this.  Failing over the Cluster Group shouldn't have any impact on the SQL Server Resource Group correct or would there be an interruption to SQL because of the failover of the Cluster Group.  It's
    an critical application of which I'm trying to gather some information for a change request and I know I'm going to be asked if this impacts the production database and everybody using it.
    Thanks
    RG

    No, that should not impact anything.  The cluster group is completely separate from the SQL group.
    . : | : . : | : . tim

  • Directory manager resource question

    Folks,
    On page 273 on the Iplanet DS Admin Guide it says that the directory manager receives unlimited resources by default. Using Dirsync, I get limits on look throughs and size limits. Also, from the console, the DM can only display 5000 entries (is this a console limitation???).
    Is this correct? If so, then why do dirsyncs fail to the message server fail unless I up those limits?
    thanks,
    keith

    I was wrong. It is not the directory manager but some guy named:
    uid=msg-admin-wip.acu.edu-20030205161045, ou=People, o=<mail domain>, o=<mailhead>,dc=<school>,dc=edu
    Once I fixed this entry's nsLookThroughLimit and nsSizeLimit and reset the defaults to 5000 and 200 respectively, dirsync still works.
    I found this out only by searching through the ldap logs for who was connecting.
    thanks and sorry,
    keith

  • Hello, Actionscript 3 question. please help!

    Hello, I'm new to Actionscript 3 and still getting the hang of all the changes and such. However, one problem is sorely annoying me, and I need some outside opinions on what could be wrong. The code is basically a rewritten version of some code I found someplace else, and my main goal is to find out the error with the code. The code looks like:
    package
    import flash.display.MovieClip;
    import flash.events.MouseEvent;
    public class Main extends MovieClip
    var sceneOne:SceneOne;
    var sceneTwo:SceneTwo;
    var sceneThree:SceneThree;
    public function Main()
    sceneOne = new SceneOne(); trace("Working");
    sceneTwo = new SceneTwo(); trace("Working");
    sceneThree = new SceneThree(); trace("Working");
    addChild(sceneOne); trace("Working");
    //Add event listeners
    this.sceneTwo.OutsideButton.addEventListener(MouseEvent.CLICK, onHillButtonClick); trace("Working");
    this.sceneTwo.bathroomButton.addEventListener(MouseEvent.CLICK, onPondButtonClick); trace("Working");
    this.sceneOne.livingRoomButton.addEventListener(MouseEvent.CLICK, onBackButtonClick_Hill); trace("Working");
    this.sceneThree.livingRoomButton.addEventListener(MouseEvent.CLICK, onBackButtonClick_Pond); trace("Working");
    //Event handlers
    function onHillButtonClick(event:MouseEvent):void
    addChild(sceneOne);
    removeChild(sceneTwo);
    function onPondButtonClick(event:MouseEvent):void
    addChild(sceneThree);
    removeChild(sceneTwo);
    function onBackButtonClick_Hill(event:MouseEvent):void
    addChild(sceneTwo);
    removeChild(sceneOne);
    function onBackButtonClick_Pond(event:MouseEvent):void
    addChild(sceneTwo);
    removeChild(sceneThree);
    The error is occuring @ line 22, saying:
    TypeError: Error #1010: A term is undefined and has no properties.
    at Main()[/Users/Mike/Documents/Main.as:22]
    I'm unsure as to what the problem is, as I give it properties. Please help, thank you.

    I think you should rethink the way you're constructing this...
    I could be wrong but it has some flaws... example:
    [email protected] wrote:
    function onBackButtonClick_Hill(event:MouseEvent):void{
    addChild(sceneTwo);
    removeChild(sceneOne);
    looking to this function, I imagine a situation when you click a button to run this function...
    it will add "sceneTwo" to the stage and remove sceneOne... Ok!, but what if we were on sceneThree and not on sceneOne?
    It will try to remove a scene that doesn't exist.
    If that's the problem, you could solve it by using if statements for example.
    Another way is to create a var called something like "currentScene" and at the end of every function/method you first remove the currentScene, then add the new child and set it as your "new" currentScene.
    Well, it's just a guess anyway
    I'm going to sleep now
    Hope you solve your problem.

  • MS Project Resource question

    Hello,
    In MS Project i'd like to add resources to tasks, but this results in some problems
    For example i have 1 person (Daan) scheduled on a task for 5%.
    But i the resourcesheet MS project has scheduled him 40 hours a week for the first task.
    Why does MS project schedule him for 40 hours in stead of the 2 hours a week (5%) i filled in?
    With kind regards,
    Erwin

    Hi,
    Which version of MS Project are you using? Is it connected to Project Server or standalone? Can you detail the exact sequence to reproduce the issue? Or screenshots?
    Hope this helps,
    Guillaume Rouyre, MBA, MCP, MCTS |

  • Actionscript 2  question

    I have about ten days of actionscript experience. I'm taking
    a break from the book and trying a few things on my own.
    Anyway, I'm trying to set a boolean variable to true from
    inside a movie so that it effects the actionscript on the _root
    frame1.
    Specifically, when the movie comes to it's last frame, I want
    the variable "frame12" to be true and "pass(?)" this information
    back to the main timeline and use it to start another movie.
    Right now I've declared my variable on the _root like this:
    var frame12:Boolean=false;
    In the last frame of the movie I've put this:
    frame12=true;
    I'm going to put all the code I've written thus far. Any
    suggestions or comments are appreciated. Like I said, it's not a
    "project", just some experimenting so any comments are appreciated.

    Thanks, that's helped. Now the variable frame12 is true, but
    for some reason it becomes true before it gets to the last frame
    where the code is: _root.frame12=true;
    Here's some more detail: I have two instances of the same
    movie. When the user releases myMovie1_mc.button1 of myMovie1_mc it
    makes myMovie2_mc visible and plays the movie starting at frame-1
    to frame-12 where it stops. When the user releases
    myMovie2_mc.button1 of myMovie2_mc I would like it -- myMovie2_mc
    -- to play to the last frame where _root.frame12=true would tell
    myMovie1_mc to THEN play from frame-12 to the finish. The effect
    would be, myMovie2_mc would be come invisible and THEN myMovie2_mc
    would be come invisible.
    But this doesn't happen.
    Instead, when I release myMovie2_mc.button1 of myMovie2_mc,
    both movies start playing from frame-12 before the variable frame12
    has been turned to true.
    Here's the code that applies:
    myMovie1_mc.button1_mc.onRelease = function() {
    myMovie2_mc.button1_mc.buttonText_txt = "parent";
    myMovie2_mc.gotoAndPlay(1);
    myMovie2_mc._visible = true;
    myMovie2_mc.button1_mc.onRelease = function() {
    myMovie2_mc.gotoAndPlay(12);
    //a test to make sure the button works
    _root.gotoAndPlay("parent");
    //should make myMovie1_mc play and does just not when I
    expected
    if (frame12=true){
    myMovie1_mc.gotoAndPlay(12);
    }...

Maybe you are looking for