Achtung Nerdlings, need help for error 1061

Hello

I can't understand why I get the following error:

1061: call to a getAdReturn method maybe not defined through a reference with static type class
Any suggestions?
I've highlighted the line on which I get the error:

Import flash.net.navigateToURL;

Import com.joeblow.ads.Ad;

import of com joeblow.ads.OpenAds;

private var _adReturn:Ad;

private function initAd():void {}

_adReturn = OpenAds.getAdReturn ();

adImage.source = _adReturn.mediaSource;

adImage.buttonMode = true;

adImage.addEventListener (MouseEvent.CLICK, sendToURL);

}

The class is as follows:

package com.joeblow.ads

{

Import flash.external.ExternalInterface;

import mx.controls.Alert;

public class {OpenAds

private public static var externalCallback:String = "callOpenAds";

private static var attempts: uint = 10;

public function OpenAds() {}

}

public function getAdReturn (): {Ad

var xmlReturn:XML;

{ If(ExternalInterface.available)

var adReturn:String = ExternalInterface.call("saveglobalscore",score) (externalCallback);

try

{

adReturn = adReturn.replace ("[/ /]] >--> ',' [/ /]] >--> \n ');

var infoTagsIndex:int = adReturn.indexOf (' < script type = "text/javascript" src = ""', 0);

adReturn = adReturn.substring (infoTagsIndex, adReturn.length);

var wasFlash:Boolean = false;

If(adReturn.search ("< embed ') ==-1) {}

adReturn = adReturn.replace (' > < / a > ', ' > < / img > < /a > ');

adReturn = adReturn.replace (' > < / div > ', ' > < / img > < / div > ');

}

else {

adReturn = adReturn.replace (' > < / div > \n < script',' > < / embed > < / div > \n < script');

adReturn = adReturn.replace (' > < / div > \n < noscript',' > < / img > < / div > \n < noscript');

wasFlash = true;

}

adReturn = '< adXMLReturn >' + adReturn + ' < / adXMLReturn > ';

xmlReturn = new XML (adReturn);

var ad: Ad;

{ If(wasFlash)

ad = new Ad (xmlReturn, true);

}

else {

ad = new Ad (xmlReturn);

}

}

{} catch(error: error)

Alert.show (error.message + ' stacktrace:' + error.getStackTrace (), "Error");

}

}

else {

Alert.show ("Javascript must be enabled to view this page properly.") , 'Javascript not detected');

xmlReturn = new XML (' xml < root > < / root > ');

}

return ad;

}

}

}

If you can help me, I would really appreciate it!

Thank you

-Laxmidi

When you call a method with the name of the class, it must be a method static, also known under the name of a method "class":

Public Shared function getAdReturn (): Ad {}

If you don't want the static method, create an instance of the class and call the method:

var myOA:OpenAds = new OpenAds();

_adReturn = myOA.getAdReturn ();

If this post answers your question or assistance, please mark it as such.

Greg Lafrance
www.ChikaraDev.com

Support and Flex development services

Tags: Flex

