FAQ: SWF's and loading external files in Flash Catalyst

How do I make the images in my Flash Catalyst project external to the published SWF?
You can choose whether images are embedded in your Flash Catalyst SWF, or loaded dynamically; this can help to keep your SWF's small. Simply right-click an image and chose "Externalize Image".
Answered by: Adam Cath.
See entire discussion.
How do I make the SWF I imported to Flash Catalyst load external files?
When importing a SWF, Flash Catalyst only pulls the SWF asset into your project. Many SWF's, such as slideshows and media players, rely on external data files, such as configuration files or media assets. If you would like to use such a SWF in Catalyst, then you will have to place these external resources into your Catalyst project as well as importing the SWF.
Let's assume you have a SWF source folder that contains your SWF file and all of the external files it needs. You can open the SWF file from this folder and it works fine. But, if you import the SWF into Catalyst, the Catalyst project doesn't display it correctly because it can't load the external files. Here's what you do:
1. Open your swf source folder, and copy all of the files/folders there except the SWF you imported.
2. In Catalyst, Run/Preview your project (Ctl/Cmd-Enter)
2. Note the file path to Main.html in your browser
3. In your OS, open the folder that contains /bin-debug/Main.html from above
4. Open the "src" folder
5. Paste all of the files from step 1 into the src folder.
6. Catalyst won't pick up that your project changed, so tweak it a bit (add a Rectangle), and save it.
7. Run your project. If it doesn't work, try closing and reopening your project and running again.
For an example, check out: Using an XML-driven SWF in Catalyst to create a slideshow.
See entire discussion.
Answered by: Bear Travis

You can make you swf a custom component with 2 states.
The first state will be empty and rename it "OFF" the second state will have your swf file and name it ON.
Then go back to your artboard/project, add your 2 buttons ON & OFF.
For the ON button add interaction "play transition to custom component ON"
For the OFF button add interaction "play transition to custom component OFF"
Here is an example swf_control

