Load swf works in Publish Preview but not when published

Hi Folks,
I having a problem where im trying to load two 1mb SWF movies into my Flash piece. It works fine in Publish Preview but not when I finally publish. I get this error in IE:
SecurityError: Error #2000: No active security context.
I have googled around and there is some talk online of a hack where by you get a timeout to overcome this. However im not so technical do I dont really know how to do this to my code in AS3. My code at the moment is below.
Any help would be much appreciated and rewarded with Karma
movieClip_12.addEventListener(MouseEvent.CLICK, fl_ClickToLoadUnloadSWF_9);
var fl_Loader_9:Loader;
//This variable keeps track of whether you want to load or unload the SWF
var fl_ToLoad_9:Boolean = true;
function fl_ClickToLoadUnloadSWF_9(event:MouseEvent):void
if(fl_ToLoad_9)
  fl_Loader_9 = new Loader();
  fl_Loader_9.load(new URLRequest("search.swf"));
  addChild(fl_Loader_9);
else
  fl_Loader_9.unload();
  removeChild(fl_Loader_9);
  fl_Loader_9 = null;
// Toggle whether you want to load or unload the SWF
fl_ToLoad_9 = !fl_ToLoad_9;
movieClip_14.addEventListener(MouseEvent.CLICK, fl_ClickToLoadUnloadSWF_10);
var fl_Loader_10:Loader;
//This variable keeps track of whether you want to load or unload the SWF
var fl_ToLoad_10:Boolean = true;
function fl_ClickToLoadUnloadSWF_10(event:MouseEvent):void
if(fl_ToLoad_10)
  fl_Loader_10 = new Loader();
fl_Loader_10.load(new URLRequest("refunds.swf"));
  addChild(fl_Loader_10);
else
  fl_Loader_10.unload();
  removeChild(fl_Loader_10);
  fl_Loader_10 = null;
// Toggle whether you want to load or unload the SWF
fl_ToLoad_10 = !fl_ToLoad_10;

I think this is either a problem with my site preLoader or my external .swf Loader. I was checking out the bandwith profiler and saw something weird and I wondered if anyone could explain...I've added a picture. I have a blank frame on only my actions layer to export classes to and it seems that frame 2 is "bleeding" into frame 1. Could this be my problem? Why would this happen? Thanks

