Kerberos double hop works internally, but not when published via TMG

Hi all,
          Have 2 x IIS 8.5 servers internally with .net applications on them
The IIS servers have been configured to use a domain account for their apppool... and credentials are pass successfully from the front end server to the back end server.
When publishing the front-end server via TMG, the front-end web pages show up fine, but the delegated credentials aren't passed to the "back end" pages and a 401 - unauthorised error is presented.
The TMG computer account has the front end and back end http SPN's defined for delegation in its AD account properties.
Is this expected ? is this a limitation of TMG ? or have I simply done something incorrect ?

Hi,
Please check the following article to see if you missed anything.
About Kerberos constrained delegation
https://technet.microsoft.com/en-us/library/cc995228.aspx
Best Regards,
Joyce
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

Similar Messages

  • Azure SQL database working locally but not when published to Azure

    I have an
    AngularJS  solution that is connecting to a SQL Azure database.  When
    I run the solution locally, it’s configured to connect up to the SQL Azure database, the solution works fine. However,
    when I publish the solution to Azure the connection to the SQL Azure database does not work.
    When debugging with Chrome I get the error Failed to load resource: the server responded with a status of 500 (Internal Server
    Error) 
    I'm not using EF. but dapper.
    My connectionstring is as follows
    <add name="PortalConnection" providerName="System.Data.SqlClient" connectionString="Server=tcp:xxx.database.windows.net,1433;Database=xxx;User ID="xxx";Password="xxx";Trusted_Connection=False;Encrypt=True;Connection
    Timeout=30;"/>
    When I run the web solution locally from Visual Studio, my sql queries runs like it should, it's only the published version having problems. 
    Any ideas?
    Software Developer

    Hi,
    Thanks for answer.
    I had followed that step by step guide for deploying to Windows Azure. So that was not the problem.
    But I was able to get a better error message by turning off custom error in web.config.
    I got the error message: "Windows login are not supported in this version of SQL Server"
    I solved this by using the SqlConnectionStringBuilder instead of getting the connection string from 
    web.config.
    So everything works great now, just think it's strange it worked locally before..
    Regards
    -entery
    Software Developer

  • My iPad only has sound when the earphones are plugged in. The switch that controls the volume works then, but not when I take the earphones out. Suggestions?

    My iPad2 only has sound when the earphones are plugged in. The volume switch works then too, but not when I take the earphones out. Suggestions?

    it's a hardware issue
    https://discussions.apple.com/thread/1343532?start=315&tstart=0
    more here
    iphone stuck in headset mode

  • 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

  • My iPhone 3G charges with a charger, but not when connected via USB to my computer and iTunes doesn't recognize it.

    Hello, my iPhone charges when I charge it with the wall plug but not when connected to a computer via USB and my iTunes doesn't recognize my iPhone either. iTunes recognizes my iPod and iPad just fine. I have been to Apple iPhone support page and I have restarted my iPhone, the computer, tried different USB ports, etc. I have also tried my iPhone on different macs even with different versions of iTunes and no luck. This all started when I was cleaning out some lint from the usb connector, could I have damaged some part of the docking connection? But why does it charge with a wall plug then?

    I fixed the problem. When I was trying to clean the connector of the iPhone I must have bent some pins. I have straightened them to the best of my ability and now it syncs. If your iPhone charges, but doesn't sync, most likely you have a similar problem, because the iPhone doesn't need all of its pins to charge, but it does need all of them to sync.

  • 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

  • HTML video works but not when publishing in MUSE

    I threw this together without using MUSE - Just a test video that I made in Dreamweaver.  The reason why I'm posting this in MUSE as well as DW forum is because maybe I'm not doing the "5" code correctly.  anyway --:
    http://designerandpublisher.com/html5/video.html
    the HTML5 video above plays great on my desktop as well as on my mobile device.
    So now, I opened up MUSE and made a test phone web page.  I embedded the necessary HTML5 code.  The video plays fine on my desktop but will not play at all on my mobile device (Galaxy Note ii).  It seems to start, then freezes, then craps out.  Here it is:
    http://designerandpublisher.com/hawaii/mobile/
    What I can't understand is why am I am all of a sudden having problems with MUSE playing video files made for mobile when the original DW test I made works perfectly?
    Please advise.

    the OGV and WEBM files work fine in the first test.  those files are also present in the 2nd test, so why isn't the 2nd playing like like the first one?  as for the FLV that's something i can do for mozilla but my main concern is the playback issue with the MUSE test - all works fine in the first example but not in the second.

  • Folio showing in Content Viewer, but not when published in Custom Content Viewer... please help...!

    I shared a folio to review it in the Content Viewer and everything looks ok, but when published (public / free) custom viewer (v24) doesn't show it. What could be the problem?
    Thanks, and excuse my english...

    I am guessing two things:
    1. You created the folio and uploaded to id [email protected] Then you shared with [email protected]
    What is the Title id mentioned in DPS App builder. If it's [email protected], it will not work.
    2. Do you have multiple folios with the same product id.

  • Background image displays locally in HTML5 template but not when published

    I have used an excellent HTML5 template which uses JavaScript to display background images. However while this file works locally it doesn't when published. The site structure is sound and I notice this happens with the source files I downloaded also so it's nothing I have done in my build which could have caused this.
    This is the link to my site, everything is fine except the background image not showing.
    http://www.khawkinsdesign.com
    Any ideas, as I say fine locally, not fine when published?
    Message was edited by: Kyle Hawkins

    Hi Kyle,
    I realise you posted your question a couple of days ago but it looks like your background image issue may now be fixed?
    In any case, your site has a few issues. Not sure who told you the template was HTML 5 but they might be yanking your chain. There is nothing HTML 5 about the code used and the DOCTYPE is from HTML 4. As such, some of the code you have used is throwing up errors - some related to the DOCTYPE and some where you haven't closed the tags:
    http://validator.w3.org/check?uri=http%3A%2F%2Fwww.khawkinsdesign.com%2F&charset=%28detect +automatically%29&doctype=Inline&group=0
    <ul id="footer-nav">
    <li><a href="index.html">Home</a></li>
    <li><a href="portfolio.html">Portfolio</a></li>
    <li><a href="about.html">About</a></li> /*The closing tag is missing in your code */
    <li><a href="contact.html">Contact</a></li> /*The closing tag is missing in your code */
    </ul>
    It would be best to amend the errors but some might disappear when you add the HTML 5 DOCTYPE in to your code. Things like your lack of "type" on the sources is a required v4 attribute, but not in v5.
    <!DOCTYPE html>
    Have a read through this for more info - this is a great resource for everything HTML 5. http://diveintohtml5.info/
    Rik
    EDIT:// It seems that the DOCTYPE is the 5 version on all but the home page so you may only have one to correct. However, there are still no HTML 5 elements used to take advantage of the new DOCTYPE.

  • Images enlarge and movies play in iweb, but not when published

    Everything works fine in the program, but when published to site or folder, photos are there, but won't enlarge. The movie thumbnail shows with the little movie icon in the corner, but clicking does nothing.

    On all of your pages  you have an image that appears to cover the photos preventing them from being clicked on.
    Move it to the back via the Arrange menu or get rid of it.
    How did you add the videos to the page?  If you just dragged them onto the page or used the movie page then iWeb will have to upload them when it publishes the page and all will load when the page is accessed which can cause long loading time for the page. 
    Also thre are some files missing for the TV page as seen in the Activity window (Command+Option+A) for the page. Publish the site to a folder on your hard drive and open it there.  Check to see if the movies play OK (after you fix that overlaying image issue). If they do then the problem lies in the uploading of the files.
    If those files are Quicktime then the viewers must have Quicktime installed on their computer in order to view them.  See this page on Roddy's iWeb for Musicians site for methods of presenting movies that will let all computers view them: Player-Showcase.html.  See the list at the right for different players you can use.

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

  • Cfmail  - works locally but not when uploaded

    Hi,
    I'm using cfmail with form variables for the email addreses.
    It's so users can send email to political candidates. Here's the
    code:
    <cfoutput>#Form.semails#</cfoutput>,<cfoutput>#Form.hemails#</cfoutput></p>
    <cfmail to="#Form.semails#,#Form.hemails#"
    replyto="#Form.useremail#" failto="[email protected]"
    from="#Form.useremail#" subject="Keep Maine Toxin-Free!"
    server="mail.nosuch.com" port="26" timeout="40"
    username="[email protected]" password="nosuch">
    #Form.usermessage#
    </cfmail>
    The form submit page collects those variables and passes them
    as form variables - GET. The "to" field in cfmail is populated by
    hidden fields that contain session variables... they're forwarded
    on as those .semails and .hemails form variables. Actual values
    have been replaced with "none" or "nosuch" for security, but you
    can see the structure anyway.
    This works when run locally, sends the emails as it should.
    When uploaded exactly as is to godaddy's server, it doesn't send
    emails. Doesn't throw any errors, the form results page displays as
    it should... but the emails just never get sent.
    I'd really appreciate any ideas...
    Joe

    Adam Cameron wrote:
    > I don't know how these shared hosting outfits work, and
    what access you
    > have to what, but here's some questions:
    >
    > - have you inspected the mail logs to see if they cast
    any light on the
    > scene
    > - have you configured CF to tell it where the SMTP
    server is?
    > - do you need to authenticate to it, and that sort of
    thing?
    > - are the email messages failing @ the CF end (in which
    case they'll be in
    > the mail/undeliverable dir (not entirely sure that's the
    name of it, but
    > have a shufti around in the cfusion dir...), or are they
    getting to the
    > SMTP server and failing there (check the SMTP server's
    logs).
    >
    Unfortunately all that can't be done by us users of these
    shared hosting
    outfits. You'll need to contact GoDaddy support and ask them
    to take
    these steps. I'm sorry about your probably experience with
    this.
    While I use GoDaddy for my personal hosting where I care more
    about not
    spending a great deal of money over high performance. I do
    not wish my
    support experiences on anybody. If you know ColdFusion well
    and can
    tell support what needs to be done, they should be able to do
    it. Or,
    more likely, you would be able to figure out the self help
    tools to do
    it yourself. But, unless this has changed since my last
    experience,
    their support staff is not ColdFusion literate and are unable
    to guide
    other, inexperienced ColdFusion users.
    Saying all that. Email works just fine on my GoDaddy website
    and I do
    not believe I had to do anything special to use it.

  • Swf works solo, but not when loaded in another swf

    if u wanna see for yourself how it works, create and export a font named "Century" and create an .as file that gets and sets a textfield. Anyways the first issue is, it sometimes doesn't handle it's event listeners when I test the movie, then if i retest it, it works fine. Second I tried loading this swf file into my main file but i get
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at MethodInfo-90()
    at MethodInfo-82()
    even if the menu file works fine on its own
    here's the menu file
    import com.greensock.TweenLite;
    import com.greensock.easing.*;
    import getSet;
    var getter:getSet = new getSet();
    var menu:Sprite;
    init();
    function init():void {
    menu = initMenu();
    addChild(menu);
    menu.addEventListener(Event.ENTER_FRAME,float,false,0,true);
    menu.x = stage.stageWidth - 61;
    menu.y = stage.stageWidth/2 + menu.height/1.75;
    function initMenu():Sprite {
    var menuStart:Boolean = false;
    var homeL:Sprite = homeLink();
    var workL:Sprite = workLink();
    var resumeL:Sprite = resumeLink();
    var contactL:Sprite = contactLink();
    var flashL:Sprite = flashLink();
    var j:int = 0;
    menu = new Sprite();
    menu.addChild(homeL);
    menu.addChild(workL);
    menu.addChild(resumeL);
    menu.addChild(contactL);
    menu.addChild(flashL);
    workL.y = homeL.y - 60;
    resumeL.y = workL.y - 60;
    contactL.y = resumeL.y - 60;
    flashL.y = contactL.y - 60;
    var homeDist:Number = homeL.y;
    var workDist:Number = workL.y;
    var resumeDist:Number = resumeL.y;
    var contactDist:Number = contactL.y;
    var flashDist:Number = flashL.y;
    homeL.addEventListener(MouseEvent.ROLL_OVER,menuRollOver,false,0,true);
    workL.addEventListener(MouseEvent.ROLL_OVER,menuRollOver,false,0,true);
    resumeL.addEventListener(MouseEvent.ROLL_OVER,menuRollOver,false,0,true);
    contactL.addEventListener(MouseEvent.ROLL_OVER,menuRollOver,false,0,true);
    flashL.addEventListener(MouseEvent.ROLL_OVER,menuRollOver,false,0,true);
    function menuRollOver(e:MouseEvent):void {
    var that:Object = e.target;
    e.target.graphics.lineStyle(1,0xEEEEEE);
    e.target.graphics.beginFill(0xEEEEEE);
    e.target.graphics.drawRect(0,0,60,60);
    e.target.graphics.endFill();
    if (menuStart == false) {
    if (e.target.name == "instance12" && menuStart != false) {
    var menuTimer2:Timer = new Timer(501,1);
    menuTimer2.addEventListener("timer",startContact,false,0,true);
    menuTimer2.start();
    function startContact(e:TimerEvent):void {
    menuTimer2.stop();
    showTarget(that);
    that.addEventListener(Event.ENTER_FRAME,showLink,false,0,true);
    that.addEventListener(MouseEvent.ROLL_OUT,menuRollOut,false,0,true);
    that.removeEventListener(MouseEvent.ROLL_OVER,menuRollOver);
    menuTimer2.removeEventListener("timer",startContact);
    } else {
    showTarget(e.target);
    e.target.addEventListener(Event.ENTER_FRAME,showLink,false,0,true);
    e.target.addEventListener(MouseEvent.ROLL_OUT,menuRollOut,false,0,true);
    e.target.removeEventListener(MouseEvent.ROLL_OVER,menuRollOver);
    } else {
    var menuTimer:Timer = new Timer(200);
    menuTimer.addEventListener("timer",checkMenu,false,0,true);
    menuTimer.start();
    function checkMenu(e:TimerEvent):void {
    if (menuStart == false) {
    menuTimer.stop();
    showTarget(that);
    that.addEventListener(Event.ENTER_FRAME,showLink,false,0,true);
    that.addEventListener(MouseEvent.ROLL_OUT,menuRollOut,false,0,true);
    that.removeEventListener(MouseEvent.ROLL_OVER,menuRollOver);
    menuTimer.removeEventListener("timer",checkMenu);
    function menuRollOut(e:MouseEvent):void {
    if (e.target.name == "instance15") {
    fadeObj(e.target);
    hideTarget(e.target);
    var menuStartTimer:Timer = new Timer(50,1);
    menuStartTimer.addEventListener("timer",equalsTrue,false,0,true);
    menuStartTimer.start();
    function equalsTrue(e:TimerEvent):void {
    menuStart = false;
    menuStartTimer.removeEventListener("timer",equalsTrue);
    e.target.graphics.lineStyle(1,0xEEEEEE);
    e.target.graphics.beginFill(0xFFFFFF);
    e.target.graphics.drawRect(0,0,60,60);
    e.target.graphics.endFill();
    e.target.addEventListener(MouseEvent.ROLL_OVER,menuRollOver,false,0,true);
    e.target.removeEventListener(MouseEvent.ROLL_OUT,menuRollOut);
    e.target.removeEventListener(Event.ENTER_FRAME,showLink);
    e.target.addEventListener(Event.ENTER_FRAME,hideLink,false,0,true);
    function showLink(e:Event):void {
    var amount:Number = getAmount(e.target);
    var i:int = getTarget(e.target);
    var curFlash:Number = flashL.y;
    menuStart = true;
    if (e.target.name == "instance15") {
    e.target.removeEventListener(Event.ENTER_FRAME,showLink);
    for (i; i < menu.numChildren; i++) {
    if (menu.getChildAt(i) == e.target) {
    } else {
    if (curFlash >= flashDist - amount) {
    menu.getChildAt(i).y -= 7;
    } else {
    e.target.removeEventListener(Event.ENTER_FRAME,showLink);
    function hideLink(e:Event):void {
    var i:int = getTarget(e.target);
    var curFlash:Number = flashL.y;
    var curContact:Number = contactL.y;
    var curResume:Number = resumeL.y;
    var curWork:Number = workL.y;
    menuStart = true;
    fadeObj(e.target);
    if (e.target.name == "instance15") {
    e.target.removeEventListener(Event.ENTER_FRAME,hideLink);
    for (i; i < menu.numChildren; i++) {
    if (menu.getChildAt(i) == e.target) {
    } else {
    if (curFlash <= flashDist) {
    menu.getChildAt(i).y += 7;
    if (curFlash > flashDist || curContact > contactDist || curResume > resumeDist ||
    curWork > workDist) {
    setDistance();
    hideTarget(e.target);
    e.target.removeEventListener(Event.ENTER_FRAME,hideLink);
    menuStart = false;
    } else if (curFlash == flashDist) {
    setDistance();
    hideTarget(e.target);
    e.target.removeEventListener(Event.ENTER_FRAME,hideLink);
    menuStart = false;
    function getAmount(obj:Object):Number {
    if (obj.name == "instance3") {
    //trace("home");
    return 94;
    } else if (obj.name == "instance6") {
    //trace("work");
    return 63;
    } else if (obj.name == "instance9") {
    //trace("resume");
    return 134;
    } else if (obj.name == "instance12") {
    //trace("contact");
    return 135;
    } else if (obj.name == "instance15") {
    //trace("flash");
    return 80;
    return 4;
    function getTarget(obj:Object):int {
    for (var i:int = 0; i < menu.numChildren; i++) {
    if (menu.getChildAt(i) == obj) {
    return i;
    return 8;
    function setDistance():void {
    homeL.y = homeDist;
    workL.y = workDist;
    resumeL.y = resumeDist;
    contactL.y = contactDist;
    flashL.y = flashDist;
    function showTarget(obj:Object):void {
    var i:int = getTarget(obj);
    var restMenu:TextField;
    var that:Object;
    //if (menuStart = false
    if (i == 0) {
    restMenu = getRest("ome");//shows the rest of menu
    } else if (i == 1) {
    restMenu = getRest("ork");
    } else if (i == 2) {
    restMenu = getRest("esume");
    } else if (i == 3) {
    restMenu = getRest("ontact");
    } else if (i == 4) {
    restMenu = getRest("lash");
    getter.menuObject = restMenu;
    getter.menuObject.alpha = 0;
    if (i != 3) {
    TweenLite.to(getter.menuObject,1,{alpha:1});
    } else {
    TweenLite.to(getter.menuObject,1,{alpha:1, delay:.5, overwrite:false});
    if (restMenu != null) {
    if (i == 0) {
    that = menu.getChildByName("instance3");
    that.addChild(getter.menuObject);
    } else if (i == 1) {
    that = menu.getChildByName("instance6");
    that.addChild(getter.menuObject);
    } else if (i == 2) {
    that = menu.getChildByName("instance9");
    that.addChild(getter.menuObject);
    } else if (i == 3) {
    that = menu.getChildByName("instance12");
    that.addChild(getter.menuObject);
    } else if (i == 4) {
    that = menu.getChildByName("instance15");
    that.addChild(getter.menuObject);
    function hideTarget(obj:Object):void {
    var that:Object;
    j++
    if (getter.menuObject != null && obj.name == "instance3" && j == 4) {
    that = menu.getChildByName("instance3");
    that.removeChild(getter.menuObject);
    j = 0;
    } else if (getter.menuObject != null && obj.name == "instance6" && j == 3) {
    that = menu.getChildByName("instance6");
    that.removeChild(getter.menuObject);
    j = 0;
    } else if (getter.menuObject != null && obj.name == "instance9" && j == 2) {
    that = menu.getChildByName("instance9");
    that.removeChild(getter.menuObject);
    j = 0;
    } else if (getter.menuObject != null && obj.name == "instance12" && j == 1) {
    that = menu.getChildByName("instance12");
    that.removeChild(getter.menuObject);
    j = 0;
    } else if (getter.menuObject != null && obj.name == "instance15") {
    that = menu.getChildByName("instance15");
    that.removeChild(getter.menuObject);
    j = 0;
    function fadeObj(obj:Object):void {
    TweenLite.to(getter.menuObject,.5,{alpha:0});
    return menu;
    function homeLink():Sprite {
    var homeField:TextField = menuF("H");
    var clickable:Sprite = mClickable();
    var _home = new Sprite();
    _home.graphics.lineStyle(1,0xEEEEEE);
    _home.graphics.beginFill(0xFFFFFF);
    _home.graphics.drawRect(0,0,60,60);
    _home.graphics.endFill();
    homeField.rotation -= 90;
    _home.addChild(homeField);
    homeField.y += 48;
    homeField.x -= 3;
    _home.buttonMode = true;
    _home.addChild(clickable);
    return _home;
    function workLink():Sprite {
    var workField:TextField = menuF("W");
    var clickable:Sprite = mClickable();//square ontop of letters to be clickable
    var _work = new Sprite();
    _work.graphics.lineStyle(1,0xEEEEEE);
    _work.graphics.beginFill(0xFFFFFF);
    _work.graphics.drawRect(0,0,60,60);
    _work.graphics.endFill();
    workField.rotation -= 90;
    _work.addChild(workField);
    workField.y += 55;
    workField.x -= 3;
    _work.buttonMode = true;
    _work.addChild(clickable);
    return _work;
    function resumeLink():Sprite {
    var resumeField:TextField = menuF("R");
    var clickable:Sprite = mClickable();
    var _resume = new Sprite();
    _resume.graphics.lineStyle(1,0xEEEEEE);
    _resume.graphics.beginFill(0xFFFFFF);
    _resume.graphics.drawRect(0,0,60,60);
    _resume.graphics.endFill();
    resumeField.rotation -= 90;
    _resume.addChild(resumeField);
    resumeField.y += 46.5;
    resumeField.x -= 3;
    _resume.buttonMode = true;
    _resume.addChild(clickable);
    return _resume;
    function contactLink():Sprite {
    var contactField:TextField = menuF("C");
    var clickable:Sprite = mClickable();
    var _contact = new Sprite();
    _contact.graphics.lineStyle(1,0xEEEEEE);
    _contact.graphics.beginFill(0xFFFFFF);
    _contact.graphics.drawRect(0,0,60,60);
    _contact.graphics.endFill();
    contactField.rotation -= 90;
    _contact.addChild(contactField);
    contactField.y += 53;
    contactField.x -= 3;
    _contact.buttonMode = true;
    _contact.addChild(clickable);
    return _contact;
    function flashLink():Sprite {
    var flashField:TextField = menuF("F");
    var clickable:Sprite = mClickable();
    var _flash = new Sprite();
    _flash.graphics.lineStyle(1,0xEEEEEE);
    _flash.graphics.beginFill(0xFFFFFF);
    _flash.graphics.drawRect(0,0,60,60);
    _flash.graphics.endFill();
    flashField.rotation -= 90;
    _flash.addChild(flashField);
    flashField.y += 44;
    flashField.x -= 3;
    _flash.buttonMode = true;
    _flash.addChild(clickable);
    return _flash;
    function menuF(letter:String):TextField {
    var mFont = new Century();
    var menuFormat:TextFormat = new TextFormat();
    menuFormat.font = mFont.fontName;
    menuFormat.size = 50;
    var menuField:TextField = new TextField();
    menuField.defaultTextFormat = menuFormat;
    menuField.text = letter;
    menuField.height = menuField.width = 59;
    menuField.embedFonts = true;
    menuField.antiAliasType = AntiAliasType.ADVANCED;
    menuField.selectable = false;
    menuField.cacheAsBitmap = true;
    return menuField;
    function getRest(letter:String):TextField {
    var mFont = new Century();
    var menuFormat:TextFormat = new TextFormat();
    menuFormat.font = mFont.fontName;
    menuFormat.size = 40;
    menuFormat.color = 0xFF0000;
    var menuField:TextField = new TextField();
    menuField.defaultTextFormat = menuFormat;
    menuField.text = letter;
    menuField.embedFonts = true;
    menuField.antiAliasType = AntiAliasType.ADVANCED;
    menuField.selectable = false;
    menuField.cacheAsBitmap = true;
    menuField.width = 200;
    menuField.rotation -= 90;
    return menuField;
    function mClickable():Sprite {
    var clicker:Sprite = new Sprite();
    clicker.graphics.beginFill(0xFFFFFF,0);
    clicker.graphics.drawRect(1,1,58,58);
    clicker.graphics.endFill();
    return clicker;
    function float(e:Event):void {
    var mouseClamped:Number = this.mouseY;
    if (e.target.y  <= 400) {
    e.target.y = 400;
    } else if (e.target.y >= 480) {
    e.target.y = 480;
    e.target.y += (.1 * (mouseClamped/8 - e.target.y/8));

    You should not nest named functions... a source of problems waiting to happen.  You should go into your Publish settings and select the Permit Debugging option in the Flash section.  That could provide more specific information regarding the source of the error, such as a line number.  I haven't read thru your code beyond a glance, but where you are using e.target in mouse event handler functions, you should try using e.currentTarget instead.

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

  • 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

Maybe you are looking for