Similar Messages

  • Flash cs4 mac - Error opening URL '/:Users:someting.swf' - Not a "loading external content" problem

    Hello.
    I am having a weird problem when trying to test a movie or publish preview -> flash on mac with Leopard os.
    The result is a blank movie with the usuall "movie not loaded" if u right click on it and the output returns the "Error opening URL 'the path of the swf here'.
    This has nothing to do with loading external files or something like that. It happens even in blank movies and it gives the same error if I try to open a swf from flash ide.
    I can publish the project or export the movie with no problem at all.
    I can preview the movie in html. I can run all the swf files in my hard disk, network, usb stick, dvd etc., but when I try to open any of these files from flash ide I got that stupid error.
    Its not something that stops me from working in flash ide but its slow to export movie any time I want to test it.
    Things that I've tried so far but nothing worked:
    Update the flash cs4 to the latest version
    Update the flash players
    Restored the release flash player as default player (I am using as default the debug player)
    Cleared the preferences
    Move the flash cs4 folder to another location in hd
    Saved the fla document first before testing the movie (in different places with or without spaces in document name or folder)
    Give read & write permissions for everyone for flash.app, players and for fla files when saved first before test movie
    Unistall and install the application 3-4 times.
    Test every as version just in case.
    Also I've checked the folders when testing movie and I can see that it creates an swf file, which I can run it outside flash ide (the one that the flash ide player cannot load) with no problem.
    The mac os has the default set up as it came. Nothing chnaged in permissions or security settings.
    Thanx in advance.

    In this particular example I am using this code to start the
    xml file load:
    // now load the XML file that contains the content strings
    var sXMLFile:String = "xml/home.xml";
    var xmlContent:XML = new XML();
    xmlContent.ignoreWhite = true;
    xmlContent.onLoad = onXMLLoadComplete;
    xmlContent.load( sXMLFile );
    But I don’t think the code is the problem here . This
    happens on every file I load when I am using a relative path to the
    content, regardless of how I load the content (XML object,
    loadMovie, MovieClipLoader, etc…) and the same code executes
    perfectly on every other machine in the office(Mac and PC).
    I’m more concerned with the semi-colons and .swf filename
    that Flash is putting into my relative path on the error message.
    Is that normal?

  • How to load ai file in flash CS4 using code(Like loading swf or images )

    Hi,
    I have to load AI file in flash CS4 and provide the interaction with user.
    Can any body help?
    Thanks

    Hi.
    No you cannot  import Eps, wmf, emf,  ai, cdr files in swf dynamically using Action Script 3.

  • How do I configure DW to open and load a file?

    I have DreamWeaver CS5 running on a Mac. Whenever I double-click to open a DreamWeaver compatible file (such as an HTML file), if DW is not already open, DW launches but does not load the file. Once DW is launced, I can double-click the file and it will load. How do I configure DW to open and load a file together?
    DW: v11 b 4993
    OS X: 10.7.4 (11E53)

    HTML files are normally configured to open in a browser. The default on a Mac is to open the file in Safari.
    You can right-click the filename in the Mac Finder, and select Open With > Dreamweaver CS5 from the context menu.
    Alternatively, select an HTML file in Mac Finder, and press Cmd+I to open the Info panel. In the Open With section, select Dreamweaver CS5 as the default program, and click the Change All button.

  • Cannot import swf/air file from flash catalyst

    Cannot import swf/air file from flash catalyst, states error in code, there is nothing in the properties panel.

    Hi Kristen
    Have you tried using ActionScript 2? You might give that a go
    and see if things improve.
    Just a thought... Rick

  • Load external jpeg into flash movie

    Hi, how do i load external jpeg into flash movie?
    Can someone show me the actionscript? Thanks

    hi, i pasted the code on a mc but it didn't work.
    However, when i put in on frame action, it works.
    However, i realised the image flickered (more like refreshed)
    after afew sec...
    Is this normal? Is it the loop problem? how do i get rid of
    that?

  • What is the maximum file size Flash Catalyst beta 2 can import?

    I have designed the webpage in Illustrator cs2 and tried to import to Flash Catalyst beta 2 (FC), however it does not respond to me at all. I think maybe my AI file size is too big. Therefore I reduced my AI file down to 1 page only and now FC has no problem importing my file. I would like to know what is the maximum file size that FC beta 2 can import? thanks

    In beta1 I believe the max size was 15megs, I am not 100% for Beta2 but I doubt they would have changed the amount.
    I created an online menu for a fake restraunt for fun, the file was quite large with the high-res photos in it. How I got the whole file into Catalyst from Photoshop is I removed the large background images and then imported them individually into the Catalyst project.
    Hope that helped

  • Loading External Files From SWF Root

    Hi All,
    I do not know anything about flash.  I have been provided with some flash movies/apps to include in a web design that I am doing.  These flash movies load an external xml file.
    This is failing.
    The problem appears to be that when the flash movie goes to load the file using a relative directory path, it starts at the very root of the web directory, where the main jsp file is, instead of the where the .swf file is located.
    For example, say my website is www.mywebsite.com/mysite.jsp and I have stored the flash in a directory similar to /mywebsite.com/flash/movie1/movie1.swf.
    When the movie goes to play, I am getting a 404 error in firebug because the flash movie is trying to load the external xml from /mywebsite.com/file.xml instead of /mywebsite.com/flash/movie1/file.xml.
    How can this be corrected?  Is there a way for the flash application to use the .swf root directory instead of the .jsp file root directory?
    I hope this made sense.  Good chance it doesn't. 

    When you load the Flash file into a web page, the web page becomes its frame of reference for loading other content.  So to fix this situation you should either relocate things to where the Flash file lives in the same directory as the web page that loads it, or retarget the files that the Flash file is loading as if it were in the web page's folder (using absolute paths should guarantee correct targeting).

  • Load external files

    I created fifteen 300 X 250 sized movieclips. I've adjusted each movieclip into different sizes. Now I need to load 15 external files in to these movieclips. (all external files are 300 X 250).
    1. When I load the external files, all the loaded files does not adjust to the resized movieclips (all external files are maintaining it original size). I need the loaded files to be resized as per the movieclips on stage.
    2. Is there a short way of writing the code to load these 15 external files?
    //movieclips on stage: gHolderF0, gHolderF1, gHolderF2
    //external files : sample0.swf, sample1.swf, sample2.swf
    I'm using this to load each external file:
    var loaderPrototype:Loader = new Loader();
    var selectedPrototype:URLRequest=new URLRequest("sample/sample0.swf");
    loaderPrototype.contentLoaderInfo.addEventListener(Event.COMPLETE, finishLoading);
    loaderPrototype.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, errorHandler);
    loaderPrototype.load(selectedPrototype);
    function finishLoading(loadEvent:Event) {
    gHolderF0.addChild(loadEvent.currentTarget.content);
    addChild(gHolderF0);
    function errorHandler(errorEvent:Event):void {
    trace("file missing");
    function errorHandler(errorEvent:Event):void {
    trace("file missing");

    adding a child (loader or otherwise) is going to affect the scale of the child and the position of the child.  but you can't assign the exact size unless you do some intelligent scaling of the parent.  for example:
    after loading is complete:
    gHolderF0.scaleX=300*loaderPrototype.width;  // resize to 300x250
    gHolderF0.scaleY=250*loaderPrototype.height;
    but that really makes no sense.  you may as well resize the loader directly:
    loaderPrototype.width=300
    loaderPrototype.height=250;

  • Sql loader: loading external file into blob

    hi,
    i keep being blocked by loading external binary files into a blob columns with sql loader tool.
    Here is the problem:
    I want to load pictures into a table with lob columns. Here is my control file, data file and the error message:
    control file:
    LOAD DATA
    APPEND
    INTO TABLE T_K58_SYMBOLE
    FIELDS TERMINATED BY ';' TRAILING NULLCOLS
    SYMB_ID INTEGER EXTERNAL(8),
    SYMB_LMLABEL CHAR(100),
    imgName FILLER,
    SYMB_GIF_HI BFILE(CONSTANT ".", imgName),
    thumbName FILLER,
    SYMB_GIF_LOW BFILE(CONSTANT ".", thumbName)
    data file:
    1;0800;image1.gif;image1.gif;
    error message:
    SQL*Loader-418: Bad datafile datatype for column SYMB_GIF_HI
    Here is the script of the creation of my table in my database:
    create table T_K58_SYMBOLE (
    SYMB_ID NUMBER(8) not null,
    SYMB_LMLABEL VARCHAR2(100),
    SYMB_GIF_HI BLOB,
    SYMB_GIF_LOW BLOB,
    constraint PK_T_K58_SYMBOLE primary key (SYMB_ID)
    LOB (SYMB_GIF_HI, SYMB_GIF_LOW) STORE AS (tablespace TDK5813)
    tablespace TDK5811
    Please, i need help!!!!

    This is my control file. I'm loading images in database table using sqlldr in Unix:
    LOAD DATA
    INFILE 'sampledata.dat'
    INTO TABLE image_table
    APPEND
    FIELDS TERMINATED BY ',' optionally enclosed by '"'
    IMAGE_ID INTEGER EXTERNAL,
    FILE_NAME CHAR,
    IMAGE_DATA LOBFILE(FILE_NAME) TERMINATED BY EOF
    I'm facing following error:
    SQL*Loader-350: Syntax error at line 9.
    Expecting "," or ")", found "LOBFILE".
    IMAGE_DATA LOBFILE(FILE_NAME) TERMINATED BY EOF
    My data file is:
    1,"IMG_3126.jpg"
    2,"IMG_3127.jpg"
    3,"IMG_3128.jpg"
    and images are in the same server. please help me to get out of this.
    Thanks,
    Surjeet Kaur

  • Load external file as a blob?

    Hi!
    The target is: to check TGA file's color depth.
    How? - to load file as a blob and to read byte number 16.
    Similar to get information about compression etc...
    So, the question is - is it possible to read an external file by javascript in AE?
    Thank you in advance!

    Pg. 47 of the JavaScript Tools Guide CC.pdf talks about the File object. My guess is that you may need something more than just ExtendScript to dive that far into a file as I didn't see any obvious direct answer in the guide.

  • Is it possible to link and update external files in a Indesign document when sharing the Indesign file in Creative Cloud with multiple users?

    I am new to Creative Cloud, but have been using Adobe software for many years.
    Now we are considering sharing an Indesign file with my project group using CC.
    The Indesign file contains links to external files (one Illustrator and multiple .txt files); and we export the approved version to an Hi-Res PDF.
    These .txt files are currently hosted on our internal server but have not been linked directly: we first copy them over to local desktop and update the links in Indesign before creating a new PDF. 
    Since these file can be update by different people we would like to keep them outside the Indesign and Illustrator files.
    Is it still possible with CC to link directly to the files on our server in Indesign and see if there have been updated?
    Or can they also be stored in the CC cloud? Or is there another method?
    Thanks in advance for any help or suggestions
    Ronald

    This will work if you all use the file syncing of the Creative Cloud desktop application and then you use the Collaborate option for the folder containing all the files. Then it will work on each of your desktops.
    Links to files will not work in the browser when viewing the InDesign document from https://creative.adobe.com/files.

  • Sql and load rule file query

    Currently loading the data with the script , which it contatins
    Retreving data from oracle through SQL interface on to rules files
    and loading the data.
    just my question is , if i get 0 records from oracle , i dont want to proceed with the loading of data (which is no useful ).
    Can i stop the loading if records are zero.

    As far as I know there is nothing in MaxLIt that could tell that there were no rows.The MaxL statement would return a zero code saying that the process worked ok. It would be prossible in your batch script to have mutiple calls to MaxL and between them to do something like make a call to your sql DB getting the count of rows for your query. Investigate the result and if it is zero, then get out of your load and calc process (I guess you could do that even before you try to load).
    Or how about scheduling a job that creates an output file with the count if it is greater than zero. If it is, then run the batch load process if it is not, then bypass it. There are multiple ways to do this outside of Essbase, just not in it.

  • How can I load external file .txt in After Effects CC 2014.0 Release / Mavericks OS X 10.9.4 (13E28)?

    ello everybody.
    Someone can help me to load a external file .txt in After Effects CC 2014.0 Release / Mavericks OS X 10.9.4 (13E28)?
    I tried the code bellow, but doesn't work.
    try{
    myPath = "~/Desktop/source.txt";
    $.evalFile(myPath);
    eval(thisComp.name)[0];
    }catch(err){
    "MISSING";
    The source.txt file have the texts bellow:
    var comp1 = ["Title”, “Subtitle”, “Description”];
    var comp2 = ["Text 0", "Text 1", "Text 2"];
    var comp3 = ["Text 0", "Text 1", "Text 2"];
    Thanks.

    This is the text file (with the modified first line) that I used:
    var comp1 = ["Title", "Subtitle", "Description"];
    var comp2 = ["Text 0", "Text 1", "Text 2"];
    var comp3 = ["Text 0", "Text 1", "Text 2"];
    Dan
    BTW - I did test it on AE CC 2014

  • How To View and Load U3D Files

    I use a CAD program that makes U3D files.
    Is there a decent way to use Acrobat Reader to load and view these files?
    Thanks
    Zvi

    Reader ONLY opens PDF files.Nothing else.

Maybe you are looking for

  • Hello. My mac pro early 2008 restarts after sleep mode and it works slower. I tested it with apple hardwear test and it seems to be ok. Thank you.

    Hello. My mac pro early 2008 restarts after sleep mode and it works slower. I tested it with apple hardwear test and it seems to be ok. Thank you.

  • Lack of support for Camera Raw plugin for Mac 10.6.8

    I'm hoping to find some solutions to the road block I've run into.    I'd been using Photoshop CS6 with Mac OS 10.6.8 without any problems. Then I got a new camera this week, and that's when the problems began..... I wanted to edit the raw files (R2W

  • SQL Loader DATE type error

    Hi, I am having a problem while loading data from flat file to oracle. The flat file contains date and time in a single field and I want to insert that value into a column in oracle of DATE datatype. LOAD DATA INFILE * INTO TABLE CNTRL_DUAL APPEND FI

  • I can't get my update !

    hi i have nokia c3-00 i saw the last update is V 08.63 in the web and when i test update my phone by pc i use nokia suite and Nokia Software Updater They said the last updated is V 07.20 and i have this update in my phone ! please help my

  • CRM Broadcast messaging in Servicepro

    Hi, I'm on a Aeronautic project, on SAP CRM Service. We need to implement Broadcast Messaging in our SAP CRM but we want to install it in the "Service-pro" Business role. However, it seems that the functionality is only available in "WEB_IC Agent" an