Merging ActionScript into existing FLA or SWF

Hi Folks,
Are there any tools or tricks to do this? I'm trying to take
existing (arbitrary) FLA file (or SWF) and merge in bunch of
ActionScript code into it so that resulting FLA file (or SWF) ends
up executing my ActionScript when the Flash presentation starts up.
I'm interested in tools that will allow me to do this using
command-line - I don't want to go through manual procedure of
operning up the Flash 8 editor, creating new layers, coping the
code into first frame, etc. I would like all this to be done
automatically through a command-line.
I look into Flex but it seems Flex cannot deal with existing
FLA files and you need to start with a XML definition file. This
doesn't help me as I have bunch of existing FLA and SWF files I
need to work with.
Since it is possible to decompile SWF into FLA, I imagine
there must be a way to hack it (e.g. through binary patch).
Any help would be great. Thanks.

See:
http://www.osflash.org/open_source_flash_projects?s=command+line

Similar Messages

  • FLVs dropped into existing .fla files? 

    We are working with a set of old files, first developed in
    Flash 4 or 5. They contain text, audio, and embedded QT video, and
    they were published as .mov files. We've converted the videos to
    .flv files and now we need to link to the .flv files, using
    progressive download, and keeping all the text and audio the same.
    I've looked at every tutorial everywhere and cannot find one
    that shows a combination of video plus text and audio. I can get
    the FLVPlayback to work
    if I have nothing else in the file, and
    if I leave all the frames left from the original audio and
    put the video where the original .mov file was.
    Otherwise, the movie doesn't play. The path is correct.
    Actually, I just tested one where I removed the original .mov
    and replaced it with the FLVPlayback, and this one didn't work
    either.
    This is my 2nd request for help. I hope I've stated the
    problem clearly enough that someone will say aha! and give me the
    solution. I am highly frustrated.
    Thanks.

    That's not quite it. The old mov files contained embedded
    video files in .mov format. I've converted the original videos from
    .mov to .flv files, no problem. Now I basically want to replace the
    embedded .mov file in the .fla file with a linked .flv file. What
    I'm doing:
    1. Open the old .fla file, convert to Flash 8.
    2. Select the embedded .mov file (the video), note the
    coordinates, and delete it.
    3. File->Import Video. Select Progressive download, locate
    the .flv file, and get the FLVPlayback component into the same
    keyframe and coordinates where the original .mov file was.
    4. Check the parameters for the FLVPlayback - path is correct
    (same folder as .swf and .fla).
    5. Publish - No video plays.
    If you can help me with this I will be deeply, deeply
    grateful.

  • Loading .css into my .fla file (non-.AS file)

    AS3
    My .html file loads, but not my .css file.
    I want to add the proper code to load a .css file, which is
    for my .html file, directly into my .fla file that has the code for
    the text area and scrollbar with the .html file loading
    successfully.
    How do I load the .css file for the .html file the same way-
    the .html file loads correctly, but not the .css file?
    ****Right now, I get the following errors:
    1119: Access of possibly undefined property styleSheet
    through a reference with static type fl.controls:TextArea.
    myTextField.styleSheet = css;
    1120: Access of undefined property pageContent.
    myTextField.htmlText = pageContent;
    when I try this current AS3 code:
    //Load CSS Data
    var cssLoader:URLLoader = new URLLoader();
    var cssRequest:URLRequest = new URLRequest("example.css");
    cssLoader.addEventListener(Event.COMPLETE,
    cssLoaderComplete);
    cssLoader.load(cssRequest);
    function cssLoaderComplete(evt:Event):void{
    var css:StyleSheet = new StyleSheet();
    css.parseCSS(URLLoader(evt.target).data);
    myTextField.styleSheet = css;
    myTextField.htmlText = pageContent;
    //Load HTML Data
    function textLoadComplete(event:Event):void
    myTextField.htmlText = textLoader.data;
    myTextField.editable = false;
    var textLoader:URLLoader = new URLLoader();
    var textReq:URLRequest = new URLRequest("htmltext.html");
    textLoader.load(textReq);
    textLoader.addEventListener(Event.COMPLETE,
    textLoadComplete);

    Okay - thanks.
    The really bizarre thing to me is that I got this simple tutorial:
    http://www.macloo.com/examples/flash/CSS_in_Flash/css_with_xml.html
    I pasted the exact AS onto my stage:
    // set up the textfield attributes
    myTextField_txt.html = true;
    myTextField_txt.wordWrap = true;
    myTextField_txt.multiline = true;
    myTextField_txt.condenseWhite = true;
    // create new style sheet object
    var myCSS = new TextField.StyleSheet();
    // specify the location of your existing CSS file
    var cssURL = "example_2.css";
    // load CSS file
    myCSS.load(cssURL);
    // define onLoad handler
    myCSS.onLoad = function(success) {
        if (success) {
            /* if the style sheet loaded without error */
            myTextField_txt.styleSheet = myCSS;
            myTextField_txt.text = "CSS file loaded successfully. You may proceed.";
        } else {
            myTextField_txt.text = "CSS file failed to load!";
    //load the XML file
    myContent = new XML();
    myContent.ignoreWhite = true;
    myContent.load("story_example.xml");
    myContent.onLoad = function(success) {
        if (success) {
            myTextField_txt.text = myContent;
        } else {
            myTextField_txt.text += "<br /> XML file failed to load!";
    Then I  swap out the css file name with what I have - style_dtf.css - and it doesn't error (no output regarding CSS), but it shows ALL the code from the XML file in a big string, with all the tags and everything.
    Very weird...
    I even pasted the CSS from the example file into the beginning of my CSS file and still same effect.
    I do have all my SWFs in a seperate folder, but for now I just duplicated my CSS and XML into both folders.

  • Inserting  dashboards into a single master SWF

    Hello experts,
    I have an issue in merging dashboards into a single SWF file. Currently i have seven dashboards exported to BOE as SWF/flash files . All are working fine in BOE. Now i need to emmbed all of them in a single swf file. How could i do it.
    Current procedure which i am following: I structured OPENDOUCMENT URL for all those seven dashboards in BOE. next, i designed a dashboard with seven slides with label based menu. each of that seven slides are mapped to respective open document URL. might i am wrong . please any one tyhrow some some light in my case.
    Thanks
    Prashanth

    We are XI 3.1.   We use the download document and url and include the CELogonToken when linking to child swfs, e..g
    /Xcelsius/opendoc/documentDownload?sIDType=CUID&iDocID=AU_zADSPisZFqkKz6eCzKAY&sKind=Flash&CELogonToken=&Mode=INFOVIEW&BusinessArea=
    In the example above, BusinessArea is a variable and is used to pass a value from the parent swf to the child swf.
    You need to exercise some care in this swf within swf approach, e.g. if you have QaaWs running in to think about when you want the queries in teh child swf to be triggered, e.g. everytime you go to the child, or only if the user has selected a new value to be passed.
    Personally, I think this type of multi-dashboard deliverable is better handled by pulling the multiple Xcelsius dashboards together  inside a portal tool, or if you are at XI 3.1, use the Dashboard Builder functionality to pull all the Xclesius together.  I hadn't thought about pulling them together using ppt, but that sounds like an option too.
    SAP's Brad Welch did a webinar in June or July 2009 showing Dashboard Builder to pull together Xcelsius, WebI, web pages, pictures, together.  Might be worth a look
    http://www.sdn.sap.com/irj/scn/events?rid=/webcontent/uuid/b04f7e1e-981c-2c10-9898-860238a6388d [original link is broken]
    I hadn't seen much about the repositioning of the Dashboard Builder tool as something to use to pull together Xcelsius and other content, but in reviewing content from the 2009 Bus Obj User Conference, I saw it mentioned in at least 4 different presenations, some from SAP folks, and feel better about developing with it more.

  • Standalone FLA or SWF

    Sorry if this is a stupid question but I am new to Flash. I
    want users to be able to click a link on my website and have that
    link open a Flash movie in a separate window in the Flash Player.
    However, I have about 50 movies (about 2 minutes each) to load and
    I am trying to figure out how to link to each movie by loading only
    one swf or fla file. I have noticed in all the Flash info I have
    read that Flash publishing produces several files - html, js, fla,
    a swf of the movie, and a swf of the player, for each published
    movie, and that all of these files must be uploaded in a folder on
    the server in order to play.
    I am trying to find a way to upload just one file (swf or
    fla) so that I don't have to create a new folder for every movie
    and don't have to load other files. I can't embed the files because
    each movie is about 2 minutes and there's sync issues when it's
    embedded.
    I have seen many websites that play standalone swf files but
    I can't seem to figure out what must be uploaded, and how to
    configure that file, to make it play without loading all the
    individual files in a folder.
    Can anyone point me in the right direction?

    > Is there a way, once I import (or insert- animation) a
    fla or swf file to
    > break
    > the flash into numerous slides and edit this via
    Captivate and not edit in
    > Flash?
    >
    > Captivate seems to only bring in the animation as just 1
    slide.
    >
    Not in Captivate.
    If this is a movie file, there is a Full Motion Recording
    editor you can
    download from Adobe
    http://www.adobe.com/devnet/captivate/articles/fmr_editor.html.
    This lets
    you edit full motion recordings made in Captivate.
    Otherwise, you need to use Flash to edit your Flash files.
    Steve
    Adobe Community Expert: eLearning, Mobile and Devices
    European eLearning Summit - EeLS
    Adobe-sponsored eLearning conference.
    http://www.elearningsummit.eu

  • Is it possible to merge addresses into a formed letter?

    Does anyone know if it is possible to take a mailing list of names and merge them into a formed letter or use on envelopes?

    Yes, most of the existing templates do that already.
    If you want to set it up yourself:
    Menu > Insert > Merge Field
    The source data can come from a Numbers table or better from Contacts/Address Book.
    Look up Personalizing Documents with Address Book and Numbers Data page 246 in the Pages09_UserGuide.pdf downloadable from under the Help menu.
    Peter

  • Import a word document composed in Arabic font (.ttf) into a .fla

    Hello Everyone;
    I am developing an advance e-book in Flash. My client has composed about 500 books in arabic using Microsoft Word. My client wants search features in this book in which the user will type something in arabic & it will search the ebook text and give him results, so I cannot convert the text into vector or image I have to keep it as text. I want Import a word document composed in Arabic font (.ttf) into a .fla file without losing its formatting. Rightnow I am able to import the font using copy/paste from the word document into Flash, but it changes the font, but I fixed it by changing the text property from "classic text" to "TLF text" which fixed the font. Even though the copy/paste method works without formatting its not practical for my project because there are thousands of pages and copy/pasting them one by one frame by frame is time consuming & not practical.
    I need a method or a third party software through which I can convert the word documents into fla or swf keep the font as text & very important without messing up the font and formatting.

    3rd Party software that can be tested for free:
    print2flash
    wordflashpoint

  • FLA or SWF to HTML5 Conversion

    I am trying to figure out the best way to convert an existing site (90% Flash / SWF) to HTML5, so that it works on the iPhone and iPad (or other mobile devices).
    So far, I have decided Flash CS6 with the CreativeJS Toolkit is the route to go.
    Someone (at Adobe) mentioned Dreamweaver CS5.5 can do it (convert the FLA or SWF to HTML5).
    I have not found this to be true.
    Does anyone have any ideas or suggestions for me?

    hey, chadXSO
    I want to know that have you ever resolved your problem, and I believe that you have done!
    Could you tell me which tool that you used? Now I have the same problem(the best way to convert an existing site (90% Flash / SWF) to HTML5, so that it works on the iPhone and iPad (or other mobile devices).), and someone asked me to convert swf files to html5 video, so i found this tool-swf to html5 movie maker, but i don't know how to use it, and can you tell me the tool you use? or you could tell me how to use this tool for our same question.
    download here:http://www.html5-movie-maker.com/swf-to-html5-movie-converter/
    thanks for everyone's reading

  • I have 3 iTunes accounts and want to merge them into only one of them. I also have money on all 3 accounts

    I have 3 iTunes accounts and want to merge them into only one of them. I also have money on each account. Not sure how to go about this.

    You cannot merge the accounts.
    Sorry.

  • I have iTune accounts under two separate Apple IDs.  Can I merge them into one account under one ID?

    I have iTune accounts under two separate Apple IDs.  Can I merge them into one account under one ID?  I have purchased music and video in both.

    No, it is not possible to merge accounts.  Choose one as the primary account and keep a local backup of all purchases so you don't get into the mess where you encounter a 90 day freeze on re-downloading past purchases from multiple accounts.

  • I have two apple Id accounts how do I merge them into one account

    I have two apple Id accounts how do I merge them into one account

    you can't merge Apple ID's
    From the FAQ: http://support.apple.com/kb/HT5622
    I have multiple Apple IDs. Is there a way for me to merge them into a single Apple ID?
    Apple IDs cannot be merged. You should use your preferred Apple ID from now on, but you can still access your purchased items such as music, movies, or software using your other Apple IDs.

  • I have 3 itunes accounts.  How can I merge them into one?

    I have 3 itunes accounts.  How can I merge them into one?

    Sorry, but the only answer is that you can't.

  • I have 3 apple ids and I want to merge them into one account.

    I have 3 apple id's and I want to merge them into one account.  Any suggestions?

    It is not possible to merge AppleIDs.
    If soemthing changes (ISP, email or you moved), just update your current AppleID.

  • HT1491 I have two itunes accounts with different Apple ID's.  How can I merge them into one?

    I ahve two itunes accounts with different Apple ID's.  How can I merge them into one account?

    Apple has no provisions for this. You cannot merge multiple Apple ID's into one ID. Content is always tied to the Apple ID that was used to purchase it.

  • Convert different types of files and merged them into one pdf

    Hi, everyone. I'm girl from China.
    There is folder containing severl files of different types, like doc, msg, jpeg etc.   And I want to convert and merge them into one pdf following a certain order. I know that PDFmaker can do that nicely, but the problem is that I have like 3000+ fodlders that requires the same work.
    I want to do it with VBA and Acrobat. I have a Acrobat XI Standard Version and a perfect license, by the way
    And I have got the code(Thanks, Karl Heinz Kremer) of merging two pdfs into one, but how can I convert them into pdf first?
    Thank you very much.
    If I can finish this, I would like to publish my code on this forum.

    Wow, that's great news. But how should I add the Action?
    1. There is no action named "Covert files into Pdf" in the tools panel....
    And if I write Javascript code to do this action. How should I write it?
    app.openDoc({
    cPath: "/c/temp/myPic.jpg",
    bUseConv: true
    These code only works when I specify the path of the file.
    If you know how, pls tell me..........

Maybe you are looking for

  • Google map inside the spry collapsible panel

    So this time I've bumped into interesting 'bug'. I've placed the google map inside the spry collapsible panel. Panel is set to the closed mode on load of page. When I open the tab, map appears, but address marker is hidden behind the top left corner.

  • Streaming Music from imac to xbox 360

    Hi i was wondering if anyone could tell me is there a way that i can stream my music from itunes on my imac to my xbox 360

  • Java.lang.ClassCastException  in local lookups

    hi, i have written two ejb projects named as proj1 and proj2. i deployed proj1 as EAR1 and proj2 as EAR2.(in same server) in proj1 Sessionbean1  i need to use(lookup) proj2 Sessionbean2 . <b>i have given jndi name for proj2 Sessionbean2 as "jndiproj2

  • Automator/Workflow actions are in "slow-motion" under Mac OS X 10.6.x

    Hi, after the update to SL some of my Automator Workflows dont work properly. I do things like copy some part of sentence from a .rtf document and insert it into a input box of a website in firefox. In 10.5.8 everything worked like a charm. But in 10

  • Oracle Certification

    Guys.      I am planning oracle certified associate in PL/SQL Developer for oracle 11g. Then i went into the following link http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=39 Then selected Application Developer -> Database -