JavaScript runtime error: Object doesn't support property or method 'Load'

I'm pretty new to SharePoint 2013 apps and CSOM. I have written a simple SharePoint-hosted App in Visual Studio 2013 which attempts to display the current user's user profile picture using CSOM and JavaScript. Here is the code in my App.js file:
$(document).ready(function () {
    var context = SP.ClientContext.get_current();
    var peopleManager = new SP.UserProfiles.PeopleManager(context);
    var userProperties = peopleManager.getMyProperties();
    context.Load(userProperties);
    context.executeQueryAsync(function (){
        if (properties) {
            var pic = userProperties.get_pictureUrl();
            $('#userProfileImage').attr("src", pic);
I am getting error "JavaScript runtime error: Object doesn't support property or method 'Load'" on line "context.Load(userProperties);"
I have SP.UserProfiles.js referenced, which is why this command executes successfully: var peopleManager = new SP.UserProfiles.PeopleManager(context); Is it my context object or userProperties object that is causing this error, and why? Thanks
in advance for your help.
Frank Foreman

Hi,
  This method is case Sensitive, try this context.load(userProperties);

Similar Messages

  • Windows 8.1 and IE11 - Critical Error: Object doesn't support property or method 'addEventListener'

    Our SharePoint 2010 sites don't work very well in Windows 8.1/IE11!!
    When opening list items or forms etc we get Critical Error : Object doesn't support property or method 'addEventListener'. It looks like it's possibly linked to InfoPath forms. Given that a large chunk of our users will probably be upgrading
    to Windows 8.1 as we speak this is slightly worrying!
    Has anyone else noticed this, or is it something to do with our deployment?  We're running SP2010 SP2 with latest CU.

    In older versions of IE, attachEvent is
    used to attach an event handler for some event on some element. But as per the update , starting with IE11, attachEvent is
    deprecated and you should use addEventListener instead.
    IE has included support for addEventListener from
    IE9 and above only. So if you still need to support IE8, I suggest you use some cross-browser library like jQuery to bind event handlers instead of vanilla javascript.
    As you're already using jQuery, you can bind events like below
    $('#yourElement').on('click', function(){
    // do something when you click on yourElement

  • JsRender error Object doesn't support property or method 'render'

    I have used jsRender.js in a content editor on a webpart page.
    Whenever I am using the following line inside document.ready(), it gives error.
    $( "#SearchResults" ).html(
    $( "#resultTemplate" ).render( results )
    Error: Object doesn't support property or method 'render'.
    Basically on a button click, this is getting called to display the results.
    I have checked, the jsRender.js file getting loaded properly.
    Can anyone help in this issue.

    Hi All,
    Using the developer tool, when I am running the render method on $( "#resultTemplate" ) element, it's again giving the same error.
    I have properly referred the jQuery and jsRender file using the seperate </script> tag. Also identified that on page load, these files are getting properly loaded.
    Here is the following code I am using, where I am calling the search function in last line (originally on button click):
    <script src="/sites/Tools/siteassets/jquery/js/jquery-1.7.2.min.js" type="text/javascript"></script>
    <script src="/sites/Tools/SiteAssets/FormExtension/jsrender.js" type="text/javascript"></script>
    $(document).ready(function(){
    var searchCount = 0;
    function search(term) {
    // Show loading animation
    $(".loadingAnim").show();
    $("#searchResults").html("");
    var curCtx = new SP.ClientContext.get_current();
    var searchCAML = "";
    var searchToBeAppended = "";
    var searchTerms = term.split(" ");
    // remove empty elements/blanks
    searchTerms = $.grep(searchTerms,function(n){
    return(n);
    if(searchTerms.length > 1){
    searchCAML += "<And>";
    $.each(searchTerms, function(i, t){
    if(i == 0 || i == 0 && searchTerms.length == 2){
    searchCAML += "<Contains><FieldRef Name='search' /><Value Type='Text'><![CDATA["+xmlencode($.trim(t))+"]]></Value></Contains>";
    }else if(i == 0 && searchTerms.length > 2){
    searchCAML += "<Contains><FieldRef Name='search' /><Value Type='Text'><![CDATA["+xmlencode($.trim(t))+"]]></Value></Contains>";
    }else if(i == 1 && searchTerms.length == 2){
    searchCAML += "<Contains><FieldRef Name='search' /><Value Type='Text'><![CDATA["+xmlencode($.trim(t))+"]]></Value></Contains></And>";
    }else if(i == searchTerms.length-1){
    searchCAML += "<Contains><FieldRef Name='search' /><Value Type='Text'><![CDATA["+xmlencode($.trim(t))+"]]></Value></Contains>";
    }else{
    searchCAML += "<And><Contains><FieldRef Name='search' /><Value Type='Text'><![CDATA["+xmlencode($.trim(t))+"]]></Value></Contains>";
    searchToBeAppended += "</And>";
    if(searchTerms.length > 2){
    searchToBeAppended += "</And>";
    // Append necessary colsing tags
    searchCAML += searchToBeAppended;
    //reset searchToBeAppended
    searchToBeAppended = "";
    if(searchTerms.length > 1){
    searchCAML += "<And>";
    $.each(searchTerms, function(i, t){
    if(i == 0 || i == 0 && searchTerms.length == 2){
    searchCAML += "<Contains><FieldRef Name='ContentRemark' /><Value Type='Note'><![CDATA["+xmlencode($.trim(t))+"]]></Value></Contains>";
    }else if(i == 0 && searchTerms.length > 2){
    searchCAML += "<Contains><FieldRef Name='ContentRemark' /><Value Type='Note'><![CDATA["+xmlencode($.trim(t))+"]]></Value></Contains>";
    }else if(i == 1 && searchTerms.length == 2){
    searchCAML += "<Contains><FieldRef Name='ContentRemark' /><Value Type='Note'><![CDATA["+xmlencode($.trim(t))+"]]></Value></Contains></And>";
    }else if(i == searchTerms.length-1){
    searchCAML += "<Contains><FieldRef Name='ContentRemark' /><Value Type='Note'><![CDATA["+xmlencode($.trim(t))+"]]></Value></Contains>";
    }else{
    searchCAML += "<And><Contains><FieldRef Name='ContentRemark' /><Value Type='Note'><![CDATA["+xmlencode($.trim(t))+"]]></Value></Contains>";
    searchToBeAppended += "</And>";
    if(searchTerms.length > 2){
    searchToBeAppended += "</And>";
    // Append necessary colsing tags
    searchCAML += searchToBeAppended;
    if(searchCAML != ""){
    searchCAML = "<View><Query><Where><Or>"+ searchCAML +"</Or></Where></Query><RowLimit Paged='FALSE'>500</RowLimit></View>";
    }else{
    searchCAML = "<View><RowLimit Paged='FALSE'>500</RowLimit></View>";
    /* Load Equipments*/
    listEqui = curCtx.get_web().get_lists().getByTitle('Dossiers');
    var queryResults = new SP.CamlQuery();
    queryResults.set_viewXml(searchCAML);
    listItemsResults = listEqui.getItems(queryResults);
    curCtx.load(listItemsResults , 'Include(ID, Title, Group, Created, Responsible, Client, Autor, Party1, Party2, search )');
    curCtx.executeQueryAsync(getListItemsSuccess, getListItemsFailure);
    function getListItemsSuccess(sender, args) {
    var term = $("#searchTerm").attr("value");
    var results = new Array();
    var listEnumerator = listItemsResults.getEnumerator();
    while (listEnumerator.moveNext()) {
    var element = {
    ID: listEnumerator.get_current().get_item("ID")
    , Title: listEnumerator.get_current().get_item("Title")
    , Group: listEnumerator.get_current().get_item("Group")
    , Created: listEnumerator.get_current().get_item("Created")
    , Responsible: listEnumerator.get_current().get_item("Responsible")
    , Client: listEnumerator.get_current().get_item("Client")
    , Party1: listEnumerator.get_current().get_item("Party1")
    , Party2: listEnumerator.get_current().get_item("Party2")
    , Autor: listEnumerator.get_current().get_item("Autor")
    , term: term
    results.push(element);
    $("#searchResCount").text( results.length + " dossiers found");
    $( "#SearchResults" ).html(
    $( "#resultTemplate" ).render( results )
    AddHoverStyle();
    $(".loadingAnim").delay(1000).fadeOut();
    function getListItemsFailure(sender, args) {
    SP.UI.Notify.addNotification('Failed to get list items. \nError: ' + args.get_message() + '\nStackTrace: ' + args.get_stackTrace(), false);
    $(".loadingAnim").delay(1000).fadeOut();
    //Calling search function.
    search("cl")
    Kindly let me know if something is wrong here.

  • Ehlpdhtm.js script error - Object doesn't support property or method 'Activate'

    RH 9.0.2.271
    Windows 7 64-bit
    This "Object doesn't support property or method 'Activate' ehlpdhtm.js error all of a sudden started popping up when I view any of the chms I build from my file system.
    I initially through it was a 64-bit problem because if I view the chm from my file system I get the script error. But if I copy it to a 32-bit PC or run it from within RH (after it's compiled for example) or a 32-bit version of our software, it runs fine. (However, one of my co-workers tried it on her 64-bit machine and didn't receive any error.) In any case, it seems to be happening on my machine only.
    Anyway, it's not on every topic, but on every one that calls the ehlpdhtm.js script with this line of code, it appears to be happening:
    <script src="ehlpdhtm.js" type="text/javascript" language="JavaScript1.2"></script>
    I don't think hhactivex.dll plays with this js at all, but just in case, I unregistred and re-registered that dll to no effect. I also tried explicitly adding in ehlpdhtm.js as a baggage file. Again, to no effect.
    What could have changed on my system to make this start happening? And any ideas on how to fix it?

    Well here's some more info I found out. If I unregister the 64-bit hhactivex.dll the script error  goes away. Of course my Glossary tab is grayed out as shown below, so that's not really an option:
    Reregistering the 64-bit hhactivex.dll again shows the script errors. Plus, if I then go to my glossary it's completely empty as shown here:
    If I copy this help down into a 32-bit machine everything works: the glossary has glossary terms, there's no script errors.
    In short, I don't know what's going on, but the script error I'm getting is somehow related to having the 64-bit dll registered.

  • Adobe Reader installation error: "object doesn't support property or method 'text'"

    I'm trying to install Adobe Reader and I have the following error after launching the installer:
    "object doesn't support property or method 'text'"
    My OS is Win7 Ultimate 64b (using AVG antivirus), but I encounter the same error on other systems too:
    Win7 Ultimate 32b (AVG Antivirus)
    Win7 Enterprise 64b (McAfee Antivirus)
    No matter which button I click, the installer hangs:
    I googled this error, but couldn't find any solution.
    Any ideas?
    Thanks!

    This error mostly occurs if your language is not set to English (on the Adobe.com website).  This has been reported to Adobe a million times, but they don't seem to have any intererest in fixing it.

  • In 2008 R2, I get Object doesn't support property or method PollResizeImages

    This is when I run a report from a reportviewer control to reporting services.  
    Another symptom is that images get cropped but if I refresh page cropping doesn't occur
    I have this version of SQL server 2008 R2
    Microsoft SQL Server 2008 R2 (SP1) - 10.50.2500.0 (X64)   Jun 17 2011 00:54:03   Copyright (c) Microsoft Corporation  Developer Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1) (Hypervisor) 
    I am using the ReportViewer control to display this report
    I get this error  Line: 1  Error: Object doesn't support property or method 'PollResizeImages'
    It appears to be from this method
    function anonymous()
    this.PollResizeImages(oReportDiv,oReportDiv)
    Another environment with same sql server version doesn't get this error for same report

    Hi DenisLang,
    As far as I know, it is a known issue in SSRS. Please try to install the latest version of the Report Viewer Runtime to fix the issue.
    If the issue is persist, I recommend you that submit this suggestion at
    https://connect.microsoft.com/SQLServer/ . If the suggestion mentioned by customers for many times, the product team may consider to add the feature in the next SQL Server version. Your feedback is valuable for us to improve our products and increase the
    level of service provided.
    Regards,
    Alisa Tang
    If you have any feedback on our support, please click
    here.
    Alisa Tang
    TechNet Community Support

  • Trying to convert Pages to Word doc, but keep getting this error message:  TypeError:  Object doesn't support property or method 'invalidate'  JavaScript console contains more details.   Any ideas on how to get past this?

    Trying to convert Pages to Word doc, but keep getting this error message:  TypeError:  Object doesn't support property or method 'invalidate'  JavaScript console contains more details.   Any ideas on how to get past this?

    Right. If you are using delegated privs and sudo, make sure that sudo is configured to pass on the PERL5LIB and ORACLE_HOME environment variables at least.

  • Host Web App: error getting host web context 0x800a01b6 - Object doesn't support property or method 'set_formDigestHandlingEnabled'

    Hi
    I testing out creating site columns and content types in host web with an on prem SharePoint hosted app.  I am getting the above error 
    I am getting stuck on the above error when I come to this line of code in an init() function
                hostWebContext = SP.ClientContext(getRelativeUrlFromAbsolute(hostWebUrl));
    Note in my default.aspx header section I have declared the following 
    - The markup and script in the following Content element will be placed in the <head> of the page --%>
    <asp:Content ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
    <script type="text/javascript" src="../Scripts/jquery-1.9.1.min.js"></script>
    <script type="text/javascript" src="/_layouts/15/sp.runtime.js"></script>
    <script type="text/javascript" src="/_layouts/15/sp.js"></script>
    <script type="text/javascript" src="/_layouts/15/sp.Taxonomy.js"></script>
    <script type="text/javascript" src="/_layouts/15/init.js"></script>
    <script type="text/javascript" src="/_layouts/15/sp.Core.js"></script>
    <script type="text/javascript" src="/_layouts/15/sp.UI.Dialog.js"></script>
    Any thoughts anyone ?   
    Daniel
    Freelance consultant

    Hi,
    The following articles for your reference:
    Create lists, content types, fields etc. within a SharePoint 2013 app
    http://www.sharepointnutsandbolts.com/2012/08/create-lists-content-types-files-etc.html
    Programmatically creating Site Columns and Content Types using the App Model
    http://blog.mastykarz.nl/programmatically-creating-site-columns-content-types-app-model/
    Best Regards
    Dennis Guo
    TechNet Community Support

  • WebHelp 5.10.001 JavaScript runtime error

    Using WebHelp 5.10.001 (Adobe RoboHelp 11, WebHelp 5.50) and am receiving the following error:
    JavaScript runtime error: Object doesn't support property or method 'RegisterListener'
    The above occurs on js file: whproxy.js
    function RegisterListener(framename, nMessageId) {
        var wSP = getStubPage();
        if (wSP && wSP != this) {
            //return wSP.RegisterListener(framename, nMessageId);
        else {
            return false;
    So I commented it out to avoid the error being thrown. What is the fix for this?

    Could you please check that Robohelp 11 is updated to the latest update and also try to clear the cache and temp files from the machine and test the output.
    Also could you please also check to login with any other user account in your machine which has the complete admin rights on it.
    Is it possible for you to share the generated output with us or the project.
    Regards,
    Rajeev.

  • IE9: AdobeEdge object doesn't support method loadComposition

    The edge animation does not load in IE9
    just a blank page.
    Every other major browser works just fine.
    if I surround the script with a try catch like so:
    <!DOCTYPE html>
    <html>
    <head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <meta http-equiv="X-UA-Compatible" content="IE=Edge"/>
      <title>Julekort 2014</title>
      <!--Adobe Edge Runtime-->
      <meta http-equiv="X-UA-Compatible" content="IE=Edge">
      <script type="text/javascript" charset="utf-8" src="edge_includes/edge.5.0.1.min.js"></script>
      <style>
      .edgeLoad-EDGE-26285399 { visibility:hidden; }
      </style>
      <script>
      try{
      AdobeEdge.loadComposition('Julekort_2.0', 'EDGE-26285399', {
      scaleToFit: "none",
      centerStage: "none",
      minW: "0",
      maxW: "undefined",
      width: "100%",
      height: "5000"
      }, {"dom":[]}, {"dom":[]});
      } catch (e){
      alert(e);
      </script>
      <!--Adobe Edge Runtime End-->
    IE9 alerts:
    TypeError: Object doesn't support property or method 'loadComposition'
    Any help appreciated.

    Has anyone found a solution to this issue?  I am experiencing the same thing.  Is there a different method to code this for IE9 compatibility or is Adobe Edge Animate not compatible with IE9?
    If Adobe Edge Animate is not compatible with IE9, is there another program that can be used for this?
    Thank you.

  • Error in allInOne.js: Object doesn't support this property or method

    We are having an issue deploy our website (Developed in .Net) on a specific server. When we try to visualize a report on any browser we get this error:
    Webpage error details
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618; OfficeLiveConnector.1.4; OfficeLivePatch.0.0)
    Timestamp: Wed, 7 Apr 2010 17:52:31 UTC
    Message: Object doesn't support this property or method
    Line: 10
    Char: 281690
    Code: 0
    URI: http://{IP ADDRESS}/WebUserInterface/aspnet_client/system_web/2_0_50727/crystalreportviewers12/allInOne.js
    We have install the Crystal reports 2008 runtime and the Crystal report 2008 sp2.5 runtime. Both of them give me the same results.
    It's killing me because i have installed the same solution on many other server without any issue.
    Ben
    P.s. The Web server is  a Window Server 2003 R2 standard edition

    Perhaps using [modules|https://smpdl.sap-ag.de/~sapidp/012002523100006252802008E/modules.zip] will at least tell us what dlls are loading. Look at the CR dlls. There should not be any v11 files loaded by your app.
    You may also start considering obtaining phone support for this one. I have a feeling this will take more than just forums to solve...
    Phone support can be obtained here:
    http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300
    Ludek

  • Gettting 0x800a139e - JavaScript runtime error: SecurityError on creating websocket object in .js page

    Hi Team,
    I am creating a websocket object in the existing webapplication I have. When creating the object with url :    var url = 'ws://localhost:4334//WebSocketServer.ashx?name=Satya'; getting error  . 0x800a139e - JavaScript runtime error: SecurityError.
    var ws;
    var message ;
    var messageVal;
    function $(id) {
        return document.getElementById(id);
    function wireEvents() {
        $('sendChat').addEventListener('click', function () {
            message = $('message');
            ws.send(message.innerText);
            messageVal=message.innerText;
            message.innerText = '';
        $('btnCancelChat').addEventListener('click', function () {
            ws.close();
    function Chat () {
        wireEvents();
        var conversation = $('conversation');
        var url = 'ws://localhost:4334//WebSocketServer.ashx?name=Satya';
        //var url = 'ws://https://127.0.0.1:444/WebSocketsServer.ashx?name=Satya';
        ws = new WebSocket(url);
        ws.onerror = function (e) {
            conversation.appendChild(createSpan('Problem with connection: ' + e.message));
        ws.onopen = function () {
            //conversation.innerHTML = 'Client connected <br/>';
        ws.onmessage = function (e) {
            conversation.appendChild(createSpan(e.data.toString()));
        ws.onclose = function () {
            conversation.innerHTML = 'Closed connection!';
    The same works fine if i create a new application i access as a HTML page on page load.
    Can any one help me on this?
    Thanks,
    Satya Chenna

    http://forums.asp.net/
    The JavaScript section is at the above forum.

  • Javascript Runtime Errors

    I keep getting Javascript Runtime Errors when I visit certain web pages and it's stopping me from viewing some pages of a website. What can I do about these errors so I can browse websites without any trouble?
    Here is a screenshot of the error. Usually I get a different error, like a box actually pops up and says there is a java script error etc..., but I can also view the error another way.
    http://img.photobucket.com/albums/v630/Izzy_K/error.jpg
    Message was edited by:
    nuwogu
    Message was edited by:
    nuwogu

    this is not a Java problem but rather a javascript one !!!
    this error means that the browser your are using doesn't support a javascript object or a method.
    try firefox, IE (5x, 6x and 7x if possible).
    As I previously said, you can't handle this problem. contact the webmaster or web developer to report the javascript problem and to know the recommended browser.

  • TypeError: Error #1009: Cannot access a property or method of a null object reference.

    Hi all,
    I am new to ActionScript and Flash, and I am getting this error: TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at jessicaclucas_fla::MainTimeline/stopResumescroll()
    I have several different clips in one movie that have scrolling content. When I click a button to move to a different clip that doesn’t have a certain scroll, it gives me this error. I cannot figure out how to fix this. You can see the site I am working on: http://www.jessicaclucas.com. I would really appreciate some help! Thank you in advance. Here is the code:
    //Import TweenMax and the plugin for the blur filter
    import gs.TweenMax;
    import gs.plugins.BlurFilterPlugin;
    //Save the content’s and mask’s height.
    //Assign your own content height here!!
    var RESUMECONTENT_HEIGHT:Number = 1500;
    var RESUME_HEIGHT:Number = 450;
    //We want to know what was the previous y coordinate of the content (for the animation)
    var oldResumeY:Number = myResumecontent.y;
    //Position the content on the top left corner of the mask
    myResumecontent.x = myResume.x;
    myResumecontent.y = myResume.y;
    //Set the mask to our content
    myResumecontent.mask = myResume;
    //Create a rectangle that will act as the Resumebounds to the scrollMC.
    //This way the scrollMC can only be dragged along the line.
    var Resumebounds:Rectangle = new Rectangle(resumescrollMC.x,resumescrollMC.y,0,450);
    //We want to know when the user is Resumescrolling
    var Resumescrolling:Boolean = false;
    //Listen when the user is holding the mouse down on the scrollMC
    resumescrollMC.addEventListener(MouseEvent.MOUSE_DOWN, startResumescroll);
    //Listen when the user releases the mouse button
    stage.addEventListener(MouseEvent.MOUSE_UP, stopResumescroll);
    //This function is called when the user is dragging the scrollMC
    function startResumescroll(e:Event):void {
    //Set Resumescrolling to true
    Resumescrolling = true;
    //Start dragging the scrollMC
    resumescrollMC.startDrag(false,Resumebounds);
    //This function is called when the user stops dragging the scrollMC
    function stopResumescroll(e:Event):void {
    //Set Resumescrolling to false
    Resumescrolling = false;
    //Stop the drag
    resumescrollMC.stopDrag();
    //Add ENTER_FRAME to animate the scroll
    addEventListener(Event.ENTER_FRAME, enterResumeHandler);
    //This function is called in each frame
    function enterResumeHandler(e:Event):void {
    //Check if we are Resumescrolling
    if (Resumescrolling == true) {
    //Calculate the distance how far the scrollMC is from the top
    var distance:Number = Math.round(resumescrollMC.y - Resumebounds.y);
    //Calculate the percentage of the distance from the line height.
    //So when the scrollMC is on top, percentage is 0 and when its
    //at the bottom the percentage is 1.
    var percentage:Number = distance / RESUME_HEIGHT;
    //Save the old y coordinate
    oldResumeY = myResumecontent.y;
    //Calculate a new y target coordinate for the content.
    //We subtract the mask’s height from the contentHeight.
    //Otherwise the content would move too far up when we scroll down.
    //Remove the subraction to see for yourself!
    var targetY:Number = -((RESUMECONTENT_HEIGHT - RESUME_HEIGHT) * percentage) + myResume.y;
    //We only want to animate the scroll if the old y is different from the new y.
    //In our movie we animate the scroll if the difference is bigger than 5 pixels.
    if (Math.abs(oldResumeY - targetY) > 5) {
    //Tween the content to the new location.
    //Call the function ResumetweenFinished() when the tween is complete.
    TweenMax.to(myResumecontent, 0.3, {y: targetY, blurFilter:{blurX:22, blurY:22}, onComplete: ResumetweenFinished});
    //This function is called when the tween is finished
    function ResumetweenFinished():void {
    //Tween the content back to “normal” (= remove blur)
    TweenMax.to(myResumecontent, 0.3, {blurFilter:{blurX:0, blurY:0}});

    Hi again,
    Thank you for helping. I really appreciate it! Would it be easier to say, if resumescrollMC exists, then execute these functions? I was not able to figure out the null statement from your post. Here is what I am trying (though I am not sure it is possible). I declared the var resumescrollMC, and then I tried to put pretty much the entire code into an if (resumescrollMC == true) since this code only needs to be completed when resumescrollMC is on the stage. It is not working the way I have tried, but I am assuming I am setting up the code incorrectly. Or, an if statement is not supposed to be issued to an object:
    //Import TweenMax and the plugin for the blur filter
    import gs.TweenMax2;
    import gs.plugins.BlurFilterPlugin2;
    //Save the content's and mask's height.
    //Assign your own content height here!!
    var RESUMECONTENT_HEIGHT:Number = 1500;
    var RESUME_HEIGHT:Number = 450;
    var resumescrollMC:MovieClip;
    if (resumescrollMC == true) {
    //We want to know what was the previous y coordinate of the content (for the animation)
    var oldResumeY:Number = myResumecontent.y;
    //Position the content on the top left corner of the mask
    myResumecontent.x = myResume.x;
    myResumecontent.y = myResume.y;
    //Set the mask to our content
    myResumecontent.mask = myResume;
    //Create a rectangle that will act as the Resumebounds to the scrollMC.
    //This way the scrollMC can only be dragged along the line.
    var Resumebounds:Rectangle = new Rectangle(resumescrollMC.x,resumescrollMC.y,0,450);
    //We want to know when the user is Resumescrolling
    var Resumescrolling:Boolean = false;
    //Listen when the user is holding the mouse down on the scrollMC
    resumescrollMC.addEventListener(MouseEvent.MOUSE_DOWN, startResumescroll);
    //Listen when the user releases the mouse button
    stage.addEventListener(MouseEvent.MOUSE_UP, stopResumescroll);
    //This function is called when the user is dragging the scrollMC
    function startResumescroll(e:Event):void {
    //Set Resumescrolling to true
    Resumescrolling = true;
    //Start dragging the scrollMC
    resumescrollMC.startDrag(false,Resumebounds);
    //This function is called when the user stops dragging the scrollMC
    function stopResumescroll(e:Event):void {
    //Set Resumescrolling to false
    Resumescrolling = false;
    //Stop the drag
    resumescrollMC.stopDrag();
    //Add ENTER_FRAME to animate the scroll
    addEventListener(Event.ENTER_FRAME, enterResumeHandler);
    //This function is called in each frame
    function enterResumeHandler(e:Event):void {
    //Check if we are Resumescrolling
    if (Resumescrolling == true) {
    //Calculate the distance how far the scrollMC is from the top
    var distance:Number = Math.round(resumescrollMC.y - Resumebounds.y);
    //Calculate the percentage of the distance from the line height.
    //So when the scrollMC is on top, percentage is 0 and when its
    //at the bottom the percentage is 1.
    var percentage:Number = distance / RESUME_HEIGHT;
    //Save the old y coordinate
    oldResumeY = myResumecontent.y;
    //Calculate a new y target coordinate for the content.
    //We subtract the mask's height from the contentHeight.
    //Otherwise the content would move too far up when we scroll down.
    //Remove the subraction to see for yourself!
    var targetY:Number = -((RESUMECONTENT_HEIGHT - RESUME_HEIGHT) * percentage) + myResume.y;
    //We only want to animate the scroll if the old y is different from the new y.
    //In our movie we animate the scroll if the difference is bigger than 5 pixels.
    if (Math.abs(oldResumeY - targetY) > 5) {
    //Tween the content to the new location.
    //Call the function ResumetweenFinished() when the tween is complete.
    TweenMax.to(myResumecontent, 0.3, {y: targetY, blurFilter:{blurX:22, blurY:22}, onComplete: ResumetweenFinished});
    //This function is called when the tween is finished
    function ResumetweenFinished():void {
    //Tween the content back to "normal" (= remove blur)
    TweenMax.to(myResumecontent, 0.3, {blurFilter:{blurX:0, blurY:0}});

  • DataGrid - Error #1009: Cannot access a property or method of a null object reference.

    I am getting a runtime error when I click a button that fires
    the addPerson function.
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    at main/addPerson()[C:\Documents and Settings\edunn\My
    Documents\Flex Builder 3\workspace2\Test-1\src\main.mxml:178]
    at main/___main_Button4_click()[C:\Documents and
    Settings\edunn\My Documents\Flex Builder
    3\workspace2\Test-1\src\main.mxml:228]
    I am new to Action Script - and object programming - so
    understand...
    I do not understand what I have done wrong here...
    I have a result list coming from an external web service that
    populates in a datagrid. I'd like to be able to update that
    datagrid and then push back to the web service the new array.
    Any ideas?????
    import mx.rpc.events.ResultEvent;
    import mx.rpc.events.FaultEvent;
    import mx.collections.ArrayCollection;
    import generated.webservices.FxAppiaUserFeaturesService;
    import generated.webservices.UserSimRingConfig;
    import generated.webservices.SimRingType;
    public var plist:ArrayCollection
    //Updated Function to populate the data from WS
    public function
    retrieveUserSimRingConfig(e:ResultEvent):void {
    var UsrSimRngCfgNumList:Array = new
    UserSimRingConfig().simRingNumberList;
    var plist:ArrayCollection = e.result.simRingNumberList;
    dgSimPhoneList.dataProvider = plist;
    if (e.result.active) {
    chboxSimultaneousRingPhones.selected=true;
    } else {
    chboxSimultaneousRingPhones.selected=false;
    if (e.result.simRingType == "NO_RING_WHILE_ONCALL") {
    chboxSimultaneousRing.selected=true;
    } else {
    chboxSimultaneousRing.selected = false;
    // Add a person to the ArrayCollection.
    public function addPerson():void {
    plist.addItem({simRingNumberList:txtPhoneNumber1.text});
    I posted this in the General Section first by
    mistake...

    can u explain abt this line
    var plist:ArrayCollection = e .
    result.simRingNumberList;

Maybe you are looking for

  • Part of a frame sees to print but I can tell from which object

    Strange thing happening here: In ID3 CS3, the business card I am doing appears perfect. However, when I print it, there is a small portion of what looks to be a frame (the lower left corner) that prints and you can see the lines (very faint but there

  • Macbook pro running,lion will not boot

    My mac book,pro running lion will not complete the start up/boot have tried single user boot, and command v any ideas

  • Border (grids) only print half way across on landscape spreadshee​t - C5180

    Prints fine on C4480 from Compaq Notebook using Vista, but stops at about 5" on C5180 from Notebook.  Same problem printing from HP Pavilion w/Vista.  Downloaded latest driver on Pavilion - no help.  Looks good on Print Preview.  Grids print fine on

  • Sort priority of merged folders and worksets

    Hi Forum! I have a challenge, which I hope some of you can contribute to solving: I'm trying to merge several roles, which have different structures, but I can't get the sorting to work. Here goes : Structure of my different roles: 1 : Role -> Folder

  • CS3 prints to dark and then to green?

    Hi, In CS3 I am having trouble getting my prints to match the image on my MacBookPro Monitor.  AT first the prints were coming out to green, so I calibrated my disply/monitor on my MacBook Pro.  It seem to make a slight improvement and I used the App