Publish Preview returns blank flash window

Hi guys,
I recently switched computers, going from a windows vista with Adobe flash cs5.5 v to windows 8.1 with Adobe flash cs6 v12.0.2.529.
We've been working on a flash project in cs5.5 and everything worked fine however now I'm getting some strange behavior.
The problem I'm having is that the publish preview returns blank.
It has the right size and stage color but nothing is shown.
And I can't retrieve images from a runtime shared library.
Here's some sample code that illustrates the problem (this used to work fine in cs5.5):
package classes
    import flash.display.MovieClip;
    import flash.utils.getDefinitionByName;
    import flash.display.Sprite;
    import flash.external.*;
    public class ExampleClass extends MovieClip
        public function ExampleClass()
            ExternalInterface.addCallback("Show", Show);
            var test:Sprite = new Sprite();
            test.graphics.beginFill(0xff00ff);
            test.graphics.drawCircle(0, 0, 100);
            addChild(test);
            var test02:Sprite = new (getDefinitionByName("ConnectionIcon_Orange") as Class)();
            addChild(test02);
        private function Show():void
In this example I don't see the "test" Sprite's graphic.
When I comment the following line:
ExternalInterface.addCallback("Show", Show);
I do see the "test" Sprite's graphic.
With the test02 Sprite I try to retrieve an image from a runtime shared library but it never shows up (it did in cs5.5 do i need to make any new setting changes?).
I'm not getting any error messages and it seems fine with the code.
could anyone please point me to where I'm going wrong?
Cheers

Few random things I'd try..
First, are you running this in debugger? (CTRL+SHIFT+ENTER)? If not then use that means of executing and put some breakpoints in the code so you can watch the code execute step by step to see what's generating an error. In publish settings for this SWF in the SWF parameters make sure you check to permit debugging to get more verbose errors:
Explicitly including ExternalInterface rather than flash.external.*;. It should include it (and everything in the package) but I've had lookup issues with this before. So:
import flash.external.ExternalInterface;
See if that clears up the break on that line. You should set a break point above that line however so you can step into the command and watch for errors.
Make sure your access toggle (network/local files) is correct to access your RSL.
Sometimes a couple more lines of code for clarity can help a lot. Break up your getDefinitionByName line into 2 lines, maybe adding in a condition just so you can step through it and analyze exactly which part of that compound statement is going wrong. It could be as simple as your "new (...)" isn't being cast to a Sprite before you assign it so the line fails. So try:
var test2Class:Class = getDefinitionByName("ConnectionIcon_Orange") as Class;
if (test2Class)
  var test02:Sprite = new test2Class() as Sprite; // cast
By stepping through it you'll see if your definition cannot be found (RSL or link issue) or if assigning it to a Sprite (test02) is the issue (perhaps it's a MovieClip or some other unexpected type and this fails).

