Flash CC to canvas and spreading code over several frames

I know about the relationship between flash and CreateJS, and I know that I could step away from the flash interface for A LOT of what I'm after and simply use it to create a nifty library of assets and have all my javascript as external files. That's not what I'm after (although using a text editor with proper syntax highlighting would be wonderful!). I wish to keep as much of my workflow as possible inside of the Adobe Flash CC interface.
The question comes in two parts, the second being a followup question:
1) Where I before used to save code in external as files, since now the external javascript gets created (combined) when publishing the flash project, I thought I'd better keep all my code inside of flash. Is this a mistake? I'm after ease of use and keeping my projects structured.
2) If I keep my code inside of flash I'd never nest it in movieclips. I'd keep it all on the main timeline strictly. Back in the golden flash days for decent but smaller apps I'd put general helper functions and imports on the first frame, then maybe some preloading graphics on frame 2 with minimal code for that. Finally "the app" on frame 3 with more specific code to manage the interface. This made everything load quickly and I could spread the app functionality naturally over a few frames to make it easier to visualise and manage. But exporting for canvas/javascript I can't even get code on one layer to recognise the functions on another. Do I really need to scope main timeline functions on creation to get it to work?
I'm really after basic advice on workflow and project structuring.
Thanks!

1) that's a strange question considering you prefaced it by saying you want to keep everything in flash.  so yes, given that requirement (ie, you want to put everything, if possible, in flash), put all your code inside flash.
2) you need to scope everything. there's no problem (from flash/exportJS) spreading code over different frames/layers, if that's what you want to do.  you probably just need to be more careful with your scoping if think code in one layer won't recognize functions in another layer.  ie, in your top layer, use:
var tl = this;
// and then use tl to reference the main timeline in your functions (and elsewhere).

