Strange problem using closure

The attached code works perfectly when placed in a frame on
the timeline.
However, when placed inside a function in a class it
generates:
TypeError: Error #1006: value is not a function.
where "var toggle:Function = toggleClosure();"
Any ideas what could be the cause?

got it...
changing "function toggleClosure():Function"
to "var toggleClosure:Function = function():Function"
did the trick. :)

Similar Messages

  • Strange problem using BBM service on WiFi

    Hello everyone,
    I have a strange problem. I have a Fido phone unlocked by Fido and I am trying using it on another sim card. I am able to connect to the internet and BBM services with Data plan everything fine. I can call everything works fine. 
    When I connect it to Wifi I can surfe the web do everyting except BBM !!!!! Without the sim BBM works fine in the wifi. The minute I put back the sim no BBM !!!!!!!
    What is going on 
    Solved!
    Go to Solution.

    - Register your Handheld .
    KB00510 : How to register a BlackBerry smartphone with the wireless network
    Wait till a Registration messages comes in your message box.
    VIA | prince2012 
    http://supportforums.blackberry.com/t5/BlackBerry-Bold/email-setup/m-p/2594583/highlight/true#M15664...
    Please thank those who help you by clicking the button.
    If your issue has been solved, please resolve it by marking "Accept as Solution"

  • A strange problem using the zip files

    I'm currently working on a university project with another student in which we use zip files (using the java ZipFile , and ZipOutputStream classes), we write certain data to a zip file (and verify that it is there by checking the disk). and later we read the zip file, and write it back , appending some data at the end of the file.
    although we see the changes actually take place on the disk , in one of the cases when reading the data we don't see the data we have appended before (although it is physically written on the disk).
    testing has revealed that this has something to do with the rename command or java being unsynchronized with the data actually on the disk (caching problem?).
    we use this code to preform the process:
    ZipFile zf= new ZipFile( ((Integer)lexicon.get(keyword)).intValue()+".zip");
              BufferedInputStream input= new BufferedInputStream(zf.getInputStream(new ZipEntry("data")));
              // create a temporary new zip file.
              ZipOutputStream zipst= new ZipOutputStream(new FileOutputStream( ((Integer)lexicon.get(keyword)).intValue()+".tmp.zip"));
              BufferedOutputStream output =new BufferedOutputStream(zipst);
              zipst.putNextEntry(new ZipEntry("data"));
              // stream the contents of the old file into the new file
              //(we do it this way because of the inability of the java zip file interfaces to add to an existing zip file)
              int current = input.read();
              while(current!=-1){
              output.write(current);
              current = input.read();
              output.write(entry.getBytes(false)); // add the new entrys.
              output.flush();
              zipst.closeEntry();
              output.close();
              // erase the old file.
              File toErase = new File( ((Integer)lexicon.get(keyword)).intValue()+".zip");
              toErase.delete();
              // rename the temporary file to the old files name.
              File toRename = new File( ((Integer)lexicon.get(keyword)).intValue()+".tmp.zip");
              toRename.renameTo(new File( ((Integer)lexicon.get(keyword)).intValue()+".zip"));
    we use:
    1. j2sdk 1.4.2_05
    2. running under libranet linux.
    any help will be appreciated

    the data does indeed get lost in the course fo rewriting the file, e assume this is some sort of synchronization issue with java and the file system.
    addig enteies to an existing zip file would have been great, if we had it a few weeks ago , we had to make do without this ability , and all of the code is already written and mostly working (except for the problem I mention) and we don't really want to rewrite the zip file access.
    additional testing has shown that the data gets lost when we use the rename command.
    very strange...
    thanks for the input

  • Strange problem using flash in dreamweaver

    Ok so i'm experimenting with flash on my site.  The banner came out perfect.  It went onto my site just as easy.  So then I wanted to play around with other flash buttons.  So I made a flash link to my blog page. It worked great in dreamweaver.  Then I testest it with IE and firfox and still it worked great.  So I uplouded it to my site and no matter what I do it doesn't show up on the page.  I looked in the code view and it's there it's just not visible.  Does anyone see what I did wrong.  It's right under the welcome message in code view.   http://www.markspetcare.com/ 

    Your problem may just be a matter of file naming but it could also be a targeting issue.  The swf seems to be occupying the space assigned to it.
    As a general practice, you should never include spaces in filenames if you plan to use them on the web.
    If changing that doesn't fix the problem, then does your file load another file?  If so, it's possible you didn't load that file to the server or are not properly targeting it in the Flash file.

  • Strange problem: using a mouse isn't responsive.

    Its a hard problem to explain, basically I just switched from PC to mac.
    I love my macbook, the trackpad works great, however when i use it with my intellimouse explorer usb while in mac it seems not very presise when the tracking speed is up high (the way i like it) nothing like how responsive it is when booted up in windows with bootcamp.
    I dont know if anyone has heard of this problem before, or has any solutions. But any suggestions would be appricated.

    In the System Preferences Control panel for the mouse/trackpad there's an option to ignore trackpad when a mouse is plugged in. See if there's any change when you check/uncheck it.
    One other thought - did you install the Intellimouse software? I think Microsoft now has a Universal Binary for its mouse drivers.

  • Strange problem using webutil "WEBUTIL_CLIENTINFO.GET_HOST_NAME"

    in a form in with a use (and work fine) some function of webutil (like client_get_file_name etc) i have try to use this function :
    :B0.HOST_NAME := WEBUTIL_CLIENTINFO.GET_HOST_NAME;
    where b0.host_name is a char filed of 256.
    when i try to execute this forms dons not work this lasty function and appear this error :
    wuc-015 your form must contain the following BEAN : getclient info ???
    i don't understan why ??
    in the same form all other function of webutil works fine, only this ??
    a solution ???

    I've got it
    quotation from the Webutil install guide:
    the Form has instantiated the WebUtil PJCs. This means that you cannot call WebUtil
    functions before the Forms UI is rendered. This would include triggers such as PREFORM,
    WHEN-NEW-FORM-INSTANCE and WHEN-NEW-BLOCK-INSTANCE for
    the first block in the Form.
    Likewise you cannot call functions after the UI has been destroyed for instance in POSTFORM.
    If you do need to use WebUtil at Forms startup, it is recommended that you create a timer
    with a short duration (say 1ms) in your When-New-Form-Instance trigger, then make the
    WebUtil call in a When-Timer-Expired trigger.
    Francois

  • Strange Problem using tomahawk and JSF 1.1

    Hi,
    my JSF Project (Tomcat 5.5.17 as Server; jre 1.6) works fine until I add the tomahawk .jar (1.1.3) to the lib folfder. When I add the jar file I get the following exception:
    SCHWERWIEGEND: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
    javax.faces.FacesException: java.lang.ClassNotFoundException: [Ljava.lang.String;
         at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:336)
         at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
         at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:608)
    The exception appear even when I dont use any content of the archive.
    Please help.
    Thank you
    Arndt

    Yep, as you found, there were some changes in how the 1.6 handles the loading of array classes. This issue has been corrected in the 1.2 version of the RI. We still need to backport said fixes to 1.1.

  • Strange Problem - Cluster of References

    Hello guys
    I had a strange problems using a cluster with references.
    How to reproduce the problem:
    - open a blank VI;
    - create two graphs in the front panel;
    - in the block diagram, create references for both graphs;
    - connect these references to a bundle (not bundle by name);
    - create an indicator for the bundle;
    - run the VI once;
    - right click on the bundle indicator and change it to a control;
    - delete references and bundle;
    - select the control in the front panel, go to EDIT, CUSTOMIZE CONTROL;
    - change to strict type def;
    - save this control as Control1.ctl;
    - connect the control to a unbundle by name;
    - right click on the unbundle by name and select one of the two graphs as an item (doesn't matter which one you select);
    - create a property node and feed its reference terminal with the reference from the unbundle by name;
    - use the property "Label.Text" in the property node;
    - create an indicator for the the property node;
    - run the VI;
    - the indicator will show the correct label for that graph;
    - perfect!!!
    If you save the VI and run it again, everything is fine.
    But............... if you close it, open again and run.... you will get an error 1055 "Object reference is invalid".
    Why it was working before closing?
    Find attached the VI and the Control.
    Thanks
    Dan07
    Solved!
    Go to Solution.
    Attachments:
    Cluster References.vi ‏11 KB
    Control1.ctl ‏7 KB

    Let see if I can answer before I have to start working.
    Do a quick experiment.
    Use a Type cast to cast your ref as a U32 and show that value on the FP.
    Save the VI run it and record the number on the FP.
    Mod the vi save it clsoe it open it and run again. The number should have changed.
    That is the issue you facing, the ref number changes so you need one that is valid when you run.
    How I do it;
    I use an Action Engine (see this Nugget to learn what an Action Engine is) that servse as a GUI controller and lets me get at refs where even I need them. The following is a case study.
    First I collect all of th refs I will need and bundle them in a type def. I sue a state machine to do the bundling if there are a lot.
    THe bundled clsuter get passed to an GUI Controller Action Engine
    Inside the Init I check the refs to make sure they are vlid. THis has saved a lot of wated time chasing invalid refs.
    If they were valid I cache the refs.
    For major mode changes that demand a lot of GUI punching I create sub-VI to do the dirty work.
    When ever other codes needs a ref to the GUI I have a method that returns the refs.
    THe following shows another VI using those GUI refs.
    I hope that helps,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • There are some strange problems when i used swc files in my as3 project

    Hello everyone,
            My development environment:  fdk4.0,  flash cs5.5,  I publish fla file by using flash cs5.5,   publish setting is  fp version :10.0&10.1 ->swc. I imported swc files to my as3 project and  complied them by using flex sdk4.0. When i run my project,fp was crash.   when i republished on fp 10.2, the project works. Is there any reason?
            another strange problem, for example   a MovieClip's aslink named "A" in swc, it has a textfield named "subText".  I write code like below:
                            var mc:A = new A();
                            mc.subText.text = "test";  
             when mc called "subText" , fp throws null property error, it can't find  subText..  very small number of movieclips have this problem,  I sloved this by duplicating a new one and rename it.
             but i don't  know why ? 
              thank you for your reply.

    I should have figured that out from your original post. I think there is a possibility that your bookmarks/history database (places.sqlite) has a corrupted record. Rather than take drastic action on that immediately, could you do a test? The test is to exit Firefox, rename your existing database, and restart Firefox. Firefox should import your last bookmarks backup. You then could check whether the problem remains or whether you got a clean restore of bookmarks. After the test, assuming you prefer to retain your history, you could undo the procedure and try restoring your bookmark backup into the database to see whether that overwrites the problem record. If not, then we would go back to possible drastic action.
    '''Test procedure''':
    Open your current Firefox settings (AKA Firefox profile) folder using
    Help > Troubleshooting Information > "Show Folder" button
    Switch back to Firefox and Exit
    Pause while Firefox finishes its cleanup, then rename '''places.sqlite''' to something like places_20130614.sqlite. Keep this window open.
    Restart Firefox. By design, Firefox should import your last automatic bookmark backup.
    If you return to the Library dialog, how does it look?
    '''To reverse the test''' (but preserve a backup of your history/bookmark database):
    Exit Firefox
    Delete the newly created places.sqlite file
    Right-click copy and paste the places_20130614.sqlite and rename the copy to places.sqlite
    Restart Firefox and open the Library dialog. Should look like it did a few minutes ago before any changes.
    ''If the test showed no corruption,'' try to restore your last bookmarks backup. The procedure is described in this article: [[Restore bookmarks from backup or move them to another computer]].
    Does any of that get us closer to a solution?

  • Strange problem in executing procedure using dblink

    I have this strange problem coming in the execution of a procedure accessed using dblink. I will try to explain the scenario. We have one procedure in our schema which is executed using a dblink from another database as we have a integration of systems. This was working fine but after we did a fresh export and import of this schema as we migrated our database to a new better configuration DB server, the execution of this procedure is hanging when it is executed from the dblink from the other database. I hope, I have been able to explain the scenario.
    I hope, my question is clear.
    Please, help in solving the doubt.
    regards

    No starting version number.
    No current version number.
    No indication of whether the link is valid and you can SELECT across it.
    No error message of any kind.
    Nothing from your alert log.
    No indication of whether you have a global names issue.
    Please do the research required to identify the nature of the problem, check the related docs at metalink, and if you still have a problem give us the rest of the story.
    Then perhaps we can help you.

  • Strange problem with SSL Sockets using more than 10 Clients

    Hi
    I�m using Jsse ( JDK 1.4.2_06 ). I have coded a Client/Server Applikation acting over SSLSockets or over unsecured Sockets. If I use unsecured Sockets everthing works fine, but if I use SSLSockets for the Connection and about 20 Clients, the Clients often can�t connect to the Server and the following Exception was thrown:
    java.net.ConnectException: Connection refused: connect
    Could it be that there is some strange problem with SSLServerSockets relating to this phenomenon?
    If I use only a few Clients the Exception occurs never or only sometimes.
    Has anyboby an idea what is happaning there?
    Regards Chrisli

    Hi
    From the description of your scenario, you have coded your own server side of the application. I would advise that you consider moving your application to run under Tomcat framework and test if you still get the same exception.

  • Strange nasty problem using a caldigit S2VR

    Hi Guys,
    Ok, this is a really strange problem, and I have been tearing my hair out for a couple of days. I have a powermac g5 dual 2Ghz. I got the sata raid from caldigit with a pcix sata card. i installed everything - the sata card in slot 4. I can log into their utility create the raid, then format the drives in disc utility no problem. As soon as I try to transfer some large files (3.2gb) though, after between 100mb and 2bg of transfer its suddenly stops. The drive stops responding and I can't connect to it via the util. After a few minutes, the I get an ejection warning from finder. Does anyone have any ideas? We have ruled out any hardware issues with the drive itself, but it seems to me it's more the pci card issue. Any know problems with pci on G5?
    thanks for your time
    ursula

    The drive problem I was referring to involved disks connected to the Mac SATA bus not through a card so that shouldn't have anything to do with it. Exactly which model of dual 2.0 do you have. If I remember correctly there are a few different flavors. Mine is a rev A dual 2.0 and I don't have any PCI-x problems. I'm not aware of wide spread problems with PCI. I wiould run the Apple Hardware Test to try to rule out the possibility of a hardware problem on your Mac itself. Then I would try all of the usual stuff, reset PMU, reset nvram, repair permissions, erase or repair the disk with Disk Utility. I would try reseating the card. You could even go so far as to reinstall your system. But before I went that far I'd try to get Caldigit to send you another card.
    Another thought....you said the card is in slot 4? Don't G5's have three PCI slots? Or is the slot for the video card counted as slot one? Not in front of a Mac right now so i can't look. Have you tried moving the card to a different slot?

  • I am facing a strange problem on new iphone 5 that I bought last week. The maps app and the places in photo gallery shows the pin and my location, however there is no information of locations. Tried to close the apps, phone restart, reset etc. Please help

    I am facing a strange problem on new iphone 5 that I bought last week. The maps app and the places in photo gallery shows the pin and my location, however there is no information of locations. Tried to close the apps, phone restart, reset etc. I am accessing it via strong wireless connection and it works fine on other devices. Please help.

    zapgrap wrote:
    there is no information of locations.
    Then no information exists.  Use the Report a Problem button within the app to report it.

  • I am having a strange problems on the Data entry Forms

    A form that has been used since 2005 in an old version of HFM 3.51 was migrated to SYstem 11.1.2.1 in January of 2012 and has been working since then. Suddenly we start having some strange problems. Our response time has been very slow and I am wondering if there were some problems in any of the services. Maybe a service did not start properly related to the WEB forms.
    We entered a number in one of the cell to be: 348336349 as soon as we hit enter, the number was formatted to 348,336,349 but when I submit the number it came back as 3. I tried it several times and it did not work, I checked the scaling and that was set blank. One of my user tried it and it did not work. I tried looking into the Preferences and my screen froze. In the meantime one of my user was able to enter the number and was able to refresh it as well. Then she enter another number on a different cell and the same problem occurred it seemed as if it truncated all the digits except for the left most digit, we are unable to figure out how to resolve this issue. The number entereed in the cell is 826,251,218 it stores 8 and loses the rest of the 8 digits. I right click and checlk the properties and it says that it has stored 8 instead of 826,251,218.
    Following is the DEF script. Does anyone has any ideas, I am wondering if I have to restart the services..
    ReportType=WebForm
    ReportLabel=Aging_Receivables
    ReportDescription=Aging Receivables
    Instructions=Please make sure you set up your point of view (POV) appropriately. Business Unit (BU): AG, CE and Other_BU. Brand: Case, NH and Other_Brand.
    BackgroundPOV=S#Actual.Y#2011.P#Jan.w#YTD.V#<Entity Currency>.I#[ICP None].C2#SERVICED.C3#GL_INPUT.C4#Input
    SelectablePOVList=S{[Hierarchy]}.Y{[Hierarchy]}.P{[Third Generation]}.E{[Hierarchy]}.C1{[Base]}.C2{[Hierarchy]}.C3{[Base]}.C4{GL.[Hierarchy]}
    C1=A#Current
    C2=A#0_To_30
    C3=A#Total_Current
    C4=A#31_To_60
    C5=A#61_To_90
    C6=A#91_To_120
    C7=A#121 Plus
    C8=A#Total_Past_Due
    C9=A#Total_Aging_Rec
    C10=A#Current_OffBook
    C11=A#Past_Due_OffBook
    C12=A#T_Aging_Rec_OffBook
    C13=A#Total_MP_Aging_Rec
    C14=A#Aging_Rec_Diff
    R1=C1#_Retail
    R2=C1#_Wholesale_Tot
    R3=C1#_Wholesale
    R4=C1#_Wholesale_Natl
    R5=C1#_Wholesale_Othr
    R6=C1#_Credit_Card
    R7=C1#_Specialized_Lending
    R8=C1#_Marine
    R9=C1#_Soris
    R10=C1#_Other
    R11=C1#_Material
    R12=C1#Sup_Product
    FormInputBoxLength=23
    PrintNumRowsPerPage=33
    PrintNumDataColsPerPage=8
    ShowLabels=False
    ShowDescriptions=True
    SuppressColHeaderRepeats=False
    Edited by: user8267293 on Aug 8, 2012 12:41 PM
    Edited by: user8267293 on Aug 8, 2012 12:43 PM

    Hi,
    Did you find a way to solve your problem ? We have exactly the same for one application and we are using the same version of HFM : 11.1.2.1.
    This problem is only about webforms. We can correctly input data through Data Grids or Client 32.
    Thank you in advance for your answer.

  • Computer slower and a few other strange problems since upgrading to SL

    Hi all,
    About a month ago, I upgraded my mid-2009 MBP to SL. I'm now on 10.6.1. Ever since the upgrade, my computer's been somewhat slower than it was when I ran Leopard (although many people I know say their machines are faster). I did restart several times at one point, and that seemed to speed it up, although it still experiences delays I didn't have before. I've also had a bunch of strange issues:
    1) Safari is most noticeably slow, especially when using something like Top Sites on Safari 4. I alleviated this problem somewhat by setting new tabs to open a blank window rather than Top Sites, but even so, Safari is generally slower, gives me 'pinwheels' often, and also is less stable.
    2) The other day, I restarted to find that all fonts except system fonts had been mysteriously deactivated. As a designer, I rely heavily on my many fonts, which I manage using Linotype FontExplorer.
    3) Today, I opened my computer up after having it sleeping in a backpack, and it had turned off. It was not out of battery; it had just turned off for no apparent reason.
    4) Judging by Activity Monitor, RAM is being used somewhat more heavily by the system, contrary to the advertisements of a 'lighter' footprint for SL as compared to Leopard. However, according to Activity Monitor (which I check frequently), the processor does not appear to be getting taxed any more heavily than under Leopard, which makes the sluggishness more inexplicable.
    5) Yesterday, I could not get my computer to recognize my Time Machine backup disc. After restarting, it worked, but this is a pain.
    I appreciate any advice I can get. Does anyone else have similar problems or solutions? Or is the general consensus that these are SL bugs that Apple will work out by about 10.6.4 or so?
    Thanks,
    Nathan
    Message was edited by: nateeanes

    I began this thread awhile ago, but the essence of it is that I had a number of strange problems, although mostly my computer was just slower, when upgrading from Leo to SL.
    I've now wiped my HD and re-installed SL. It seems faster, although there are still a few issues:
    1) iWork (Pages, Numbers) has very weird coloring. All the text looks light blue and/or cyan, and I can't fix it.
    2) Although initially Safari worked great, lately it's been going back to its habits of being slow and showing strange things like chopping up the 'Top Sites' view, i.e. rendering it in an off way.
    3) Adobe CS3 will not install properly. I get them loaded up, but when I try to launch a program, I get an error that says "licensing for this product has stopped working". I cannot get to the 'activate' page, even though I uninstalled and deactivated CS3.
    In the interest of full disclosure, I did restore my home account after clean installing SL-- maybe I should have brought the files over folder by folder rather than bringing back my whole home folder with its settings? I wonder if I accidentally brought over Adobe's FLEXnet folder too.
    Also, does anyone know if Adobe CS3 can cause these problems with Safari and other programs? It just seems that the whole machine was slower after installing CS3, even though I wasn't running the programs.
    Any help is appreciated.
    Nate

Maybe you are looking for