Similar Messages

  • Any idea why .swf works in "simulate download" but not when Published?

    Hi,
    I have a project where I have a main project which loads external .swfs, and those external .swfs in turn load more external .swfs. In my main project, everything works perfectly when I preview using simulate download, but once the .swf is published it doesn't work properly. I'm assuming is has something to do with my main site Preloader, that's why I posted here. I'm pasting the code here and attaching the latest size report. Any ideas or help is appreciated!
    extLoader_mc._visible = false;
    var yChange = 109.2;
    var yStart = 330.2;
    myInterval = setInterval(preload,100);
    function preload() {
    var current = _root.getBytesLoaded();
    var total = _root.getBytesTotal();
    var pctLoaded = Math.round(current/total*100);
    mask_mc._y = yStart - yChange/100*pctLoaded;
    if (current >= total) {
      clearInterval(myInterval);
      _root.gotoAndStop("Main_1");

    I think this is either a problem with my site preLoader or my external .swf Loader. I was checking out the bandwith profiler and saw something weird and I wondered if anyone could explain...I've added a picture. I have a blank frame on only my actions layer to export classes to and it seems that frame 2 is "bleeding" into frame 1. Could this be my problem? Why would this happen? Thanks

  • Button hyperlinks work in project preview but not in published .swf

    Captivate 6, button hyperlinks work in project preview but not in published .swf, the cursor changes the “the hand” but the hyperlink does not redirect.
    Any ideas?
    Like I said my buttons work great in preview mode after publishing, one click and the PDF opens in a new browser window. Open the project through the published .swf files and the links will not work.
    Using Captivate 6 on WIndows 7

    Hello,
    Welcome to Adobe Forums.
    Once your project published, add the .swf file in Flash Global Setting :
    1) Right Click on the content (Published .swf file) and click on Global Settings
    2) Go to Advanced Tab and Click on Trusted Location Settings  (Scrool down to see this button)
    3) Click on "Add" button and then "Add file", browse for the Captivate 6 published file and click on OK
    4) Launch the .htm file again (Location where Captivate publish your project)
    Hope this helps !!
    Thanks,
    Vikram

  • PayPal button action works in preview but not when published

    Hi! 
    Any thoughts as to why this works correctly in CS5 publish preview but when I publish it I either get no action or (XP comupter) or a blank page (vista).  Any thoughts or insight would be appreciated.  Also, I'm new to flash and here's the button action:
    on (release) {
            //create the LoadVars that will hold our paypal information
            var paypal = new LoadVars();
            //specify the business, amount of the item, shipping, etc.
            paypal.cmd="_xclick";
            paypal.upload="1";
            paypal.business="[email protected]";
            paypal.currency_code="USD";
            paypal.amount="275.00";
            //paypal.handling = "0";
            //paypal.no_shipping = "0";
            paypal.item_name="One Session";
            //added
            //paypal.lc="GB";
            paypal.bn="PP-BuyNowBF";
            //paypal.no_note="1";
            //send our information to PayPal, including all the optional  variables we have collected from customer
             paypal.send("https://www.paypal.com/cgi-bin/webscr","_blank","POST");
    Thanks!
    Robert

    Hi Robert,
    as far as I understand your post, you are missing some kind of "button-artwork" in the published file, but do not report a problem with the "action" that the script should perform.
    My guess would be that it will be hard to help you without having a better understanding what your trying to achive and how (are you using a prebuilt component, or did you build the button fron scratch etc....)
    It might be even necessary to have a look at the fla itself.
    M

  • Masking works in preview but not when published

    I am dynamically loading higher-res images into a movie clip
    that
    correspond to the place in a 360 degree rotation the main
    clip is at,
    then resizing that movie clip to "zoom" the image. Since I
    don't want
    to overflow the whole screen, I've created another movie clip
    that
    masks the loader movie clip.
    When I preview the flash file, it works perfectly. When I
    publish the
    file, the mask doesn't get applied. Thoughts?
    zoom_btn.onPress = function(){
    if(iszoomed == false){
    loadMovie("zoomimages/" + Math.floor((_currentframe-4)/3) +
    "big.jpg", image_mc);
    stop();
    zoom_btn.onRelease = function(){
    if(iszoomed == false){
    Loading progress loop begins, extra code
    removed...
    if (pcLoaded >= 99){loader_mc._alpha = 0;
    image_mc._visible = true;
    myMask_mc._visible = true;
    image_mc.setMask(myMask_mc);
    .....Loading progress loop ends}
    iszoomed = true;
    }

    Hi Robert,
    as far as I understand your post, you are missing some kind of "button-artwork" in the published file, but do not report a problem with the "action" that the script should perform.
    My guess would be that it will be hard to help you without having a better understanding what your trying to achive and how (are you using a prebuilt component, or did you build the button fron scratch etc....)
    It might be even necessary to have a look at the fla itself.
    M

  • Works in preview but not when published in captivate 8?

    My youtube widget used in captivate 8 works just fine in the preview, but when published there's nothing where the video should be, any idea as to why?

    Hi Robert,
    as far as I understand your post, you are missing some kind of "button-artwork" in the published file, but do not report a problem with the "action" that the script should perform.
    My guess would be that it will be hard to help you without having a better understanding what your trying to achive and how (are you using a prebuilt component, or did you build the button fron scratch etc....)
    It might be even necessary to have a look at the fla itself.
    M

  • SWF plays in preview but not when published

    I have seen similar issues posted but none dealing with this
    precise problem. I have two SWFs, one of which loads at the end of
    the other. When SWF 1 is played back in Flash or when published in
    HTML format, SWF2 plays as is should. When SWF is exported to
    another program (e.g. Frontpage or Ektron, CMS), SWF2 will not
    play. Interestingly, when SWF2 is exported to the other program on
    its own, it plays fine so font support is not an issue.
    I have also tried altering the level in the LoadMovieNum
    script (0, 1, 2) as well as republishing both SWFs from the
    original FLA file. So far zippo.
    Any ideas??

    At least on my side it only plays the first video and does not progress.  There are twenty-five videos after this, they are all very short  but they progress.   Is this progressing for you?  Perhaps it is my computer if so. Please let me know.
    Thanks again,
    Mark.

  • Advance actions work while in Captivate, but not when Published

    Hey,
    So I have a button which is suppose to both send you to the next slide and open up a web page in a new window. While in Captivate (5.5), it works, and wonderfully. However, after I publish it...pushing the button does nothing. Any thoughts as to why?

    Your Grand Kids" graphic is overlapping the left part of the navbar. Reduce the size of that graphic or move it off the navbar.
    OT

  • Works fine in debug but not when published

    So I have simple navigation code setup to step through frames (I'm using Flash instead PowerPoint--too many pictures that are PSDs and illustrations that are AIs to do the conversions over to something PowerPoint understands).
    The code:
    stop();
    stage.addEventListener(KeyboardEvent.KEY_DOWN, slideNav);
    function slideNav(event:KeyboardEvent):void
    switch (event.keyCode)
      case Keyboard.DOWN:
       nextFrame();
       break;
      case Keyboard.UP:
       prevFrame();
       break;
      case Keyboard.HOME:
       gotoAndStop(1);
       break;
      case Keyboard.END:
       gotoAndStop(this.totalFrames);
       break;
    When I test it using the debug (Ctrl+Shift+Enter) it works fine.  When I publish it, the up and down arrows work but the Home and End keys do not work.  They do nothing, no error messages, nothing.
    Using Flash CS4 Pro 10.0.2.  ActionScript 3.  Windows 7 64-bit.
    Any suggestions?
    Thanks.

    Nevermind.  That was stupid of me.  Have to disable the keyboard shortcuts or it doesn't work.

  • Website displays fine in Preview but not when 'Published' to BC

    Hi
    I've posted this question twice in the Adobe Muse discussion forums and had zero response so hopefully people with more experience form the BC perspective might be able to shed some light on this.
    Basically I have a subscription to Muse and with that the ability to host one site with Business Catalyst. When checking the first site I designed I'd use 'Preview in Browser' and the site occasionaly displayed incorrectly, so I changed my habits to publishing the work-in-progress site to the BC url with this current site.
    Unfortunately there are multiple display problems with doing this; the two images below show the difference between 'Publish' to the BC domain and 'Preview site in browser'.
    I've cleared the cache of the browser multiple times and used both Firefox and Safari and the problem still remains. I'm assuming it's a problem with Business Catalyst?
    Does anyone have a solution for this? Has data become corrupted in BC, and if so is there a way of 'flushing' the data held on the BC site clean to start from scratch?
    Would really appreciate some help here as it's impossible to show my client the current state of the site
    Thanks in advance
    Phil

    Hi Liam
    Tried it in Safari and Firefox (I'm on a Mac), cleared the cache and still was getting issues.
    http://httpwiles06businesscatalystcom.businesscatalyst.com/clients.html
    If you go to the client page there I'm getting the images behing strangely like the top pic I posted, also the top type image has moved over.
    i set up a subdomain on my own site to use as a test space for this client site and it works perfectly; that's on
    http://martinedwardstest.phunction.net/
    Appreciate any fedback, opinions or help on what might or might not be wrong.
    Cheers
    Phil

  • Captivate 3 shows skin in preview but not when I run after published?

    Captivate 3 shows skin in preview but not when I run after published.  It shows it is included, what's up?

    Is the Skin externalised?  If so, perhaps Flash Global Security is interfering:
    http://www.infosemantics.com.au/adobe-captivate-troubleshooting/how-to-set-up-flash-global -security
    You could also try NOT externalising the skin.

  • Fixed headers while scrolling works fine in bids but not when deployed to reportserver

    Hi, I am using SQL Server 2008 R2 & deploying a report to reportserver with fixed headers while scrolling, this works fine in bids but not when deployed to reportserver. We are IE 9.
    Thanks in advance...............
    Ione

    Hi ione721,
    Since you have identified the 2 xml files are identical, according to my knowledge, there maybe a compatibility issue with IE 9 and SSRS 2008 R2, so I suggest that you could run the report in compatibility mode. Please make sure you have turned on Compatibility
    View in Internet Explorer 9 by following steps:
    When Internet Explorer recognizes that a webpage is not compatible, you will see the Compatibility View button on the Address bar. Try clicking it.
    When Compatibility View is turned on, the button changes from an outline to a solid color when you view the page.
    The following screenshots are for your reference:
    If you have any questions, please feel free to let me know.
    Best Regards,
    Wendy Fu

  • Swf works in Flash App but not online!

    Hi Guys,
    I am sitting with a situation I cannot figure out.
    In The Flash Application, my gallery is working as it is meant to. Yet, when I upload the swf to the live site, the first image, text and movie of my gallery works but it refuses to scroll to the next item in my XML.
    I have given it an absolute path to that server which works in Flash but not when it is online.
    Has someone come across this anomaly before? I don't even know where to begin debugging.
    Thanks!

    Hi,
    Better u check the XML image names and the image path are correct.
    becoz case sensitive in online..
    Saransoft

  • Trouble playing .swf - works offline in browser but not online on website

    Hi there,
    I'm having trouble displaying a flash .swf file properly on my website: http://dreamriderproductions.com/fun/game-test/
    When I view the .swf file locally on Chrome, I get a text box to enter my name and I can click Go and keep playing the game. For some reason, when it's up on the website, there's no text box so I can't progress. Can you?
    Background: The game did used to connect to a database, but the upgrade of our website (and relocation of the swf) seems to have broken the database connection. People couldn't progress past the first screen presumable because the information on which city they were in couldn't be submitted to the database. We've got a version of the game with the database connection disabled and so the game should now work - it works locally for me but not on the website!
    Any ideas?
    Thanks
    Sion

    The code you have posted is not the same code as used in:
    <div id="gallery">
    in the link above.
    The reason that the Flash is not displaying in FF is that the portion of the code used by FF was omitted. The code currently used on the page only works in IE.
    I'm no great fan of the IE conditional statements used in the code you posted so I don't blame you for not using it. But you do need to provide something for FF.... the old, out dated method would be to add and <embed> for FF... here's the newer method..
    So either use code you posted above or better yet, get rid of that and replace the current <object> with
    <div id="gallery">
    <object id="FlashID" data="flash/201.swf" type="application/x-shockwave-flash" width="958" height="242">
       <param name="movie" value="flash/201.swf">
       <param name="quality" value="high" />
         <param name="wmode" value="opaque" />
         <param name="swfversion" value="6.0.65.0"/>
    </object>
    </div>
    Give that a try. Will work in both FF and newer IE versions.
    Best wishes,
    Adninjastrator

  • Menu audio will play during preview but not when disc is burned.

    Encore CS6.
    Menu music plays fine in preview. I know that the file is good. No menu audio after disc is burned. Have tried several different transcoding options. There is menu video too that is working fine.

    Here are notes I couldn't find before I posted that; just general re testing methods:
    Mounting an iso (or building to a folder) is a great way to test.  There are some differences, but it is a great method prior to burning to a disk.  The main difference is simply computer vs dvd player - autoactivate on a button doesn't work with a mouseover, and you can be fooled into thinking your navigation does, or does not, work.  (Even on the computer, don't use the mouse for testing, use the "remote" in the player controls.)
    Encore preview is an emulator, like computer DVD players, that attempts to predict what will happen when a disk is played on a set top DVD player. It has always had issues with some predictions not being accurate. Some inaccuracies are like this one: Encore preview does not work, and a burned disk will. Others are the opposite; it works in Encore preview, and not in a DVD player. The point to be made here is that you cannot rely on Encore preview. You also cannot rely on computer playback of a built image or folder. And, in the end, you cannot rely on playback on one DVD player - some disks work on some players and not on others.

Maybe you are looking for