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.

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

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

  • 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

  • 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

  • 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}});

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

    Dear Sir,
    I really need your valuable assistance i was about to finish a project but at very last moment i am stuck. Here is the explanation below...
    I have two files called "holder.swf" and "slide.swf" i want to improt the "slide.swf" using this action below
    var myLoader:Loader = new Loader();
    var url:URLRequest = new URLRequest("slide.swf");
    myLoader.load(url);
    addChild(myLoader);
    myLoader.x = 2;
    myLoader.y = 2;
    Also i have attached the flash file of "holder.swf". My concern is the moment i am calling the "slide.swf" inside the "holder.swf" it is showing the following error...
    " TypeError: Error #1009: Cannot access a property or method of a null object reference.
              at FC_Home_Ads_Holder_v2_fla::MainTimeline() "
    Here are the files uploaded for your reference, please download this file http://www.touchpixl.com/ForumsAdobecom.zip
    This error is being occured from "MainTimeline.as" file here is the code been use inside of this file below....
    package FC_Home_Ads_Holder_v2_fla
        import __AS3__.vec.*;
        import adobe.utils.*;
        import com.danehansen.*;
        import com.greensock.*;
        import com.greensock.easing.*;
        import com.greensock.plugins.*;
        import flash.accessibility.*;
        import flash.desktop.*;
        import flash.display.*;
        import flash.errors.*;
        import flash.events.*;
        import flash.external.*;
        import flash.filters.*;
        import flash.geom.*;
        import flash.globalization.*;
        import flash.media.*;
        import flash.net.*;
        import flash.net.drm.*;
        import flash.printing.*;
        import flash.profiler.*;
        import flash.sampler.*;
        import flash.sensors.*;
        import flash.system.*;
        import flash.text.*;
        import flash.text.engine.*;
        import flash.text.ime.*;
        import flash.ui.*;
        import flash.utils.*;
        import flash.xml.*;
        public dynamic class MainTimeline extends flash.display.MovieClip
            public function MainTimeline()
                new Vector.<String>(6)[0] = "Productivity";
                new Vector.<String>(6)[1] = "Leadership";
                new Vector.<String>(6)[2] = "Execution";
                new Vector.<String>(6)[3] = "Education";
                new Vector.<String>(6)[4] = "Speed of Trust";
                new Vector.<String>(6)[5] = "Sales";
                super();
                addFrameScript(0, this.frame1);
                return;
            public function init():void
                var loc1:*=null;
                com.greensock.plugins.TweenPlugin.activate([com.greensock.plugins.Aut oAlphaPlugin]);
                loc1 = new flash.net.URLLoader(new flash.net.URLRequest(this.XML_LOC));
                var loc2:*;
                this.next_mc.buttonMode = loc2 = true;
                this.prev_mc.buttonMode = loc2;
                stage.scaleMode = flash.display.StageScaleMode.NO_SCALE;
                stage.align = flash.display.StageAlign.TOP_LEFT;
                loc1.addEventListener(flash.events.Event.COMPLETE, this.xmlLoaded, false, 0, true);
                this.prev_mc.addEventListener(flash.events.MouseEvent.CLICK, this.minusClick, false, 0, true);
                this.next_mc.addEventListener(flash.events.MouseEvent.CLICK, this.plusClick, false, 0, true);
                return;
            public function xmlLoaded(arg1:flash.events.Event):void
                var loc1:*=null;
                var loc2:*=0;
                this.xmlData = new XML(arg1.target.data);
                loc2 = 0;
                while (loc2 < this.LABELS.length)
                    loc1 = new Btn(this.LABELS[loc2], loc2);
                    this.btnHolder_mc.addChild(loc1);
                    this.BTNS.push(loc1);
                    trace(this.LABELS[loc2]);
                    ++loc2;
                this.current = uint(this.xmlData.@firstPick);
                trace("-----width-----");
                trace(this.contentMask.width);
                var loc3:*=this.contentMask.width / this.LABELS.length;
                trace(loc3);
                loc2 = 0;
                while (loc2 < this.BTNS.length)
                    this.BTNS[loc2].width = loc3;
                    this.BTNS[loc2].x = loc3 * loc2;
                    ++loc2;
                this.btnHolder_mc.addEventListener(flash.events.MouseEvent.CLICK, this.numClick, false, 0, true);
                this.selectMovie();
                return;
            public function numClick(arg1:flash.events.MouseEvent):void
                this.killTimer();
                this.current = arg1.target.i;
                this.selectMovie();
                return;
            public function killTimer():void
                this.timerGoing = false;
                if (this.timer)
                    this.timer.reset();
                    this.timer.addEventListener(flash.events.TimerEvent.TIMER, this.plusClick, false, 0, true);
                    this.timer = null;
                return;
            public function selectMovie():void
                if (this.timerGoing)
                    this.timer = new flash.utils.Timer(uint(this.xmlData.ad[com.danehansen.MyMath.modulo(t his.current, this.xmlData.ad.length())].@delay), 1);
                    this.timer.start();
                    this.timer.addEventListener(flash.events.TimerEvent.TIMER, this.plusClick, false, 0, true);
                while (this.holder_mc.numChildren > 0)
                    this.holder_mc.removeChild(this.holder_mc.getChildAt(0));
                var loc1:*=new flash.display.Loader();
                loc1.load(new flash.net.URLRequest(this.xmlData.ad[com.danehansen.MyMath.modulo(thi s.current, this.xmlData.ad.length())].@loc));
                this.holder_mc.addChild(loc1);
                var loc2:*=0;
                while (loc2 < this.BTNS.length)
                    this.BTNS[loc2].deselect();
                    ++loc2;
                this.BTNS[com.danehansen.MyMath.modulo(this.current, this.xmlData.ad.length())].select();
                var loc3:*=this.BTNS[com.danehansen.MyMath.modulo(this.current, this.xmlData.ad.length())].x + this.BTNS[com.danehansen.MyMath.modulo(this.current, this.xmlData.ad.length())].width / 2 + this.btnHolder_mc.x;
                trace("addLength:" + this.xmlData.ad.length());
                trace(loc3, com.danehansen.MyMath.modulo(this.current, this.xmlData.ad.length()));
                com.greensock.TweenLite.to(this.indicator_mc, 0.3, {"x":loc3, "ease":com.greensock.easing.Cubic.easeOut});
                loc1.contentLoaderInfo.addEventListener(flash.events.Event.COMPLETE, this.adLoaded, false, 0, true);
                return;
            public function adLoaded(arg1:flash.events.Event):void
                var evt:flash.events.Event;
                var loc1:*;
                evt = arg1;
                try
                    evt.target.content.xmlData = this.xmlData.ad[com.danehansen.MyMath.modulo(this.current, this.xmlData.ad.length())];
                catch (er:Error)
                return;
            public function minusClick(arg1:flash.events.MouseEvent):void
                this.killTimer();
                var loc1:*;
                var loc2:*=((loc1 = this).current - 1);
                loc1.current = loc2;
                this.selectMovie();
                return;
            public function plusClick(arg1:flash.events.Event):void
                if (arg1.type != "timer")
                    this.killTimer();
                var loc1:*;
                var loc2:*=((loc1 = this).current + 1);
                loc1.current = loc2;
                this.selectMovie();
                trace("next");
                return;
            public function ENDED(arg1:flash.events.Event):void
                if (arg1.type != "timer")
                    this.killTimer();
                var loc1:*;
                var loc2:*=((loc1 = this).current + 1);
                loc1.current = loc2;
                this.selectMovie();
                trace("next");
                return;
            public function STARTED(arg1:flash.events.Event):void
                this.killTimer();
                return;
            function frame1():*
                this.timerGoing = true;
                addEventListener("endNow", this.ENDED, false, 0, true);
                addEventListener("startNow", this.STARTED, false, 0, true);
                this.init();
                return;
            public const XML_LOC:String=stage.loaderInfo.parameters.xmlLoc ? stage.loaderInfo.parameters.xmlLoc : "home_ads.xml";
            public const LABELS:__AS3__.vec.Vector.<String>=new Vector.<String>(6);
            public const BTNS:__AS3__.vec.Vector.<Btn>=new Vector.<Btn>();
            public const TRANSITION_TIME:Number=0.2;
            public var contentMask:flash.display.MovieClip;
            public var btnHolder_mc:flash.display.MovieClip;
            public var holder_mc:flash.display.MovieClip;
            public var indicator_mc:flash.display.MovieClip;
            public var prev_mc:flash.display.MovieClip;
            public var next_mc:flash.display.MovieClip;
            public var current:int;
            public var xmlData:XML;
            public var timer:flash.utils.Timer;
            public var timerGoing:Boolean;
    Here is the folder uploaded on the server for you to get clear picture, please click on this link to download the entire folder. http://www.touchpixl.com/ForumsAdobecom.zip
    I am not being able to resolve the issue, it needs a master to get the proper solution. I would request you to help me.
    Thanks & Regards
    Sanjib Das

    Here is the entire code of MainTimeline.as below, please correct it.
    package FC_Home_Ads_Holder_v2_fla
        import __AS3__.vec.*;
        import adobe.utils.*;
        import com.danehansen.*;
        import com.greensock.*;
        import com.greensock.easing.*;
        import com.greensock.plugins.*;
        import flash.accessibility.*;
        import flash.desktop.*;
        import flash.display.*;
        import flash.errors.*;
        import flash.events.*;
        import flash.external.*;
        import flash.filters.*;
        import flash.geom.*;
        import flash.globalization.*;
        import flash.media.*;
        import flash.net.*;
        import flash.net.drm.*;
        import flash.printing.*;
        import flash.profiler.*;
        import flash.sampler.*;
        import flash.sensors.*;
        import flash.system.*;
        import flash.text.*;
        import flash.text.engine.*;
        import flash.text.ime.*;
        import flash.ui.*;
        import flash.utils.*;
        import flash.xml.*;
        public dynamic class MainTimeline extends flash.display.MovieClip
            public function MainTimeline()
                new Vector.<String>(6)[0] = "Productivity";
                new Vector.<String>(6)[1] = "Leadership";
                new Vector.<String>(6)[2] = "Execution";
                new Vector.<String>(6)[3] = "Education";
                new Vector.<String>(6)[4] = "Speed of Trust";
                new Vector.<String>(6)[5] = "Sales";
                super();
                addFrameScript(0, this.frame1);
                return;
            public function init():void
                var loc1:*=null;
                com.greensock.plugins.TweenPlugin.activate([com.greensock.plugins.AutoAlphaPlugin]);
                loc1 = new flash.net.URLLoader(new flash.net.URLRequest(this.XML_LOC));
                var loc2:*;
                this.next_mc.buttonMode = loc2 = true;
                this.prev_mc.buttonMode = loc2 = true;
                stage.scaleMode = flash.display.StageScaleMode.NO_SCALE;
                stage.align = flash.display.StageAlign.TOP_LEFT;
                loc1.addEventListener(flash.events.Event.COMPLETE, this.xmlLoaded, false, 0, true);
                this.prev_mc.addEventListener(flash.events.MouseEvent.CLICK, this.minusClick, false, 0, true);
                this.next_mc.addEventListener(flash.events.MouseEvent.CLICK, this.plusClick, false, 0, true);
                return;
            public function xmlLoaded(arg1:flash.events.Event):void
                var loc1:*=null;
                var loc2:*=0;
                this.xmlData = new XML(arg1.target.data);
                loc2 = 0;
                while (loc2 < this.LABELS.length)
                    loc1 = new Btn(this.LABELS[loc2], loc2);
                    this.btnHolder_mc.addChild(loc1);
                    this.BTNS.push(loc1);
                    trace(this.LABELS[loc2]);
                    ++loc2;
                this.current = uint(this.xmlData.@firstPick);
                trace("-----width-----");
                trace(this.contentMask.width);
                var loc3:*=this.contentMask.width / this.LABELS.length;
                trace(loc3);
                loc2 = 0;
                while (loc2 < this.BTNS.length)
                    this.BTNS[loc2].width = loc3;
                    this.BTNS[loc2].x = loc3 * loc2;
                    ++loc2;
                this.btnHolder_mc.addEventListener(flash.events.MouseEvent.CLICK, this.numClick, false, 0, true);
                this.selectMovie();
                return;
            public function numClick(arg1:flash.events.MouseEvent):void
                this.killTimer();
                this.current = arg1.target.i;
                this.selectMovie();
                return;
            public function killTimer():void
                this.timerGoing = false;
                if (this.timer)
                    this.timer.reset();
                    this.timer.addEventListener(flash.events.TimerEvent.TIMER, this.plusClick, false, 0, true);
                    this.timer = null;
                return;
            public function selectMovie():void
                if (this.timerGoing)
                    this.timer = new flash.utils.Timer(uint(this.xmlData.ad[com.danehansen.MyMath.modulo(this.current, this.xmlData.ad.length())].@delay), 1);
                    this.timer.start();
                    this.timer.addEventListener(flash.events.TimerEvent.TIMER, this.plusClick, false, 0, true);
                while (this.holder_mc.numChildren > 0)
                    this.holder_mc.removeChild(this.holder_mc.getChildAt(0));
                var loc1:*=new flash.display.Loader();
                loc1.load(new flash.net.URLRequest(this.xmlData.ad[com.danehansen.MyMath.modulo(this.current, this.xmlData.ad.length())].@loc));
                this.holder_mc.addChild(loc1);
                var loc2:*=0;
                while (loc2 < this.BTNS.length)
                    this.BTNS[loc2].deselect();
                    ++loc2;
                this.BTNS[com.danehansen.MyMath.modulo(this.current, this.xmlData.ad.length())].select();
                var loc3:*=this.BTNS[com.danehansen.MyMath.modulo(this.current, this.xmlData.ad.length())].x + this.BTNS[com.danehansen.MyMath.modulo(this.current, this.xmlData.ad.length())].width / 2 + this.btnHolder_mc.x;
                trace("addLength:" + this.xmlData.ad.length());
                trace(loc3, com.danehansen.MyMath.modulo(this.current, this.xmlData.ad.length()));
                com.greensock.TweenLite.to(this.indicator_mc, 0.3, {"x":loc3, "ease":com.greensock.easing.Cubic.easeOut});
                loc1.contentLoaderInfo.addEventListener(flash.events.Event.COMPLETE, this.adLoaded, false, 0, true);
                return;
            public function adLoaded(arg1:flash.events.Event):void
                var evt:flash.events.Event;
                var loc1:*;
                evt = arg1;
                try
                    evt.target.content.xmlData = this.xmlData.ad[com.danehansen.MyMath.modulo(this.current, this.xmlData.ad.length())];
                catch (er:Error)
                return;
            public function minusClick(arg1:flash.events.MouseEvent):void
                this.killTimer();
                var loc1:*;
                var loc2:*=((loc1 = this).current - 1);
                loc1.current = loc2;
                this.selectMovie();
                return;
            public function plusClick(arg1:flash.events.Event):void
                if (arg1.type != "timer")
                    this.killTimer();
                var loc1:*;
                var loc2:*=((loc1 = this).current + 1);
                loc1.current = loc2;
                this.selectMovie();
                trace("next");
                return;
            public function ENDED(arg1:flash.events.Event):void
                if (arg1.type != "timer")
                    this.killTimer();
                var loc1:*;
                var loc2:*=((loc1 = this).current + 1);
                loc1.current = loc2;
                this.selectMovie();
                trace("next");
                return;
            public function STARTED(arg1:flash.events.Event):void
                this.killTimer();
                return;
            function frame1():*
                this.timerGoing = true;
                addEventListener("endNow", this.ENDED, false, 0, true);
                addEventListener("startNow", this.STARTED, false, 0, true);
                this.init();
                return;
            public const XML_LOC:String=stage.loaderInfo.parameters.xmlLoc ? stage.loaderInfo.parameters.xmlLoc : "home_ads.xml";
            public const LABELS:__AS3__.vec.Vector.<String>=new Vector.<String>(6);
            public const BTNS:__AS3__.vec.Vector.<Btn>=new Vector.<Btn>();
            public const TRANSITION_TIME:Number=0.2;
            public var contentMask:flash.display.MovieClip;
            public var btnHolder_mc:flash.display.MovieClip;
            public var holder_mc:flash.display.MovieClip;
            public var indicator_mc:flash.display.MovieClip;
            public var prev_mc:flash.display.MovieClip;
            public var next_mc:flash.display.MovieClip;
            public var current:int;
            public var xmlData:XML;
            public var timer:flash.utils.Timer;
            public var timerGoing:Boolean;

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

    Hi,
    I'm having a lot of trouble getting a preloader to work on my Flash website. I'm new to actionscript, the site works fine but when I place the preloader in frame 1, I get.
    Error#1009: Cannot access a property or method of a null object reference.
    Then it lists three areas. The buttons on the site don't work anymore.
    I've followed the Lynda com tutorials so don't know what is causing this error.
    Included is the word.doc with the error code, preloader code, the main flash frame 2 code and the debug information.
    Any help would be great.
    Thanks!

    You need to make sure 'cards' is named properly and is present when that line of code executes.  If it is somewhere down a timeline, it is not present.
    As far as your preloader code goes, what is infoLoader.  I have to assume it's some form of component since you don't have any code to instantiate it.

  • TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.controls::AdvancedDataGrid/findHeaderRenderer()

    Can anyone throw any light on this obscure Flex error?...
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at mx.controls::AdvancedDataGrid/findHeaderRenderer()[...path...\projects\datavisualisation\ src\mx\controls\AdvancedDataGrid.as:1350]
    at mx.controls::AdvancedDataGrid/mouseEventToItemRenderer()[...path...\projects\datavisualis ation\src\mx\controls\AdvancedDataGrid.as:1315]
    at mx.controls.listClasses::AdvancedListBase/mouseMoveHandler()[...path...\projects\datavisu alisation\src\mx\controls\listClasses\AdvancedListBase.as:8091]
    I found a related bug reported on Jira: https://bugs.adobe.com/jira/browse/FLEXDMV-1631
    But in our case, we have no zoom effect.  It may be timing related, as there is a lot of computation going on when this page, and the ADG is first initialised.
    Please?... Any suggestions or workarounds?  We don't want this falling over in the hands of our customers.
    <rant> And people wonder why I hate Flex!?  These obscure instabilities never happen when I develop Pure ActionScript.  The Flash platform is wonderfully stable.  But as soon as you bring Flex into play, things take longer to develop, it's a struggle to extend or change the behaviour of the bloated components, and everything falls apart as these bugs begin to surface.</rant>

    facing the same problem... sdk 4.1. no solution for about 2 years ????

  • 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

  • Error while posting the  Idoc 'Update error, transaction VA01'

    Hi Gurus, When an inbound Idoc for sales order is trying  to post we  are  getting the  error 'Update error, transaction VA01'. Aslo following  are the  details of  the error: Update error, transaction VA01 Message no. 00377 Diagnosis An error occurr

  • Airplay switching colour depth - how to switch back?

    I am finding that if I use Airplay to mirror to my Apple TV ( which is connected to my amp and speakers for playing music) then it switches my display to 16 bit colour depth. Currently the only way I have found to swtich it back is reseting the pram

  • Photoshop Album

    I am not able to find the Photoshop Album forum.Has it been removed or it is still there ? If it is still there where can I find it?

  • Flash Player not working with Facebook

    I got a new computer windows 8.1 but flash player wont work with facebook; it keeps telling me to install flashplayer.  It is installed.   I verified that it is enable in add-ons and also Active x is turned off.  still wont play videos from facebook.

  • IDS 5.x: Is a separate configuration directory server instance even needed?

    Because iDS 5.x supports multiple database instances, why is there a need to suggest installing the directory server with a separate configuration directory server instance (on say port 390)? In large multi-tiered iDS 4.x directory server implementat