Similar Messages

  • Why does the 'publish preview' screen in flash cs5 show part of the animation and then turns blank?

    Hi I am creating frame by frame animation in photoshop.
    I am importing the photoshop files into flash using
    FILE > IMPORT > IMPORT TO STAGE
    I used to be able to preview or "line test" my animation easily by clicking on:
    FILE > PUBLISH PREVIEW > FLASH
    I could watch the animation loop and see where improvements are needed. Now, flash struggles a lot with the files, takes a long time to load the preview, when it finally does, it shows me maybe a third of the animation, turns blank, and acts as if all my frames are completely blank. I cannot later see them on my main work surface either.
    Does anyone know what is going on? I keep restarting flash but the same problem persists.
    Thanks in advance for any help or suggestions

    Hi,
    Thanks, that might be it, I will look at re-sizing.
    I'm working in a very round-about way, of creating the frame by frame animation in photoshop, importing it to flash for preview, exporting from flash as png sequence into after effects where I continue animating.
    So I will look at exporting the png sequence straight from photoshop - let's see how this goes
    Thanks,
    W.

  • Flash CS5 Publish Preview not working

    I am working on Flash CS5 Professional. I have created a simple fla file but not able to Publish->preview the swf file in Google Chrome.
    When I click on Publish Preview it opens a new browser window but nothing happens.What am I doing wrong?

    I'm having the same issue. Flash runs fine in Chrome, except for when I choose File->Publish Preview->Default - HTML in Flash CS5. When I try to Publish Preview, Chrome, my default browser, opens a new tab that is blank. Repeatedly pressing Refresh doesn't do anything for me (it still loads a blank page).
    I just played with it a bit. I think I've got it figured out.
    Flash CS5 loads Chrome with the file address in the address bar, but it doesn't Go. If I copy the address, open a new tab, right-click in the address bar and choose "Paste and go", the Flash file loads. Going back to the original tab (the one opened by Flash when I selected Publish Preview, I pressed Enter in the address bar and the Flash file loaded.

  • Flash windows in web page do not print preview or print - works in IE

    Specs:
    Win XP Pro, SP3, Laptop and Win 7 Desktop
    FF 3.6.10
    IE8
    Latest flash for IE and FF - 10.1.85.3 (previous 10.1 versions also issue)
    I routinely use www.speedtest.net and www.speakeasy.net/speedtest to perform speed tests for troubleshooting issues. Both use Flash windows to show the Download/Upload speed test progress and final results.
    In IE8, both ''print preview'' and ''print'' work and display/print the contents of the flash windows. In FF, everything displays/prints properly expect the content of the Flash windows - they are blank.
    Apologize, as I imagine this has had to be reported in the past as I've seen posts via Google search going back many years, but could not find anything recent in FF help or forum. In addition, I assume this could be a Flash issue. However, if it is, it is not impacting IE. Regardless whether an FF or Adobe issue, I believe that Mozilla should head up and manage the repairs.

    If you just need an image of the page (not the browser frame or full desktop), the FireShot extension will do that. I have been using FireShot for some time and am quite happy with the results. I just tested it on www.speedtest.net results on my XP system and it worked. With Fireshot, you can add notations and print or save the image (full screen or just visible area). Do not opt for the paid "Pro" version, just use the free version. If you use it, you may want to block outgoing connection to screenshot-program.com in your firewall; I do not know why it tries to make that contact with it each screen capture, but it works fine with the firewall blocking the outgoing connection.
    FireShot: https://addons.mozilla.org/en-US/firefox/addon/5648/
    <br />
    You need to update your plugins. It is important to keep them updated due to continuing security fixes and improvements in those plug-ins:
    * Adobe PDF Plug-In For Firefox and Netscape "9.3.4" (ver. 9.4.0.195, a security update, was released 2010-10-05)
    #'''Check your plugin versions''': http://www.mozilla.com/en-US/plugincheck/
    #*'''Note: plugin check page does not have information on all plugin versions'''
    #'''Update Adobe Reader (PDF plugin):'''
    #*From within your existing Adobe Reader ('''<u>if you have it already installed</u>'''):
    #**Open the Adobe Reader program from your Programs list
    #**Click Help > Check for Updates
    #**Follow the prompts for updating
    #**If this method works for you, skip the "Download complete installer" section below and proceed to "After the installation" below
    #*Download complete installer ('''if you do <u>NOT</u> have Adobe Reader installed'''):
    #**Use Firefox to download and SAVE the installer to your hard drive from the link in the article below
    #**On the Adobe page, un-check any extra items (i.e. Free McAfee® Security Scan Plus) then click Download button
    #**If you see message just under tabs, DO NOT click the Allow button, instead click below that where it says "click here to download".
    #**Click "Save to File"; save to your Desktop (so you can find it)
    #**After download completes, close Firefox
    #**Click the installer you just downloaded and allow the install to continue
    #***Note: Vista and Win7 users may need to right-click the installer and choose "Run as Administrator"
    #**'''<u>Download link and more information</u>''': https://support.mozilla.com/en-US/kb/Using+the+Adobe+Reader+plugin+with+Firefox#Installing_and_updating_Adobe_Reader
    #*After the installation, start Firefox and check your version again.

  • Flash 8 Pro: Publish Preview & Keyboard Layout Problems

    Hi,
    Hoping someone can help. I am a NEW Flash 8 Pro user and have
    discovered two problems I cant seem to resolve:
    1. When I press F12 (or select Publish Preview | Default
    (HTML) in the menu), although my project publishes correctly,
    producing all the correct files (including a working HTML file), my
    browser does not open and display the swf. I tried changing my
    default browser and on several projects, but the problem persists
    2. For some reason, my keyboard is set to the US layout
    instead of the British layout...this is the only application that
    is doing this and it doesnt appear to be an option that I can
    change inside Flash.
    Can anyone help me with these issues? It would be grately
    appreciated.
    PS: I am on a high-spec Windows XP SP2 PC (if that is of any
    assistance)

    Did you ever get your issue with the F12, publish preview,
    not loading your browser? I have just upgraded from MX 2004 to 8
    and now have this issue.
    T Peluso
    [email protected]

  • Flash Hanging on Publish Preview

    Whenever I try to do an .html publish preview (File ->
    Publish Preview -> HTML), Flash hangs.
    I can publish the .html file correctly; and outside Flash, I
    can open the .html file correctly. Only F12 hangs.
    This happens even with a blank file.
    Any ideas?

    I suggest having a browser already open and minimized when
    you go to hit F12. Sometimes Flash won't open a new browser unless
    one is already open. At least, that's what I do. (I'm in the habit
    of hitting F12 as well.)

  • After viewing a site with a flash window in it, the next site shows a blank rectangle where the flash window of the previous site was. This persists through all subsequent sites. How can I eliminate this flash window persistence?

    using the latest Firefox Beta, after opening Shambhala.org site, the flash window shows up as a blank rectangle on subsequent sites. I am using Mac OSX 10.6 Snow Leopard. The only way I can get rid of the blank rectangle is to restart Firefox.

    That sounds like a known problem on OS X. From the known issues section of the [http://www.mozilla.com/en-US/firefox/4.0b5/releasenotes/ Firefox 4 Beta 5 Release Notes]
    "Plugin content can be rendered incorrectly leaving blank white squares over web content. Scrolling or switching tabs will often fix the problem, although sometimes you must close the tab which contains that plugin content (see [https://bugzilla.mozilla.org/show_bug.cgi?id=592453 bug 592453])"
    This should be fixed in the next beta.

  • Publishing preview my sit in safari using flash mx? please help

    For some reason now when i publish preview my webiste in flash mx by using apple f12, the safari does not open up with my work. Before It use to do this, now it don't.
    Recently I bough dreamweaver and when i tryed to publish my flash mx movie , dreamweaver opened for some reason and tried to publish in there. Because i didn't want dreamwaver to publish it i removed it, now safari will not even view my published work in flash when i apple f12.
    How do i fix this and also have control over only allowing safari to view my html or published work?

    For some reason now when i publish preview my webiste in flash mx by using apple f12, the safari does not open up with my work. Before It use to do this, now it don't.
    Recently I bough dreamweaver and when i tryed to publish my flash mx movie , dreamweaver opened for some reason and tried to publish in there. Because i didn't want dreamwaver to publish it i removed it, now safari will not even view my published work in flash when i apple f12.
    How do i fix this and also have control over only allowing safari to view my html or published work?

  • Flash CS4 crashes on 2nd publish preview (v10 and 10.0.2)

    I've seen this problem for so long, I've become desensitized to it.  In flash 8, flash CS3, and flash CS4 (with and without the 10.0.2 patch), the program crashes and burns about 75% of the time when I
    publish preview,
    leave the playing swf open, and
    publish preview again.
    I would think in this case flash should just close the playing swf from the first publish preview before opening the second one, but most of the time it crashes instead.  I've gotten used to closing the swf manually before I publish preview a second time - I guess it's just one of flash's "endearing" little quirks.  Does this happen to anyone else, and does anyone know how to fix it?  Does adobe know?

    The second publish is doing a simulate download, so it's a different thing happening - but of course it shouldn't crash Flash. Is this 75% of the time with a particular file, or in general with all of your files? Have you done this with the Task Manager open and is the memory going way up when you go into simulate download mode?

  • LR 4 only prints a blank page on Epson 2880. Print preview panes remain blank. Window 7 OS. Need help desperately!

    LR 4 only prints a blank page on Epson 2880. Print preview panes remain blank. Window 7 OS. Need help desperately!

    Bob
    Thank you for your kind consideration of my problem. Up until the software started to print blank pages the preview pane always showed the selected print within the selected layout. Something has changed. Lightroom will print to the JPEG file but only a blank page on the Epson 2880. I've been in contact with Epson support and an IT tech and they tell me the problem is with Lightroom. I'm at my wits end and thinking of upgrading but the glitch may carry over. Uninstalling and reinstalling and deleting the preferences file did nothing to rectify the situation.
    Thanks again!
    David

  • I can´t publish or export to flash

    Hello, I have installed Captivate 6.0.1 in a Mac.
    When I finished, I try to publish and a blank square was in the screen in time the publish menu.
    I try upgrade Captivate, reinstalled and the problem is continuous.
    When I try to export to Flash CS6 or CS5, generate an error message.
    Thanks in advanced.

    Shekhar
    I found and other problem, when you Can publish (a friend have a PC with
    the program), I create a SCORM. This file is mow in a Moodle course. When
    you open the SCORM all look well, but if you open and URL and return to the
    SCORM, the buttons go away.
    You need recalled the page in web navigator to see again.
    What is *wrong?
    *Raúl
    2013/3/5 raul cuellar <[email protected]>
    Hello again Shekhar
    Yes, in this address I found the Captive carpet. Then I changed the name
    and reestarted the program.
    Now I see this page at started and whe try to publish.
    image: Imágenes integradas 1
    image: Imágenes integradas 2
    >
    What I can do?
    Thanks in advanced
    Raúl Cuéllar
    >
    2013/3/5 Shekhar_Dhiman <[email protected]>
    >> **
    >>    Re: I can´t publish or export to flash  created by Shekhar_Dhiman<http://forums.adobe.com/people/Shekhar_Dhiman>in
    >> Adobe Captivate - View the full discussion<http://forums.adobe.com/message/5124277#5124277>

  • PLEASE HELP! My objects have no stroke/fill unless in publish preview. I can't see what I am doing?

    I have CS6 Flash Professional, Windows 7 Professional, File I am trying to make is an ActionScript 2. I have to use ActionScript 2 for it because it is a school project.  I can click the oval tool, set the stroke size to 2.0 stroke to black, fill to pink and drag to create the oval on the stage. while i am dragging, and when i finish dragging it is still just a thin green outline of an oval. No fill, no thickness to the stroke, and the only color it will be is green. When i click publish preview and load a preview for flash the pop up box shows the oval with 2.00 stroke size, black stroke, and pink fill.
    It seems like no matter what I try to draw or make for the stage it just shows up as this green outline and wont display any of the stroke/fills that i select for them. Is this something in my settings that I need to change?
    If someone could help me out it would be really, really appreciated!!!

    You appear to have things displaying in outline mode.  There are a couple of places/ways this can happen. 
    The first, more obvious place is on the timeline.  If you look at the layer you are drawing in, at the end of the section where you name the layer you should see a small square.  That square controls the outline mode for that layer.  I cannot tell from the image you show if it is active or not, so try clicking on it to switch it between outline and not outline mode to see if that fixes things.  The color inside the square will be a solid color if it is not in outline mode.
    The second, less obvious place to look in via the top menu bar... select View -> Preview Mode -> and make sure Outlines is not selected.

  • 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

  • TMG always returns blank wpad.dat file on Web Listener

    Hello, I have local web server publication on 80 port with redirection to https protocol for local and external clients. And TMG refuses to serve real "/wpad.dat" to clients — instead it serves blank html.
    Now I created web publish rule with same Web Listener on 80 port on Internal network that redirects any request with path "/wpad.da*", but while this rule works for "/wpad.dad" and "/wpad.dat?" it doesn't work for "/wpad.dat"!
    Why?
    I also created simply rule to block access to local "/wpad.dat" url, but it doesn't work either while web listener on next rule is active — TMG still returns blank html.
    And when new rules are disabled request to published server for "/wpad.dat" on http protocol returns blank html while it should redirect to https and forward request to real server according to rule configuration. However,
    request on https is forwarded to published server.
    My configuration requires local web server publication and distribution of wpad.dat file on 80 port, only workaround that i see is to make new server that will redirect requests to wpad.dat file to alternate url.
    Thank you for advice on my problem.

    Hi,
    Thank you for the post.
    Please refer to this guide to deploy WPAD:
    http://technet.microsoft.com/en-us/library/bb794779.aspx.
    Regards,
    Nick Gu - MSFT

  • Get Map As XML/Server Image returns blank image on server and errors out on local

    In Server, map.getMapAsXML and map.getMapAsServerImage both return blank images though they return a valid url
    In local, executing map.getMapAsXML reports the following error:
    Uncaught SecurityError: Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported. oraclemapsv2.js:2171(anonymous function) oraclemapsv2.js:2171(anonymous function) oraclemapsv2.js:2137f

    You may be using Windows with limited functionality as the previous version expired. Did you re-format the drive/partition before you did the "fresh" install if not Windows probably kept the old install information so knew that it was expired previously. Either activate Windows (try typing slui.exe and filling in the product key and activate - then restart the machine) or re-format the drive/partition that Windows is on and re-install Windows again.

Maybe you are looking for