Similar Questions

  • Need help for error 1719 Windows Installer Service could not be accessed. Your personal contact to check who is properly registered and checked?

    I bought a new Netgear Dual Band Wireless USB adapter N - 900 and I can't get the thing to install because the error 1719 Windows Installer Service could not be accessed.  Contact your personal assistance to check that it is properly registered and activated.  Can someone out there help me understand what I need to do?  I am completely lost and have been for three days.  Please help me!

    Hello

    1. are you able to install other programs?

    2 have you made any changes to the computer before the show?

    Method 1: Run the fix - it in the following article: fix problems with programs that cannot be installed or uninstalled:

    http://support.Microsoft.com/mats/Program_Install_and_Uninstall/

    Method 2: Start the Windows Installer service

    See the following steps:

    a. click Start, type Services.msc and press {ENTER}
    b. double-click Windows Installer
    c. set the startup type of Windows Installer to automatic
    d. Click Start to start the service. Note the error message, if any.
    e. click OK.

    Method 3: Unsubscribe and re - register the Windows Setup program.

    See the following steps:

    a. Click Start, click Run, type MSIEXEC /Unregister. and then click OK.

    Note: Even if you do it right, it may seem that nothing is happening.

    b. Click Start, click Run, type MSIEXEC/REGSERVER and then click OK.

    Note: After you run this command, the operation is complete.

    c. try your application based on Windows Installer again.

    Method 4: SFC scanner.

    Analysis (sfc) System File Checker will replace the missing or corrupted system files on your computer.

    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7:

    http://support.Microsoft.com/kb/929833

  • I NEED HELP FOR ERROR SYSTEM 70190610 PLEASE!

    I ASKED MY DAUGHTER TO SET UP A PASSWORD FOR ME, AND NOW I CAN'T ENTER NEW

    HE ME GIVES A 701906 ERROR CODE, THEN IT CRASHES PLEASE HELP THANKS!

    DIANA C.

    Hi Diana,

    Try to enter: 65898236

    Kind regards

    DP - K

  • Need help for error number OxC00042D, updated from microsoft.

    I was able to get the updates on the site to update for a few months and we tried the Mr. Fixit several times with no success. I kept getting the error number OxC00042D. I have XP with service pack 3. Any suggestion would be great.

    Phillip,

    Check again this error number.

    UTC/GMT is 03:51 Wednesday, September 19, 2012

  • I need help for error #800070645 code please.

    When I install updates to the framework of microsoft automatic updates will not install help

    Microsoft .NET Framework 3.5 Family Update (KB959209) x 86
    they are not installed:
    family update Microsoft.net 3.5
    Security for microsoft 1.1SP1 framework update
    for framework 3.5 SP1 microsoft security update
    framework 4 microsoft security update
    I'm running Vista Home premium please help me

    Follow the steps in this article: http://support.microsoft.com/kb/KB976982

  • Need help for error on N3024 after the easy Setup Wizard

    I feel that I am a rookie mistake, but I can't figure out what I did wrong.  Any thoughts on how to solve this conflict IP error?

    Thanks, Matt

    Make sure that the OOB is connected to a management network that is isolated from the network in the Strip.  They should not go in the same network.

  • Need help for error TNS

    Hello

    I installed oracle 10.2.0.1 on windows server 2003. When I'm trying to connect to this database using Toad or sql more than any other machine, I get the error: ORA-12203: TNS: unable to connect to the Destination. The database name is "ORCL". The listener is running on the server. I ping the server.


    The listener parameters are as following on the server:

    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = E:\oracle\product\10.2.0\db_1)
    (= Extproc PROGRAM)
    )
    )


    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.25.16)(PORT = 1521))
    )
    )


    The SQL NET parameters are as follows:

    SQLNET. AUTHENTICATION_SERVICES = (NTS)

    NAMES. DIRECTORY_PATH = (TNSNAMES, EZCONNECT)



    The TNS customer is as follows:

    mdstdby. World =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS =
    (COMMUNITY = tcp.world)
    (PROTOCOL = TCP)
    (Host = 192.168.25.16)
    (Port = 1521)
    )
    (ADDRESS =
    (COMMUNITY = tcp.world)
    (PROTOCOL = TCP)
    (Host = 192.168.25.16)
    (Port = 1526)
    )
    )
    (CONNECT_DATA = (SID = ORCL)
    )
    )

    change (Port = 1526) 1521 and try to connect

    Add the entry in the file tnsnames.ora on the client and the server

    ORCL =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST =192.168.25.16 )(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = orcl)
        )
      )
    
    EXTPROC_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
        )
        (CONNECT_DATA =
          (SID = PLSExtProc)
          (PRESENTATION = RO)
        )
      )
    

    Published by: rajeysh on May 15, 2011 15:02

  • Need help for optical safety circuit.

    I buy these parts and prototype with real components, but since I multisim, I thought it would be nice to create the circuit and maybe work through issues I can practically.

    I need a circuit that takes 120 VCA, generates 5 VDC and 1.5Vdc power of optical transmitter and receiver.  I actually use a data port because he has great range and is pretty cheap.  Rather than send the binary code well I just send a light stead that is broken or not broken through doors and windows in my house.  Then the receiver sees this as an entry and order a relay.

    I tried several voltage regulators that come with multisim, but I get an error of execution of my circuit.  Really I can't the 120 VAC to power levels necessary for the functioning of the optics.

    Otherwise I might want to run on a system 120Vdc with battery backup, so throw a 120Vdc up to 20 v DC switching power supply - but I have not found a SMP in the library which takes 120 as input and as output 20.

    Basic plan: 120VAC source-> transform to 24Vac-> Full bridge rectifier to ~ 20 v DC-> voltage capacitor filter on the input of two voltage regulators (1 to 5 VDC, 1 to 1.5Vdc) - then circuit since the two power supply of the transmitter and the receiver.

    I just need help for 5V and 1.5V, from there, I know that the real world circuit will work component tests already carried out.  Thanks for reading.

    I didn't Multism so I can't advise you on the compatible models. I ran the model on semiconductors with slight modifications of format on my SPICE simulator based on Berkeley Spice 3f5. I had to change the format of model resistance semiconductors appeal but has not changed any values.

    The output of your power supply circuit 3 (with 5 V, not the 1.5 V regulator regulator) was 4.99995 V.

    There are a few messages about changing templates published for compatibility Multisim woth. You can search those to see if there are any suggestions on what you'll need to fix in the model.

    Lynn

  • I need help fixing error 340... only, I get this message when I try to send an email... there at - there a way to fix this error free?

    I need help fixing error 340... only, I get this message when I try to send an email... is possible to fix this for free?

    You must ask Yahoo.
     
  • I need help for the upgrade of my current system.

    I need help for the upgrade of my current system.

    I have SBS 2008 with (Exch 2007, SQL 2005, Sharepoint, backupexec 2010 for sbs) licenses.

    I want to make the larger environment using the following:

    (1) apply Virtualization

    (2) apply to the failover process (clustering)

    "(3) the environment must support adding server terminal server, ERP server, exchange server, domain controller, backup manager.

    Storage 4) that supports Raid (1 and 5)

    UTM excellent 6) that supports (SSL VPN, VPN Global)

    suitable backup solution 7)

    (8) good antivirus for clients

    my questions:

    (1) can you provide me with a good design for this environment

    (2) should I choose what operating system:

    Microsoft datacenter or company

    I know datacenter provide us the unlimited VM but needs per processor license

    so if I have two Grouped servers I want to buy 4 licenses

    and just 4 VMs per company license... to say that we have two servers and maintain 8 vms so wat happened if 1 goes down... How can I migrate the 4 virtual machines on the server failed to another server group... ? should I buy enterprise license?

    (3) if I get the SAN storage for data... How can I save this storage... should I get another SAN?

    (4) how can I upgrade SBS stad single server (windows standrad) without losing the licenses as Exch 2007, SQL 2005, sharepoint.is it a must to buy an edition full std server or there is a way to upgrade (license wise, I mean)?

    (5) what about win2k8 license for VM:

    lets say we have physical that has windows license so that enough to have windows for VM or should I buy windows for VM licenses?

    (6) can I use backExec license for SBS with windows 2008 standard

    (7) who better to virtualization AMD or INTEL

    (8) hyper V or VMware?

    (9) what of Microsoft data protection Manager... is this good?

    (10) what virtual machine manager? What are the benefites keys

    Thanks in advance

    Hello AnasAI,

    You can find the Server forums on TechNet support, please create a new post at the following link:

    http://social.technet.Microsoft.com/forums/en/category/WindowsServer/

  • I need help for activation of the real administrator account.

    I have a problem with Adobe reader 9 standard, Adobe customer service asked the unhide real administrator account before you can continue to help me.

    I need help for that.

    http://www.Vistax64.com/tutorials/67567-administrator-account.html

    http://www.howtogeek.com/HOWTO/Windows-Vista/enable-the-hidden-administrator-account-on-Windows-Vista/

    Read the above info.

    See you soon. Mick Murphy - Microsoft partner

  • I need help for my reader to USB drive on my windows 10 ACER?

    I need help for my reader to USB stick on my chrome windows 10 plug ins acer. Can you help me?

    What Adobe application that you use?

    This is the Adobe Media Encoder forum, and you did not mention anything on this subject. If you can let us know what Adobe application, you need help, we can help you make the right forum.

    Thank you

    Regalo

  • Hello, I need help for cancel the payment on my adobe account.

    Hello, I need help for cancel the payment on my adobe account. I'm from Peru, Im paying a monthly fee as a student. Help, please...

    Cancel your membership creative cloud

  • Hello, need help for Adobe Reader DC playing animation files that are specified in the pdf output by script Latex Beamer. My Adobe Reader DC refuse to open any format that I gave him.  Thank you very much

    Hello, need help for Adobe Reader DC playing animation files that are specified in the pdf output by script Latex Beamer. My Adobe Reader DC refuse to open any format that I gave him.  Thank you very much

    Hey ihorl18351266,

    Please note that you can open PDF files using only the CD player. Any other format will not be supported by the software.

    Kind regards

    Ana Maria

  • Need help for reading in parallel on the same interface and writing XNET

    Hello. I need help to configure CAN interface to write and read from the same interface.

    I use NI PXI-8513/2. I use CAN1 as interface.

    My had TO send status messages CAN every 100ms. I have to read in order to return akntoowlege to keep DUT CAN interface happy and not make mistakes.

    So, I want to open Strim Session and readall frames in the loop. At the same time, I need to be able to write in a frame HAD at the time...

    I only need to read one picture at a time too, but since I know the ID, I can pull it from the stream.

    What I'm confusing all is how to put in place the same CAN1 interface to be able to write and read in parallel.

    I think I would get errors that interface is already in use.

    Since I'm new to CAN, I was read and write only when necessary. But, sometimes I was getting errors on my messages. Sometimes I get message, sometimes miss me. But, when I run CAN test criminal as sniffer he sends and written every time. I was told it's because it recognizes all messages.

    I opened to suggestions of how best to implement the interface.

    I guess I can use CAN2 and separator to work around this problem, but I would use an interface if possible.

    Thank you

    Hi Rus,

    The XNET hadrware takes care of most of the low level of detials for you. The reading and writing of the circuits are both connected to the bus at any time. When you write to the hardware it will try to put a frame on the bus at the first opportunity he can. If the frame loses arbitration material re - will attempt to send the frame up is successful. Reception equipment monitor activity on the bus, regardless of what it conveys. The material received will usually throw a framework that was sent by communication equipment, but there is an Echo property pass to circumvent this behavior too.

    Take a look at the example of the expedition: MAY-> NI - XNET-> Sessions-> multiple Sessions Intro-> CAN even exit entry framework Port unique Point.vi. Keep in mind that this example you will need to use a second CAN interface to recognize frames, it transmits. I would recoment against the example CAN output Frame Single Point which would mimic your ECU if you choose a type of cyclic frame running this example.

