ORA-30625: method dispatch on NULL SELF error

Can Someone help me? I'm new to oracle. I'm writing a procedure to copy a file from my hard drive to oracle. I am getting an error: ORA-30625: method dispatch on NULL SELF argument is disallowed. So I just broke the code down to this little piece. I still get the same error. I created a directory called INPUT_FILE and the file test.jpg is in that directory. What am I missing?
1 Declare
2 imag ordsys.ordimage;
3 ctx raw(4000) :=null;
4 BEGIN
5 imag.setsource('FILE' , 'INPUT_FILE', 'test.jpg');
6 imag.import(ctx);
7* end;
SQL> /
Declare
ERROR at line 1:
ORA-30625: method dispatch on NULL SELF argument is disallowed
ORA-06512: at line 5
null

There is a sample code for importing an image from an external file into the database in the section 2.2.8 of the interMedia User's Guide:
http://otn.oracle.com/doc/oracle8i_816/inter.816/a67299/mm_uses.htm#601053
Basically, you have to have a table in which you store the image in the database first.

Similar Messages

  • Web Service help - ORA-30625: method dispatch on NULL SELF errors

    Hi All
    I could do with some assistance getting Web service's up & running on my application
    I've been following this guide but altering to fit in with our internal web services... the Internet police here at work have youtube blocked off so unable to test end to end using the OTN tutorial
    I've created a web service named PASSWORDGEN with the results stored in the collection PASSWORDRESULT
    On my page I've created the process that invokes the webservice PASSWORDGEN which is set to run on load - before header - seq #10
    then created the pl/sql anonymous block process which is set to run on load - before header - seq #20
    I've used the pl/sql example given in the tutorial but substituted their references to collections with my named collection .
    declare
    l_clob clob;
    l_xml xmltype;
    l_val clob;
    begin
    for c1 in (select clob001
    from apex_collections
    where collection_name = 'PASSWORDRESULT'
    ) loop
    l_clob := c1.clob001;
    exit;
    end loop;
    l_xml := xmltype.createxml(l_clob);
    l_val := dbms_xmlgen.convert(l_xml.extract('/methodResponse/params/param/value/string/text()').getclobval(),1);
    apex_collection.update_member_attribute(
    p_collection_name => 'PASSWORDRESULT',
    p_seq => '1',
    p_clob_number => '1',
    p_clob_value => l_val );
    end;
    if I try to run the page at this point I get the error ORA-30625: method dispatch on NULL SELF argument is disallowed
    what I think is happening, from what I've read up on, is that the collection is empty?
    so I'm trying to find out if the web service is not populating the collection correctly or have I made a mistake in the above syntax & trying to reference the collection incorrectly.
    Is there a way I can query the collection using TOAD?
    Edited by: Mr JD on 21-Jul-2010 08:38

    ok so found the collection but when I invoke the web service the collection record is not populated. I've tested the webservice & a result is returned but for some reason when I either run the test or run the page which invokes the web service as a page render process the collection is still not populated.....
    what I'm I missing here as the setup of the web service is pretty straight forward & testing the web service does produce a result within the test window

  • ORA-30625: method dispatch on NULL SELF argument is disallowed (WWV-16016)

    I've created a master detail form.
    I only want the master record to be read only, as I have a separate form elsewhere that is used to enter all the fields in the table it is based on.
    I've hidden the fields in the form that I do not wish the user to see and set the onFocus validation to blur(); to prevent data entry.
    The problem is that when a user leaves the master block action to 'None' it produces the error:
    ORA-30625: method dispatch on NULL SELF argument is disallowed (WWV-16016)
    It runs fine on update mode after a record has been queried.
    The table has the correct privs as I already have built a simple form to test inserting records into the master table elsewhere.
    Ideally, I want to override the master block action via a bit of coding so to as to stop the user even attempting to create a new record in the master detail form:
    p_session.set_value (p_block_name => 'MASTER_BLOCK'
    , p_attribute_name => '_MASTER_ACTION'
    , p_value => 'NONE');
    Any ideas?
    cheers,
    John

    Oracle Portal Version: 10.1.2.0.0 (Build: 290)
    DB: 10.1.0.3.1

  • 10g ORA-30625: method dispatch on NULL SELF argument is disallowed Options

    I found this site for consuming a web service from oracle 9i. I'm trying
    it from 10g
    http://www.oracle-base.com/articles/9i/ConsumingWebServices9i.php
    I have an intranet web service (.NET) I know is working as I use it from
    other clients.
    But am getting this error when trying the example:
    Getting error: ORA-30625: method dispatch on NULL SELF argument is
    disallowed.
    on this line:
    l_fullname := soap_api.get_return_value(p_response => l_response,
    p_name => 'yyyResult',
    p_namespace =>
    'xmlns:ns1="urn:http://www.xxx.net/"');
    which calling this in the soap_api package i downloaded and installed
    from the stie:
    FUNCTION get_return_value(p_response IN OUT NOCOPY t_response,
    p_name IN VARCHAR2,
    p_namespace IN VARCHAR2)
    RETURN VARCHAR2 AS
    BEGIN
    RETURN p_response.doc.extract('//'||p_name||'/
    child::text()',p_namespace).getstringval();
    END;
    My test script:
    declare
    l_request soap_api.t_request;
    l_response soap_api.t_response;
    l_fullname varchar2(50);
    BEGIN
    l_request := soap_api.new_request(p_method => 'ns1:yyy',
    p_namespace =>
    'xmlns:ns1="urn:http://www.xxx.net"');
    soap_api.add_parameter(p_request => l_request,
    p_name => 'userName',
    p_type => 'xsd:string',
    p_value => 'somestring');
    l_response := soap_api.invoke(p_request => l_request,
    p_url => 'http://xx.xxx.xx.xx/
    securityservice/service.asmx',
    p_action => 'http://www.xxx.net/
    yyy');
    -- failing on the below line(21)
    l_fullname := soap_api.get_return_value(p_response => l_response,
    p_name => 'yyyResult',
    p_namespace =>
    'xmlns:ns1="urn:http://www.xxx.net/"');
    dbms_output.put_line(l_fullname);
    end;
    Thanks for any help or information.

    This rather cryptic message means that the PL/SQL variable or column whose method is being invoked is null.
    It's the equivilant of a null pointer exeception in java...

  • ORA-30625: method dispatch on NULL SELF argument is disallowed

    I have streams setup with table rules.( 3 tiers). It is working fine, besides for one table when insert record, apply has error "ORA-30625: method dispatch on NULL SELF argument is disallowed". I did include all columns in supplemental log group always. Is any limit for max columns for Oracle Streams. This table has 137 columns and I created 6 supplemental log groups.
    Please help

    Hi,
    No restrictions on number of columns in 10.2. Do you have any rule transformation or dml handler?
    Check also on your bdump if the apply generated any trace file that will allow you to identify the root cause of this error.
    Here is an explanation of why that error happens:
    The following error occurs when passing an uninitialized object to an Object's member procedure/function:
    ORA-30625: method dispatch on NULL SELF argument is disallowed
    The following illustrates the error by first creating the Object specification. Notice there is one member procedure "initialize_object" that passes in SELF.
    CREATE OR REPLACE TYPE role_type AS OBJECT (
    role_name VARCHAR2(30),
    MEMBER PROCEDURE initialize_object(SELF IN OUT role_type));
    The next step is to create the body of the Object's member procedure. There is no need for any actual code as the error occurs when the NULL is attempted to be passed.
    CREATE OR REPLACE TYPE BODY role_type AS
    MEMBER PROCEDURE initialize_object (SELF IN OUT role_type) IS
    BEGIN
    NULL;
    END initialize_object;
    END;
    The following anonymous block passes in a NULL (Uninitialized Object) to the member procedure initialize_object.
    DECLARE
    V_TEMP role_type;
    BEGIN
    ROLE_TYPE.initialize_object(V_temp);
    END;
    ERROR at line 1:
    ORA-30625: method dispatch on NULL SELF argument is disallowed
    ORA-06512: at line 4
    The example has nothing to do with streams but maybe you are trying to invoke an error handler or dml handler that is causing this issue.

  • Stacked with Error:-30625:ORA-30625: method dispatch on NULL SELF argument

    Hello guys!
    I'm totally stacked with Error:-30625 trying to execute CLN_CH_EVENT_SUBSCRIPTION_PKG.CREATE_EVENT_SUB procedure.
    i'm initializing that type object like:
    WF_EVENT_T.initialize(l_myevent_t);
    and then fill it with values...and then passing to that damned procedure. And then em getting error :(.
    Could you please somebody explain me what i'm doing wrong or what should i do to avoid this error?!?
    thanks in advance.

    To allow anyone the chance to answer your question, you will need to post the relevant code that leads up to the error code you reference. Without that information, silence is all you can hope to receive.

  • ORA-30625: method dispatch on NULL SELF argument on apply_dml_hanlder

    My apply dml handler fails with this message. This dml handler is being called on 10 tables. Is there any way to get the LCR info from the SCN number to track on which table it failed and debug the issue?
    Thank You

    your LCR is most probably in the spill over queue rather tha in the queue table. You have to open the AQ$_<cap table>P table. it contains columns of type anydata that embedded the LCR. It is not an easy task but it has been scripted.
    download smenu from www.smenu.org, install and type
    'aq -lq' to see all your queue tables
    'aq -readp <queue table>' to list contents of the queue table and the MSGID and SCN.
    pick one MSG that you want to see :
    'aq -readp <queue table> -key <MSGID> and you will see the before and after values of the rows contained in the MSG (LCR).
    if you want to see the SQL text for this SCN you and the archive is still present on your disk your can pick the SCN of the MSG ID, goes on the source DB (install also smenu) and type lgm -s <SCN> and you will see the text of the SQL at the orgin of this LCR (using logminer).
    I am not sure of the compatibility of Smenu for 9i. It has been started in 9I but streams on 9i is so painful that the compatibilty with this mess has not been cared about.

  • ORA-30625 error

    I am trying to run a procedure in a package and I keep getting this error
    ERROR at line 1:
    ORA-30625: method dispatch on NULL SELF argument is disallowed
    ORA-06512: at "IXSEMF01.EMF_INTERFACE_PKG", line 7
    Here is my package body:
    PACKAGE BODY EMF_INTERFACE_PKG
    IS
    PROCEDURE EMF_LOG_XML_PROC (wefXmlData IN XMLType)
    IS
    eventId VARCHAR(1024);
    BEGIN
    eventId := wefXmlData.extract('//ManagementEvent/text()').getStringVal();
    INSERT INTO IXSEMF01.EVENT_STORE(EVENT_ID, EVENT_XML)
    VALUES (eventId, wefXmlData);
    END EMF_LOG_XML_PROC;
    END EMF_INTERFACE_PKG;
    This is what I am calling:
    call EMF_INTERFACE_PKG.EMF_LOG_XML_PROC(XMLType('<ManagementEvent xmlns:muws1="http://docs.oasis-open.org/wsdm/muws1-2.xsd" ReportTime="2007-12-04T10:34:00.000-05:00" xmlns="http://docs.oasis-open.org/wsdm/muws1-2.xsd">
    <muws1:EventId>wef://SOASuite/BPEL?eventId=12345</muws1:EventId>
    <muws1:SourceComponent>
    <muws1:ResourceId>wef://SOASuite/sandbox/BPEL/emf/raiseEventBPEL?instanceId=123456</muws1:ResourceId>
    <muws1:ComponentAddress>
    <alticor:ManagementURL xmlns:alticor="http://www.alticor.com/extensions">http://lnax30f:8888/BPELConsole</alticor:ManagementURL>
    </muws1:ComponentAddress>
    </muws1:SourceComponent>
    <muws1:ReporterComponent>
    <muws1:ResourceId>wef://SOASuite/sandbox/BPEL/emf/raiseEventBPEL?instanceId=123456</muws1:ResourceId>
    <muws1:ComponentAddress>
    <alticor:ManagementURL xmlns:alticor="http://www.alticor.com/extensions">http://lnax30f:8888/BPELConsole</alticor:ManagementURL>
    </muws1:ComponentAddress>
    </muws1:ReporterComponent>
    <muws2:Situation xmlns:muws2="http://docs.oasis-open.org/wsdm/muws2-2.xsd">
    <muws2:SituationCategory>
    <muws2:CreateSituation/>
    </muws2:SituationCategory>
    <muws2:SuccessDisposition>Successful</muws2:SuccessDisposition>
    <muws2:Priority>1</muws2:Priority>
    <muws2:Severity>1</muws2:Severity>
    <muws2:Message>Tihs is a test message</muws2:Message>
    <muws2:SubstitutableMsg MsgId="T1" MsgIdType="wef://SOASuite/BPEL/log"/>
    </muws2:Situation>
    <alticor:ExtendedData xmlns:alticor="http://www.alticor.com/extensions" profile="PurchaseOrderKey"/>
    </ManagementEvent>'))
    Message was edited by:
    IT Intern

    Does the following return the error when setting l_data or making the call to your procedure?
    declare
      l_data    XMLTYPE;
    begin
      l_data := XMLType('<ManagementEvent xmlns:muws1="http://docs.oasis-open.org/wsdm/muws1-2.xsd" ReportTime="2007-12-04T10:34:00.000-05:00" xmlns="http://docs.oasis-open.org/wsdm/muws1-2.xsd">
    <muws1:EventId>wef://SOASuite/BPEL?eventId=12345</muws1:EventId>
    <muws1:SourceComponent>
    <muws1:ResourceId>wef://SOASuite/sandbox/BPEL/emf/raiseEventBPEL?instanceId=123456</muws1:ResourceId>
    <muws1:ComponentAddress>
    <alticor:ManagementURL xmlns:alticor="http://www.alticor.com/extensions">http://lnax30f:8888/BPELConsole</alticor:ManagementURL>
    </muws1:ComponentAddress>
    </muws1:SourceComponent>
    <muws1:ReporterComponent>
    <muws1:ResourceId>wef://SOASuite/sandbox/BPEL/emf/raiseEventBPEL?instanceId=123456</muws1:ResourceId>
    <muws1:ComponentAddress>
    <alticor:ManagementURL xmlns:alticor="http://www.alticor.com/extensions">http://lnax30f:8888/BPELConsole</alticor:ManagementURL>
    </muws1:ComponentAddress>
    </muws1:ReporterComponent>
    <muws2:Situation xmlns:muws2="http://docs.oasis-open.org/wsdm/muws2-2.xsd">
    <muws2:SituationCategory>
    <muws2:CreateSituation/>
    </muws2:SituationCategory>
    <muws2:SuccessDisposition>Successful</muws2:SuccessDisposition>
    <muws2:Priority>1</muws2:Priority>
    <muws2:Severity>1</muws2:Severity>
    <muws2:Message>Tihs is a test message</muws2:Message>
    <muws2:SubstitutableMsg MsgId="T1" MsgIdType="wef://SOASuite/BPEL/log"/>
    </muws2:Situation>
    <alticor:ExtendedData xmlns:alticor="http://www.alticor.com/extensions" profile="PurchaseOrderKey"/>
    </ManagementEvent>');
       EMF_INTERFACE_PKG.EMF_LOG_XML_PROC(l_data);
    end;

  • Trigger error ORA-30625

    I created a trigger that executes a procedure on INSERT or UPDATE. This is the SQL of the trigger...
    DECLARE
    INDTS VARCHAR2(15);
    REPORTERS VARCHAR2(30);
    p_session myschema.wwa_api_module_session;
    begin
    INDTS:= p_session.get_value_as_varchar2(p_block_name=>'DEFAULT', p_attribute_name => 'A_INDT');
    REPORTERS:=p_session.get_value_as_varchar2(p_block_name=>'DEFAULT', p_attribute_name => 'A_REPORTER');
    nyspcr.alert_returned_transcripts(INDTS,REPORTERS);
    end; .
    Basically, the procedure takes in two values that were just inserted into the table to use in the WHERE statement of a query of another table..if there is a match a print statement appears.
    This trigger worked(executed the procedure,statement appeared) on the first couple of tries BUT I also got this error message
    ORA-30625: method dispatch on NULL SELF argument is disallowed (WWV-16016)
    ...THEN it stopped working and I still got this error message. What does it mean?

    I created a trigger that executes a procedure on INSERT or UPDATE. This is the SQL of the trigger...
    DECLARE
    INDTS VARCHAR2(15);
    REPORTERS VARCHAR2(30);
    p_session myschema.wwa_api_module_session;
    begin
    INDTS:= p_session.get_value_as_varchar2(p_block_name=>'DEFAULT', p_attribute_name => 'A_INDT');
    REPORTERS:=p_session.get_value_as_varchar2(p_block_name=>'DEFAULT', p_attribute_name => 'A_REPORTER');
    nyspcr.alert_returned_transcripts(INDTS,REPORTERS);
    end; .
    Basically, the procedure takes in two values that were just inserted into the table to use in the WHERE statement of a query of another table..if there is a match a print statement appears.
    This trigger worked(executed the procedure,statement appeared) on the first couple of tries BUT I also got this error message
    ORA-30625: method dispatch on NULL SELF argument is disallowed (WWV-16016)
    ...THEN it stopped working and I still got this error message. What does it mean?

  • ORA-30625

    Hi,
    I have created custom insert button in my form and i have written following code on CUSTOM PL/SQL EVENT handler
    onINSERT(
    p_block_name => p_block_name ,
    p_object_name => p_object_name,
    p_instance => p_instance ,
    p_event_type => p_event_type ,
    p_user_args => p_user_args ,
    p_session => p_session);
    onSuccess(
    p_block_name => p_block_name ,
    p_object_name => p_object_name,
    p_instance => p_instance ,
    p_event_type => p_event_type ,
    p_user_args => p_user_args ,
    p_session => p_session);
    When i click on Insert button, i am able to save the record but also i get following error.
    ERROR:
    ORA-30625: method dispatch on NULL SELF argument is disallowed.
    ORA-06512: at "PORTAL30.WWA_AAP_MODULE"
    Has anyone comeacross this problem?
    Thank you
    Shobha
    null

    I'm getting nearly the same errors running
    on portal 3.0.9.
    When trying to direct a successful form submission to calling page using
    call('','p_back_url');
    I get this in apache error log...
    ORA-30625: method dispatch on NULL SELF argument is disallowed
    ORA-06512: at "PORTALCR.WWA_APP_MODULE", line 42
    ORA-06512: at "PORTALCR.WWA_APP_MODULE", line 820
    ORA-06501: PL/SQL: program error
    ORA-06512: at line 8
    This worked in 3.0.6.
    The inserts and deletes work fine, I'm just not getting back to the calling page.
    Cheers,

  • ORA-30625 sys.xmltype

    every time when I run function GET_PURCHASEORDER_VALUE Oracle rises error ora-30625 in line*. I work in Oracle release 9.0.1.3.0. what shuld I do? help me. please.
    create or replace function GET_PURCHASEORDER_VALUE(PURCHASEORDER in sys.XMLTYPE)
    return number is
    LINEITEMS sys.XMLTYPE;
    LINEITEM sys.XMLTYPE;
    COST number;
    QUANTITY number;
    TOTAL number := 0;
    I binary_integer := 1;
    begin
    LINEITEMS := PURCHASEORDER.extract('//LineItem'); *
    loop
    LINEITEM := LINEITEMS.extract('/LineItem['||I||']');
    exit when LINEITEM is null;
    COST := LINEITEM.extract('/LineItem/Part/@UnitPrice').getNumberVal();
    QUANTITY := LINEITEM.extract('/LineItem/Part/@Quantity').getNumberVal();
    TOTAL := TOTAL + (COST * QUANTITY );
    I := I + 1;
    end loop;
    return TOTAL;
    end GET_PURCHASEORDER_VALUE;
    ORA-30625 method dispatch on NULL SELF argument is disallowed

    9.1.0.3 has limited XPATH support. Can you upgrade to 9.2.0.2?
    Can you try extractValue instead of extract?

  • Ora-30625/xmltype

    Hi!
    I got this error; ORA-30625: method dispatch on NULL SELF argument is disallowed,
    when I tried to do next:
    declare
    xml_lukio xmltype;     
    s1_k1 varchar2(60);
    select v.lukio_doc into xml_lukio
    from vp_lukiopohja v
    where koulutus=1;
    s1_k1:=xml_lukio.extract('/valintapisteytys/arvosanat/sarake1/kentta1/text()').getstringval();
    And this is what lukio_doc includes:
    <valintapisteytys xmlns="http://vp_skeemat/vp_skeema.xsd"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://vp_skeemat/vp_skeema.xsd
    http://vp_skeemat/vp_skeema.xsd">
    <arvosanat>
    <sarake1>
    <kentta1>Yo-todistus</kentta1>
    <kentta2>Lukion päättötodistus</kentta2>
    <kentta3>Lukion päättötodistuksen keskiarvo</kentta3>
    </sarake1>
    </arvosanat>
    </valintapisteytys>
    This worked earlier, when it did not include xml schema.
    So what's wrong?

    s1_k1:=xml_lukio.extract('/valintapisteytys/arvosanat/sarake1/kentta1/text()').getstringval();
    1. extract returns an XMLType. You are then invoking getStringVal on the XMLType returned by extract. If extract returns null you will get the error you are reported.
    2. Your Schema uses a lot of namespaces.
    <valintapisteytys xmlns="http://vp_skeemat/vp_skeema.xsd"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://vp_skeemat/vp_skeema.xsd
    http://vp_skeemat/vp_skeema.xsd">
    You need to pass these namespaces as a third argument to extract...
    s1_k1:=xml_lukio.extract
    ('/valintapisteytys/arvosanat/sarake1/kentta1/text()',xmlns="http://vp_skeemat/vp_skeema.xsd"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://vp_skeemat/vp_skeema.xsd
    http://vp_skeemat/vp_skeema.xsd"').getstringval();

  • Report error: ORA-06502: PL/SQL: numeric or value error: NULL index table k

    Hi everybody,
    I have two Distinct Databases on two distinct servers. (Oracle Ent. Release 10.2.0.3.0 on AIX 5.3). After I install the latest patch last week, One of the APEX installation has some problems on Home>Application Builder Page. The error message is very random and
    report error:
    ORA-06502: PL/SQL: numeric or value error: NULL index table key value.
    When i change the view (details to icons), everything goes to normal. This error message is reflected some of the pages (report region) of some of my applications randomly. When it appears in a report region, i deselect the order method of the region, the result is normal.
    But the other APEX application on the other instance has no problem. It is a bug? or Should i re-install the APEX instance?
    Thank you for your interest?
    Gökhan ÇATALKAYA

    No, but we have a reproducible test case now so we're working on it. See ORA-06502: PL/SQL: numeric or value error: NULL index table key value
    Scott

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

Maybe you are looking for

  • Error when importing Web Service Model

    Hi, I am having trouble importing a Web Service model into my Web Dynpro component. I have successfully published my SessionBean method as a Web Service which works correctly when used from the Web AS Web Service Navigator. However, my Web Dynpro can

  • JQuery in Fluid Grids

    I am teaching my students custom jQuery in Dreamweaver CC. Using fluid grids, we have inserted a Lightbox2 image gallery with thumbnails to display larger images. When opening the larger images, the photos are skewed (they are proper height but not w

  • Cant install pse8 on my mac

    i just tried to install the 30 day free trial on my macbook 10.5.8,ive plenty of memory etc bt just at the last minute i get installation failed one or more required components of adobe photoshop elements 8 failed to install correctly any ideas what

  • Lost my music, is there any way to get it back through "previous itunes library" file?

    About a 2 months ago I had to update my iTunes library, leading to this mess. The update told me that it didn't finish and that there was an error, so I had to reinstall all of my itunes. This led to all my songs having an exclamation point next to t

  • Best PSE 10 Plug-ins for a beginner?

    I know it may be a silly question to ask with those few-hundred-thousand plug-ins out there, I thought if I got a general consensus for what I am looking for I could come-up with a good answer. What I am looking for are more along the lines of artist