Similar Messages

  • Ever since Firefox did an update I have printing problems. Prints partial pages and spreads out over several sheets. I use Mac OS X 10.4.11

    Ever since Firefox did an update I have printing problems. Prints partial pages and spreads out over several sheets. I use Mac OS X 10.4.11

    See this: <br />
    http://kb.mozillazine.org/Problems_printing_web_pages#Prints_to_a_small_portion_of_the_page

  • The Adobe Flash plugin has crashed and it do that several times in a day

    The Adobe Flash plugin has crashed and it do that several times in a day my dom.ipc.plugins.timeoutSecs;60 . What to do?
    version 7.0.1
    Win 7

    Your installed plugins list shows two different versions of Flash. Use the Adobe uninstaller program to entirely remove Flash and then install the latest version.
    http://helpx.adobe.com/flash-player/kb/uninstall-flash-player-windows.html#main_Download_the_Adobe_Flash_Player_uninstaller

  • CCM and SRST deployment over several countries

    Hello,
    I will have to deploy Cisco ToIP over several countries. The infrastructure is a CCM cluster (1 publisher and 2 subscribers 7845) based in one country (Core System)and the other countries will be connected via SRST.
    Do you know if it exist a Best Pratice Document within Cisco?
    Thanks by advance for your help,
    JP

    since you'll be using the routers at the other countries as SRST routers, it would probably be best as well, and a best practice, to use the routers as Call Manager Express solutions.
    either way can support h323, sccp, rtp, PRI/BRI, etc. as well as provide more/easier flexibility with the dial plan. (more flexability may require more complexity though)
    please use the SRND links provided above to verify the design as well as the following links for CME:
    http://www.cisco.com/en/US/products/sw/voicesw/ps4625/prod_configuration_examples_list.html
    http://www.cisco.com/en/US/products/sw/voicesw/ps4625/products_installation_and_configuration_guides_list.html
    & unity express:
    http://www.cisco.com/en/US/products/sw/voicesw/ps5520/products_implementation_design_guides_list.html
    http://www.cisco.com/en/US/products/sw/voicesw/ps5520/products_installation_and_configuration_guides_list.html

  • Can I record audio and spread it across several slides

    I am having trouble recording audio at the same time I am
    recording a software simulation. Must be like the chewing gum and
    walking thing! I would like to record a few slides at a time and
    then add the audio. I select Audio and record, but it only records
    on the first slide...or whichever slide it happens to be on. I
    thought I saw somewhere that I could choose to spread the audio
    file across several slides if I choose. Can anyone tell me if this
    is possible and how to do that?

    Hi deidrelynn
    After you make that long voiceover, have you tried clicking
    Audio > Edit Timing... and adjusting the split bars where you
    want the audio to break? If not, perhaps that's worth a shot.
    Cheers... Rick

  • Apps spread out over several screens - only 4 or 5 to a page

    Guys,
    Apologies if this is something that comes up regularly but I've noticed my apps are strangely spaced out. After the first screen I scroll across to find 4 apps, then scroll across to another screen where there are 5 apps. Why are these not all on one page?
    Hopefully it's something very simply and I'm being stupid but it's extremely annoying!
    Cheers,
    James

    It sounds like you have not arranged your apps. To move the apps around, hold your finger on an app until they start jiggling. Once they are jiggling, use your finger to move them around. When you're done, click the Home button to freeze them in place.

  • IPod touch runs much smoother when apps are spread out over several pages.

    Hi Folks,
    If you are using iOS 5.1 and experiencing lag on your iPod touch try arranging the app icons in such a way that there are a few empty spaces on all your app screens and unbundle your app icons. I am experiencing a dramatic improvement in response on my iPod touch 4th Gen running 5.1.
    FYI hope it helps.

    Also I have noticed that if you are using a 8 GB iPod, double clicking the home button and deleting active apps that you may not need also speeds up things quite a bit.

  • Spread Data Over Multiple Months & Years with Data from Multiple Years

    Hello Everyone,
    I have a complex calculation for spreading values over several months spanning mulitle years. Because we have a 36 month rolling Forecast, a more sophisticated calc is required as opposed to hard coding months or years.
    Heres the description:
    Users enter the following data,
    FY11     BegBalance     Number of BOD Members     10
              BOD Options Vesting Months     20
              BOD Options Accounting Value     10
              BOD Options- Number of Shares     100
              BOD Grant Month     Aug
    FY12     BegBalance     Number of BOD Members     5
              BOD Options Vesting Months     10
              BOD Options Accounting Value     5
              BOD Options- Number of Shares     200
              BOD Grant Month     Oct
    FY13     BegBalance     Number of BOD Members     20
              BOD Options Vesting Months     8
              BOD Options Accounting Value     20
              BOD Options- Number of Shares     100
              BOD Grant Month     Feb
    Based on the above;
    "BOD Stock" is calculated as following/month=Number of BOD Members*BOD Options Accounting Value*BOD Options- Number of Shares/ BOD Options Vesting Months
    Start month for the above is based on "BOD Grant Month". So, for instance considering data for FY11:
    The total "BOD Stock" value is $10000 (originating from FY11) with start month of AUG in FY11 and the number of months to spread over is 20 months. So, essentially the "BOD Stock" per month (originating from FY11) is $500 starting from AUG FY11 to Mar FY13.
    Similarly, the total "BOD Stock" value is $5000 (originating from FY12) with start month of OCT in FY12 and the number of months to spread over is 10 months. So, essentially the "BOD Stock" per month (originating from FY12) is $500 starting from OCT FY12 to JUL FY13.
    The challange I am facing is because of the number of months to spread. Because I have data to spread from multiple years and each year's data spills into the following years, each year should accumulate data from prior years. For instance;
    FY11 should include only FY11
    FY12 should include FY11 and FY12
    FY13 should include FY11, FY12 and FY13.
    Could anyone suggest a smarter way to do this without writting code for each year, maybe using @MDALLOCATE function? The following shows how data should be spread and accumulated.
                             BegBalance     Jan     Feb     Mar     Apr     May     Jun     Jul     Aug     Sep     Oct     Nov     Dec     Period
    FY11     Number of BOD Members          10     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Options Vesting Months          20     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Options Accounting Value     10     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Options- Number of Shares     100     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Grant Month               Aug     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
              BOD Stock               10000     #mi     #mi     #mi     #mi     #mi     #mi     #mi     500     500     500     500     500     #mi
    FY12     Number of BOD Members          5     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Options Vesting Months          10     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Options Accounting Value     5     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Options- Number of Shares     200     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Grant Month               Oct     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
              BOD Stock               5000     500     500     500     500     500     500     500     500     500     1000     1000     1000     #mi
    FY13     Number of BOD Members          20     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Options Vesting Months          8     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Options Accounting Value     20     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Options- Number of Shares     100     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Grant Month               Feb     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
              BOD Stock               40000     1000     6000     6000     5500     5500     5500     5500     5000     5000     #mi     #mi     #mi     #mi
    Appreciate your inputs!
    Edited by: user10678366 on Oct 12, 2010 3:21 PM

    Why not use substitution variables for Years? you could have something like &Year1, &Year2, &Year3
    Cheers

  • Printing using Mail - Vertical printing over several pages error

    Hi All.
    Wonder if anyone can help here?
    When I want to print any email from Mail, for some odd reason the email gets spread out over several pages or more depending on the size of the email. The text is printed in one vertical line consisting of one letter per line, like this:
    t
    h
    i
    s
    i
    s
    h
    o
    w
    I have to copy and paste each email into text edit and print from there.
    If anyone can help, that would be great.
    Cheers
    Steve
    G4   Mac OS X (10.3.9)  

    Hi All.
    Wonder if anyone can help here?
    When I want to print any email from Mail, for some
    odd reason the email gets spread out over several
    pages or more depending on the size of the email. The
    text is printed in one vertical line consisting of
    one letter per line, like this:
    t
    h
    i
    s
    i
    s
    h
    o
    w
    I have to copy and paste each email into text edit
    and print from there.
    If anyone can help, that would be great.
    Cheers
    Steve
    G4   Mac OS X
    (10.3.9)  
    Hi Steve,
    I have the same problem with the text in Mail printing very narrow like what you described. Did you ever get a resolution to the problem?
    It seems like it was never answered in the forum replies.
    Hope you can help out if possible.
    Danny

  • Adobe Flash Player Active X and Plugin Product Codes

    Where can I find a list of all the Adobe Flash Player Active X and Plugin product codes? I am creating an uninstall script to cleanup any old versions and would like a complete up to date listing.
    This thread here has up to version 11.4 - http://forums.adobe.com/message/6048135#6048135
    Thanks!

    Hello,
    Please refer to the MSI GUIDs tech note.  This tech note is updated regularly with each release.
    Maria

  • MY PHONE IS ASKING FOR A PUK CODE OVER AND OVER

    My phone is asking for a puk code over and over?

    If you have another Device to which you can call on you might try and see if Verizon Customer Service is still open the Tech. Dept. have them help you with Getting your Puck Code.!
    Here is the Number 1-800-922-0204 or if have a spare Cell Phone try *611 use option 4 ask to talk to a Representative.
    Good Luck.. B33

  • Flash javascript and Activecontent code

    I've got an animated chatbot that uses a variety of swfs and
    phps and a big external JavaScript to work. It works fine with the
    old style embed and object code, with the same variety of swfs and
    phps and external JS.
    But when I try to use the
    <script src="AC_ActiveX.js"
    type="text/javascript"></script>
    <script src="AC_RunActiveContent.js"
    type="text/javascript"></script>
    and I code the main Flash piece like this:
    <script type="text/javascript">
    AC_FL_RunContent( 'codebase','
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0',
    'width','540','height','360','swliveconnect','true','src','whinbarnexp','quality','high',' pluginspage',
    http://www.macromedia.com/go/getflashplayer','movie1','whinbarnexp'
    </script>
    The above broken into lines to make more readable here.
    but when I run it it doesn't work right, and the error
    console advises:
    "movie1 has no properties."
    and points to the first line of the big function in the
    JavaScript "brain" of the chatbot:
    shesaid=movie1.GetVariable("coder")
    What am I doing wrong? It's got to be within this code since
    the same "brain" file works fine with old style object/embed
    coding.

    Sorry Dan,
    This has got nothing to do with the question I asked.
    I know about the Microsoft "patch" and have already allowed
    for it.
    @ndyB
    "-->dan mode" <[email protected]> wrote in
    message
    news:e3ag7h$oob$[email protected]..
    > Read this:
    >
    http://www.smithmediafusion.com/blog/?p=114
    >
    > Then, here is a simple way.
    > You need to do three things and I will give examples as
    follows.
    >
    > 1. all of the <object> tag must be taken out and
    put into a .js file and
    > placed within a function where you document.write the
    <object tag>
    > 2. you must include that .js file in the header of the
    html where the swf
    > resided
    > 3. call the js function from step 1
    >
    >
    > --Here is a sample of Step 1, save this file as
    commFile.js:
    >
    > function commM()
    > {
    > document.write('<object
    > classid="clsid
    27CDB6E-AE6D-11cf-96B8-444553540000"
    > codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
    > width="410" height="345">\n');
    > document.write('<param name="movie"
    value="/mySWF.swf">\n');
    > document.write('<param name="quality"
    value="high">\n');
    > document.write('<embed src="/mySWF.swf"
    quality="high" +'"
    > pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    > type="application/x-shockwave-flash" width="410"
    > height="345"></embed>\n');
    > document.write('</object>\n');
    > }
    >
    > --Here is a sample for Step 2, put this in the head of
    your html page:
    >
    > <script src="commFile.js"
    type="text/javascript"></script>
    >
    > --Here is a sample for Step 3, place this code on the
    spot of the page
    > where
    > you want your flash to show up:
    >
    > <script
    type="text/javascript">commM();</script>
    >
    >
    > That should be all you need.
    >
    > --
    >
    > Dan Mode
    > *Must Read*
    http://www.smithmediafusion.com/blog
    > *Flash Helps*
    http://www.smithmediafusion.com/blog/?cat=11
    >
    >
    >

  • Adobe Flash Pro CS6 -- cursor and focus issues

    This is OS specific as it works fine in the Snow Leopard.
    I am having issues with nearly everything involved with switching between apps / focusing on text windows / getting the cursor to appear where I click / etc since upgrading to Mountian Lion/Mavericks while using Flash Professional CS6. 
    Example problems:
    I click on the Flash icon in the menu bar (twice because the new Mac OS's have focus problems in the dock with mission control enabled) the OS will sometimes switch to the space containing Flash (sometimes not but let's focus on the Flash focus issues). I hover over the code window, I scroll with the mousewheel down the page to where I want to edit the code, I CLICK exactly where I want to paste it, hit cmd+C -- then it pastes the code NOT THERE but instead where the cursor was before (at the top of the page)... So essentially I have to double or triple click everything in Flash all the time. I just click like crazy anymore on everything all the time, but in Flash it's really unpredictable.
    This happens on both of my work computers (both 10.8.5)
    and my Mac Pro (10.9) but not my MacBook Pro that is still extremely fortunate enough to have 10.6 on it.

    What you need is an inner Graphic symbol. What I mean by Graphic symbol is when you select all your letters and hit "F8", choose "Graphic" instead of "MovieClip." In the properties panel, you'll see that one of the sections is called "Looping." Select"play once" (the default is "Loop"). Inside that graphic should be the animation of the letters moving in from left to right.
    On the outer timeline, put a keyframe at the same frame number where the Graphic's animation ends. Change the Looping to "Single Frame" and then type in the frame number of the last frame. You can then create a motion tween that animates the graphic symbol upward at its final frame.

  • Flicker Problems with a dynamic Canvas and scrollpane

    Hello all,
    I'm having some trouble with flickering in a dynamically sizing canvas. Basically I have a new component similar to a text area implemented as a canvas. I put this canvas into a scrollpane and it is updated when a new message comes in. problem occurs both when a new msg comes in and when the scrollbar is used. I get heavy flickering in the component area and no where else. I've tried double buffering, I've looked through some of the old topic threads here and tried a few suggestions but it still occurs. I traced the paint/update calls with printlns into the console and found that only the paint gets called and not the update. I'm thinking that the changing height of the canvas is automatically calling the paint method directly. Any and all help (that works) will be rewarded with duke dollars. I really need help on this one. Below is a cut away of the code:
    CANVAS COMPONENT
    public class IconBox extends Canvas {
    //other methods to handle text processing
    public void append(String text)
    //places text into a vector and calls repaint to add it to
    //the canvas and updates the height of the canvas
    public void update (Graphics g)
    paint(g);
    public void paint(Graphics g)
    // I basically refresh the canvas with new text updates
    // here with g,drawtexts and add a few images with
    // drawimage
    APPLET
    public class ConfDraw extends Applet implements ComponentListener
    newTextarea lC;
    ScrollPane appletScroller
    public void init()
    lC = new IconBox(427);
    lC.addComponentListener(this);
    appletScroller = new ScrollPane(1);
    appletScroller.add(lC,0);
    appletScroller.setSize( 445, 380 );
    public void componentResized(ComponentEvent e) {
    appletScroller.doLayout();
    public void componentHidden(ComponentEvent e) {
    public void componentMoved(ComponentEvent e) {
    public void componentShown(ComponentEvent e) {
    // other methods that send text to IC
    public void update(Graphics g)
    //tried with and without this over ride at this level
    paint(g);
    }

    Create offscreen image & graphics
    eg.
    Image offscreenImg = createImage(w, this.size().height);
    Graphics offscreenG = offscreenImg.getGraphics();paint all ur contents on off screen grpahics.
    eg.
    offscreenG.drawString("Hello", 10, 10);finally paint the off-screen image to the Graphics
    g.drawImage(offscreenImg,0,0,this);This will avoid flickering as whole of the image is replaced at once. Also override update.

  • Wht is diff b/w sy-ucomm and ok code

    hi,
    what is diff b/w sy-ucomm and ok-code
    Regards,
    Rani.

    Hi,
    sy-ucomm is for doing the functions what the user wishes to do at that particular event. You use it in menus and other place . this mainly in using <pfstatus>
    ok_code is generally used in screen as of I have used. You will define the function in the screen. and you can use it in the main program.
    ok_code acts just as a temporary variable that stores the value of sy-ucomm.
    When user interacts with the screen elements, the function code that you have assigned is filled in the sy-ucomm field which is turn gets reflected in OK_CODE.
    In your ABAP programs, you should work with the OK_CODE field instead of SY-UCOMM. There are two reasons for this: Firstly, the ABAP program has full control over fields declared within it, and secondly, you should never change the value of an ABAP system field. However, you should also always initialize the OK_CODE field in an ABAP program for the following reason:
    In the same way that the OK_CODE field in the ABAP program and the system field SY-UCOMM receive the contents of the corresponding screen fields in the PAI event, their contents are also assigned to the OK_CODE screen field and system field SYST-UCOMM in the PBO event. Therefore, you must clear the OK_CODE field in the ABAP program to ensure that the function code of a screen is not already filled in the PBO event with an unwanted value. This is particularly important when the next PAI event can be triggered with an empty function code (for example, using ENTER). Empty function codes do not affect SY-UCOMM or the OK_CODE field, and consequently, the old field contents are transported.
    Diff bet OK-CODE and SY-UCOMM
    Difference Between SY-UCOMM and OK_CODE
    ok_code/ sy-ucomm usage in dialog program

Maybe you are looking for

  • Reading the Blob and writing it to an external file in an xml tree format

    Hi, We have a table by name clarity_response_log and content of the column(Response_file) is BLOB and we have xml file or xml content in that column. Most probably the column or table may be having more than 5 records and hence we need to read the co

  • How to rip DVD, convert video, transfer iPod music and make iPhone ringtone

    Part 1. How to rip DVD to iPod/iPhone/Sansa/PSP/Zune and other MP4 and MP3 Players Part 2. How to convert all video to MP4, AVI, FLV, 3GP, WMV, MOV, MPG, RM, RMVB, MKV, VOB… Part 3. How to transfer music from iPod to computer, computer to iPod, iPod

  • Duplicate item wise release pur requisitions

    Experts, We have item wise release procedure with classification set up for requistions.   We have begun work on new projects where leaders have received special delegation for releasing.  Is it possible to duplicate the release procedure for these l

  • Downloading file on Raz M taking over 30 mins to hour

    Have a Raz M, loved the phone before the Sept upgrade.  Txt Messages and pictures take forever to download.  Get a message 30KB "Downloading".  Received picture msg at 3:58 PM 11/7/14, it is 4:21 PM STILL DOWNLOADING!!!   The one earlier in day only

  • In Virtual PC my new Epson R320 will not work?

    It appears that VPC sees it as a "new mass storage device".....not a printer?......I can print with no problem on my old Epson 870......any ideas?.....I would like to use my new printer in VPC.