Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6206895
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:31:58+00:00 2026-05-24T05:31:58+00:00

While running following code ,I got the error message as below, function urlLoader_complete(evt:Event) {

  • 0

While running following code ,I got the error message as below,

function urlLoader_complete(evt:Event)
{
    XMLdata=(evt.target.data).toString();
    XMLdata=XMLdata.split("&lt;").join("<");
    XMLdata=XMLdata.split("&gt;").join(">");
    xml=new XML(XMLdata);
    **fnctn();**
}

function fnctn() 
{
    var tp:int = bulb1 + bulb2 + bulb3 + bulb4;
    if(tp == 1)
    {
        **gep.addItem(new Object());**
        gep[gep.length-1].voltage1 =evt.result.Array.Voltage.Val;
        gep[gep.length-1].current1 = evt.result.Array.Current.Val;
        gep[gep.length-1].voltage2 = 0;
        gep[gep.length-1].current2 = 0;
        gep[gep.length-1].voltage3 = 0;
        gep[gep.length-1].current3 = 0;
        gep[gep.length-1].voltage4 = 0;
        gep[gep.length-1].current4 = 0;
    }

Error is

ReferenceError: Error #1065: Variable evt is not defined.

at vi_fla::MainTimeline/fnctn()[vi_fla.MainTimeline::frame2:449]

at vi_fla::MainTimeline/urlLoader_complete()[vi_fla.MainTimeline::frame2:436]

at flash.events::EventDispatcher/dispatchEventFunction()

at flash.events::EventDispatcher/dispatchEvent()

at flash.net::URLLoader/onComplete()

The two lines with errors are marked in the above code…what will be the reason for this error?

***UPDATE********

Now I have modified the code as below.

function fnctn(evt:Event)

{
var tp:int = bulb1 + bulb2 + bulb3 + bulb4;

if(tp == 1)

{

   ChartDataProvider1.push(xml.Value.Array.Voltage.Val.text())

ChartcategoryNames.push();

trace("value= "+xml.Value.Array.Voltage.Val.text())

}

}

Now there is no error while running,But trace value shows no values. It shows as Value=

How this problem can be solved?

*******UPDATE**************

I modified code as below

var ChartcategoryNames:Array=new Array();

var ChartDataProvider1:Array=new Array();

var lineArray1:LineSeries=new LineSeries();

if(tp == 1)

{

                            ChartDataProvider1.push(xml.graph.Voltage.text());

            ChartcategoryNames.push();

            trace("hi= "+xml.graph.Voltage.text());

                         yAxis = new NumericAxis();

            yAxis.maximum=10;

            yAxis.minimum=0;

            yAxis.majorUnit=2;

            Exp_Content.input_mc.in_graph.verticalAxis=yAxis;

            //Exp_Content.input_mc.in_graph.dataProvider=ChartDataProvider1

                        lineArray1.dataProvider=ChartDataProvider1;

}

Now the trace hi shows correct values,which is also seen in ChartDataProvider1.But lineArray1 does not have any values…Please suggest a solution for this problem..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T05:31:59+00:00Added an answer on May 24, 2026 at 5:31 am

    You need to pass your event around:

    fnctn(evt);
    ...
    function fnctn(evt : Event); 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Below is an exception I encountered while running the immediately following code: The source
Hello Everybody! I got the following error, while trying to test a code for
I am getting the following error while running my MVC application, which uses the
I am getting he following Exception while running my Quartz Schdular program. Below is
I am getting the following error while running my android project in which I
I've got the following code below which parses a text file and indexes the
After running w3Validator on HTML 5 (Experimental) windows-1252 encoding, I got the following error
Consider that thread 1 is running following code: while (true) { synchronized (this) {
I'm using vb.net 2005, I've got the following code running a thread to download
The following code waits for data over UDP. I have a test function that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.