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;

Similar Messages

  • 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

  • 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

  • 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).

  • 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

  • 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.

  • Loading external files into movieclips

    Hello,
    I'm importing images from a folder into movie clips located in my flash, the clip on my first frame loads the graphic, but i can't quite get the others to work
    function loadImage(path:String):Loader{
    var request:URLRequest = new URLRequest(path);
    var loader:Loader = new Loader();
    loader.load(request);
    return loader;
    var image1 = loadImage("image01.jpg");
    this.addChild(image1);
    var image2 = loadImage("image02.jpg");
    imageArea2.addChild(image2);
    var image3 = loadImage("image03.jpg");
    imageArea3.addChild(image3);
    Cheers

    I faced a similar problem before. For some reason using one single loader object to load multiple files was not working for me. Try using multiple loader objects. You can also make your loader object listen to a Complete  event just to make sure that the image is added to the stage only after it is completely loaded.
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE, addToStage );
    private function addToStage(e:Event):void
         your_mc.addChild(e.target.content);

  • Loading External files in Oracle - error (double quotes on columns)

    I managed to successfully load some external (Excel ) files in my Oracle database, but when I queried the table, I see that some of the columns have double quotes on them. Any idea how to remedy this problem?

    damorgan wrote:
    OPTIONALLY ENCLOSED BY double quotes in your syntax to remove them.
    http://www.morganslibrary.org/reference/externaltab.html
    Damorgan,
    Thank you!

  • How to load external file

    I have about 100 tiff files. I have to add an external tiff file to all 100 files. All 100 files receive the same external tiff file.
    Is there a way to automate this task  which does not involve using  the place file via dialog box?

    I would try the following:
    1. Record an action with one of the files.
    2. Make a droplet from the action.
    3. Drag the folder with the remaining 99 files to the droplet.
    (Backup your files first or work on copies should anything go wrong)

  • Loading external files?

    Hi guys,
    Sorry to sound such a newbie, but just wondering if anybody can direct me to the right path, basically i need to make a GUI in java, i know i can do this using Jbutton etc but how can i for example by clicking on a button load a SWF file into like a box where the flash file can play, also load any other form of data?
    Additionally i tryed to add my mp3 format to the java but i cant succed in adding the mp3 file to an existing java file. is there a specific method i could use?
    Thanks

    damorgan wrote:
    OPTIONALLY ENCLOSED BY double quotes in your syntax to remove them.
    http://www.morganslibrary.org/reference/externaltab.html
    Damorgan,
    Thank you!

  • 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?

  • NaN with loading external flv

    Hi all
    I'm having some strange diffulties which I can't solve.
    I'm starting off with a website.swf which loads different
    external swf's depending on the button that has been pressed.
    One of those swf's is a file with different buttons to load
    different external flv's.
    While loading a flv a progressbar shows the percentage of the
    loaded part of the flv
    Now: If I play the first video file everything works fine
    While switching to another button to load another flv during
    the loading of the first flv, My percentage says NaN. and stops
    loading.
    On each button I say:
    on (press) {
    stream_ns.close();
    connection_nc.close();
    _parent.videoloader_mc.unloadMovie();
    on (release) {
    _parent.videoloader_mc.loadMovie("movies/binnenkomers01.swf");
    This is the part I use for loading a flv in f.ex
    binnenkomers01.swf.
    stop();
    delete _global.loaded_interval;
    delete _global.connection_nc;
    delete _global.stream_ns;
    delete _global.pctLoaded;
    // video URL
    video1_url = "movies/binnenkomer06_Floriane.flv";
    _global.connection_nc = new NetConnection();
    connection_nc.connect(null);
    _global.stream_ns = new NetStream(connection_nc);
    videoholder_mc.video.attachVideo(stream_ns);
    stream_ns.play(video1_url);
    stream_ns.seek(0);
    // Zet de video op stop om te wachten tot hij volledig is
    ingeladen
    stream_ns.pause();
    _global.playstatus = "pauze";
    play_pauze_mc.gotoAndStop("pauze_lb");
    this.createEmptyMovieClip("progressBar_mc",
    this.getNextHighestDepth());
    progressBar_mc.createEmptyMovieClip("bar_mc",
    progressBar_mc.getNextHighestDepth());
    with (progressBar_mc.bar_mc) {
    beginFill(0xCCE6FF);
    moveTo(0, 0);
    lineTo(300, 0);
    lineTo(300, 23);
    lineTo(0, 23);
    lineTo(0, 0);
    endFill();
    _xscale = 0;
    progressBar_mc.createEmptyMovieClip("stroke_mc",
    progressBar_mc.getNextHighestDepth());
    with (progressBar_mc.stroke_mc) {
    lineStyle(0, 0xCCE6FF);
    moveTo(0, 0);
    lineTo(300, 0);
    lineTo(300, 23);
    lineTo(0, 23);
    lineTo(0, 0);
    progressBar_mc._x = 640;
    progressBar_mc._y = 400;
    this.createTextField("loaded_txt",
    this.getNextHighestDepth(), 0, 0, 200, 22);
    loaded_txt._x = 645;
    loaded_txt._y = 405;
    var my_fmt:TextFormat = new TextFormat();
    my_fmt.color = 0x333333;
    my_fmt.font = "Verdana";
    my_fmt.size = 9;
    my_fmt.align = "left";
    _global.loaded_interval = setInterval(checkBytesLoaded, 500,
    stream_ns);
    function checkBytesLoaded(stream_ns) {
    trace("my_ns.bytesLoaded: "+stream_ns.bytesLoaded);
    trace("my_ns.bytesTotal: "+stream_ns.bytesTotal);
    _global.pctLoaded =
    Math.round(stream_ns.bytesLoaded/stream_ns.bytesTotal*100);
    trace("_global.pctLoaded: "+_global.pctLoaded);
    loaded_txt.text = "loading... "+pctLoaded+"%";
    loaded_txt.setTextFormat(my_fmt);
    progressBar_mc.bar_mc._xscale = pctLoaded;
    if (isNaN(pctLoaded)) {
    clearInterval(loaded_interval);
    } else {
    trace("OK");
    if (pctLoaded>=100) {
    clearInterval(loaded_interval);
    Hope you guys can help me....

    Maybe they have hotlink protection enabled
    "indierockmedia" <[email protected]> wrote
    in message
    news:f3c4mo$ddn$[email protected]..
    > Hi, I am having trouble with some loading issues. I
    design ecards for
    > bands and
    > their tour dates, bio, and video files all load external
    files (text files
    > for
    > bio/tour, flv files for the video, and an swf skin file
    for the video).
    > Its
    > only a problem when I have to embed those ecards into
    sites that don't
    > host the
    > ecard. I have used crossdomain.xml and every fix ive
    read about, and still
    > have
    > issues. Let me detail below:
    >
    > For example, I have an ecard for a band at
    >
    http://bandwebsite.com/ecard/ecard.swf
    > The tour and bio and video files load simply "tour.txt,
    bio.txt,
    > video.flv,
    > skin.swf"). Works great because no external servers are
    being called.
    >
    >
    But when I want to embed the file elsewhere, or use different
    domains,
    > I
    > have issues:
    > I want to embed the ecard on to
    http://www.otherwebsite.com,
    so I can't
    > have
    > it simply call "tour.txt" for example, the ecard will
    think the tour file
    > comes
    > from www.otherwebsite.com/tour.txt. So I call the full
    path
    >
    http://bandwebsite.com/ecard/tour.txt
    > I go to the ecard and click the button to load the tour
    dates. The text
    > box
    > that worked before says "undefined". So I put a cross
    domain file at the
    > root
    > of
    http://bandwebsite.com that
    allows access to files from
    > www.otherwebsite.com. Still getting undefined. I go to
    the embed code for
    > flashobject and have allowscript access to "always".
    Still undefined. I go
    > and
    > add System.security.allowDomain to my timeline and
    specify
    > www.otherwebsite.com. Still undefined. Still won't load
    my video or video
    > skin
    > and text files.
    >
    > Am I missing something?
    >
    > mikey
    >

  • Spry Dynamic Tabs - reCAPTCHA is missing when loading external php file

    Hello,
    I have solved all my problems lately on this forum.
    But now im converting my site to use Dynamic tabs, and something goes wrong.
    The dynamic tabs load content from external files. It loads html but i think something goes wrong with php and my buttons.
    You need to know ALL is working perfect on the old site.
    2 problems;
    I dont know how to convert my buttons to this new style.
    I dont know why the reCAP suddently is missing.
    Why is reCAPTCHA missing?
    SOURCE HTML (index.html);
    <?php include("PHP/form.php"); ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:spry="http://ns.adobe.com/spry">
    <head>
    <meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
         <title>Wientjes Voegwerk &amp; Renovatie - Home</title>
        <meta http-equiv="Content-Language" content="NL" />
         <meta http-equiv="imagetoolbar" content="no" />
         <meta name="MSSmartTagsPreventParsing" content="true" />
        <meta name="description" content="Wientjes Voegwerk en Renovatie is een voeg- en renovatiebedrijf gespecialiseerd in gevelrenovatie. Dagelijkse werkzaamheden zijn het voegen van nieuwbouwwerk, en alle voorkomende vormen van gevelrenovatie. Ik geef uw woning, garage of schoorsteen de aandacht die het verdient en ben trots op het resultaat van mijn werk!"/>
        <meta name="keywords" content="Voegwerk, Renovatie, Reinigen, Impregneren, Muur, Voegen, Steen, Woning, Garage, Schoorsteen, Bedrijf, Gevel, Wientjes, Uitslijten, Kappen, Fundering, Vorstschade, Metselen, Metselwerk, Vocht" />
        <meta name="author" content="Rob Nijlaan" />
        <link href="CSS/Style2.css" rel="stylesheet" type="text/css" />
        <script src="JAVASCRIPT/SpryTabbedPanels.js" type="text/javascript"></script>
        <script src="JAVASCRIPT/SpryEffects.js" type="text/javascript"></script>
         <script src="JAVASCRIPT/SpryData.js" type="text/javascript"></script>
        <script src="JAVASCRIPT/xpath.js" type="text/javascript"></script>
         <script type="text/javascript">
         <!--
         function FadeAndUpdateContent(ele, url){
              try {
                   Spry.Effect.DoFade(ele,{
                        duration: 500, from: 100, to: 0, finish: function() {
                             Spry.Utils.updateContent(ele, url, function() {
                                  Spry.Effect.DoFade(ele,{ duration: 500, from: 0, to: 100 });
              catch(e){ alert(e); }
         -->
         </script>
    </head>
    <body>
    <div id="WContainer">
      <div id="WHeader" align="center"> <img src="Art/VoegenRenLos.png" width="540" height="58" alt="Voeg en Renovatiebedrijf" /><br />
        <img src="Art/WientLogo.png" width="600" height="136" alt="Wientjes Voegwerk &amp; Renovatie" /> </div>
      <script type="text/javascript">
         var dsTabs = new Spry.Data.XMLDataSet("data/data.xml", "tabs/tab");
         function loadContent(panel,url){
              Spry.Utils.updateContent(panel,url);
         Spry.Data.Region.addObserver("example1Region",dateLoadedCallback);
         function dateLoadedCallback(notificationType, notifier, data){
              if (notificationType =="onPostUpdate"){    
                   row= dsTabs.getRowByRowNumber(0)
                   if(row){
                        loadContent('0',row.url)
         </script>
      <div id="example1Region" spry:region="dsTabs">
        <div id="dynamicTabs" class="TabbedPanels">
          <ul class="TabbedPanelsTabGroup" >
            <li spry:repeat="dsTabs" class="TabbedPanelsTab" onclick="loadContent('{ds_RowID}','{url}');" tabindex="0">{title}</li>
          </ul>
          <div class="TabbedPanelsContentGroup">
            <div spry:repeat="dsTabs" id="{ds_RowID}" class="TabbedPanelsContent"></div>
          </div>
        </div>
        <script type="text/javascript">
                var t1 = new Spry.Widget.TabbedPanels("dynamicTabs");
                 </script>
      </div>
      <div id="WFooter" align="center">
        <p class="footer">Wientjes Voegwerk &amp; Renovatie     ,    03- '02       »      Site by ;    <b>Rob Nijlaan</b></p>
      </div>
    </div>
    </body>
    </html>
    Dont mind the extra javascripts they are not used for now (like SpryEffects.js) its for future use.
    SOURCE XML (data.xml);
    <?xml version="1.0" encoding="UTF-8"?>
    <tabs>
        <tab>
            <title>
              tab 1
              </title>
            <url>../data/HOME.html</url>
        </tab>
        <tab>
            <title>Tab2</title>
            <url>examples/tab2.html</url>
        </tab>
         <tab>
            <title>Tab3</title>
            <url>examples/tab2.html</url>
        </tab>
         <tab>
            <title>Tab4</title>
            <url>../PHP/form.php</url>
        </tab>
    </tabs>
    The html file loads like it should be, but the php form has problems.
    See it yourself: http://www.wientjesvoegwerk.nl/index2.html
    The tab 1 displays a html file like it should.
    The tab 4 displays the contact form but you will see the reCAPTHCA is missing.
    I have really no clue why it happens, exept maybe its a PHP issue.
    Maybe the script isnt compatible with non-html documents...
    Can someone please tell me whats the problem and if there is a solution????
    How do i change this button?
    I used this in my previous site:
    <table class="Button"  >
         <tr>
         <td style="padding-right:0px" title ="Home">
         <a href="#" title="Home" style="background-image:url(/Buttons/Home.png);width:172px;height:75px;display:block;"><br/>
         </a></td>
         </tr>
    </table>
    But the dynamic script uses {title} to get the <title> out of the xml.
    I tryd to put this straight into the title tags in the xml but obviously it wont work.
    And i really dont have a clue how to change this.
    My button has a mouseover img. Basicly its 2 buttons in 1 img stacked on top of each other.
    Like this: http://www.wientjesvoegwerk.nl/Buttons/contact.png
    Because of the CSS script it hovers to the right position.
    Part of SOURCE CSS (Style.css)
    .Button a{display:block;}
    .Button a:hover{background-position:left bottom;}
    a.Button {display:none}
    How can i change the xml and the script so "title" can be replaced with the button.
    Or how can i change the button so the mouseover works and the script still takes the button-img from the xml???
    Any help would be nice, because im finnaly in a postition to finish this site, and this is the only blockade left to conquer...

    Maybe it is not liking that the index page is an HTML page and not a PHP page. Try this way:
    In your form.php, remove the following code:
    <?php
    require_once('recaptchalib.php');
    $publickey = "6LfKNwwAAAAAAEdS6PjiDSHRQBDOYrGcM8R1eQQm"; // you got this from the signup page
    echo recaptcha_get_html($publickey);
    ?>
    Replace it with:
    <script type="text/javascript" src="http://api.recaptcha.net/challenge?k=6LfKNwwAAAAAAEdS6PjiDSHRQBDOYrGcM8R1eQQm"></script>
        <noscript>
              <iframe src="http://api.recaptcha.net/noscript?k=6LfKNwwAAAAAAEdS6PjiDSHRQBDOYrGcM8R1eQQm" height="300" width="500" frameborder="0"></iframe><br/>
              <textarea name="recaptcha_challenge_field" rows="3" cols="40"></textarea>
              <input type="hidden" name="recaptcha_response_field" value="manual_challenge"/>
        </noscript>
    The replacement code is the same code that is outputted from the recaptchalib.php file.

  • How to load external subtitles in mov files (in QT)?

    Hi everybody,
    When I play an avi file, QT is able to load external subtitles (I've Perian installed). However, this week, I downloaded a file from apple, saved it as a mov file and created a subtitle file for it. Then, I put both files in the same directory and used the same name for them (one .mov and the other .srt). When I play it (with QT), the subtitle file doesn't load. Does anybody know what is happening? Is is a problem with mov files? Or is it a problem with files downloaded from apple (some kind of lock?!)?
    Thanks

    cowpox wrote:
    Hi everybody,
    When I play an avi file, QT is able to load external subtitles (I've Perian installed). However, this week, I downloaded a file from apple, saved it as a mov file and created a subtitle file for it. Then, I put both files in the same directory and used the same name for them (one .mov and the other .srt). When I play it (with QT), the subtitle file doesn't load. Does anybody know what is happening? Is is a problem with mov files? Or is it a problem with files downloaded from apple (some kind of lock?!)?
    Thanks
    You might do better reposting this in the QuickTime forum here:
    http://discussions.apple.com/forum.jspa?forumID=932

  • Using Flashvars to load external mp3 files

    I am trying to find a very good step by step tutorial on using "Flashvars" to load external mp3 files, I have been searching on google and the many I have found fall short in some way or another. From what I have been able to gather, I have tried using the code in red (commented out), which works, and modify it to use "Flashvars". The code that works, the mp3 file is hard coded, but my goal is to use "Flashvars" which I am attempting to do in the code following the code in red. I am also including the html code. Any help will be greatly appreciated.
    Thanks,
    David
    var soundReq:URLRequest = new URLRequest("mardi_gras2.mp3");
    var sound:Sound = new Sound();
    sound.load(soundReq);
    sound.addEventListener(Event.COMPLETE, onComplete);
    function onComplete(event:Event):void
        sound.play();
    var soundReq:URLRequest = new URLRequest(root.loaderInfo.parameters.audio);
    var sound:Sound = new Sound();
    sound.load(soundReq);
    sound.addEventListener(Event.COMPLETE, onComplete);
    function onComplete(event:Event):void
        sound.play();
    HTML CODE
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="550" height="400" id="mySoundvars" align="middle">
        <param name="allowScriptAccess" value="sameDomain" />
        <param name="allowFullScreen" value="false" />
        <param name="movie" value="mySoundvars.swf" />
       <param name="FlashVars" value="audio=mardi_gras2.mp3" />
        <param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />    <embed src="mySoundvars.swf" quality="high" bgcolor="#ffffff" width="550" height="400" name="mySoundvars" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" FlashVars="audio=mardi_gras2.mp3" />

    Ok waterlovinguy,
    I went back to my original code, and I got things to work... I think my whole issue was with the HTML CODE. So I decided to use the "SWFObject generator". I had never used it before, frankly I had never heard of it until I started my searches on "Flashvars".
    Thank you very much for all your assistance, PEACE,
    David
    Final Codes below
    var my_var:String = new String();
    my_var = root.loaderInfo.parameters.myflashvar;
    myText.text = my_var;
    var soundReq:URLRequest = new URLRequest(root.loaderInfo.parameters.audio);
    var sound:Sound = new Sound();
    var soundControl:SoundChannel = new SoundChannel;
    sound.load(soundReq);
    play_btn.addEventListener(MouseEvent.CLICK, playSound);
    stop_btn.addEventListener(MouseEvent.CLICK, stopSound);
    function playSound(event:MouseEvent):void
        SoundMixer.stopAll();
        soundControl = sound.play();
    function stopSound(event:MouseEvent):void
        soundControl.stop();
    HTML Code
                    <!>>
                    <!<![endif]>
                        http://www.adobe.com/go/getflashplayer
                        </a>
                    <!>>
                    </object>
                    <!<![endif]>
                </object

Maybe you are looking for