Maybe you are looking for

  • Download Manager, any other programms?

    I have an unstable connection... when downloading and driveway connection makes downloading and I have to start from the beginning... is there any other Download Manager works with firefox who already watch downloaded bits and bytes?

  • Adding libraries to Visual Studio 2012

    I'm practicing to re write the example on http://na.tm.agilent.com/pna/help/WebHelp7_5/Programming/GPIB_Example_Programs/Getting_and_Putting_D... but I seem to have a problem in adding the reference ("GPIB") 488.2 to Visual Studio Express 2012. Docum

  • Combo DVD - RW drive won't burn a disc

    All of a sudden yesterday after burning DVDs my DVD - RW combo drive won't burn a disc. I tried to run the Microsoft patch for CD DVD stuff and he said: the selected disk is not able to write, if you have multiple CD DVD players try to use another dr

  • RAM for HP pavilion dv6 3004-SO

    Hello I am writing from Denmark. I want to upgrade my RAM 8 GB memory. Product number: XB526EA #UUW Serial number: [personal information deleted] Processor bicoeur AMD Athlon (TM) II N330 ATI graphics card (ATI Mobility Radeon HD 5470) XT with 512 MB

  • ring on the Windows Live messenger Instant Messaging

    Original title: emergency aid Yahoo messanger will beep when you receive an instant message. How to set the life of windows to make a sound when I get a message on health?