An Odd Interaction Between Ant, JUnit, and IntelliJ

I must be losing my mind. Things that I used to know in my sleep are failing me these days.
I'm running JUnit 3.8.1 and Ant 1.6 in IntelliJ 4.5 on Windoze XP and Sun's JDK 1.4.2. (Enough acronyms?)
I've got an Ant build.xml that I've flogged on a bunch of projects at my last employer. It's nice and generic and shaken down nicely. It has a compile step that's followed by a dependent <junit> task, which runs all the JUnit TestCases I've accumulated, generates XML reports, deploys the app, and then generates javadocs. I've used it many times on the command line and in Eclipse 3.0.
My latest employer has sprung for IntelliJ 4.5, which I like VERY much. After learning Eclipse it's been no problem to figure out what IntelliJ is doing for me.
My problems start when I try to use my lovely build.xml in IntelliJ. It compiles all my code fine, but when it tries to run the JUnit task it always comes back with ClassNotFoundException when it tries to load the TestCase. That means CLASSPATH, right? I'm setting CLASSPATH in the build.xml. I can look at the properties that JUnit says it has when it runs the test, and I can see the full path to the TestCase in the java.class.path property. I've used the <echo> task to print out the converted CLASSPATH before running JUnit, and I can see the TestCase in the CLASSPATH then, too.
If I open a command shell and run the junit.textui.TestRunner by hand, adding the appropriate JARs using the -classpath option, everything is perfect.
What the heck am I doing wrong? Anybody else running JUnit in IntelliJ via Ant?
%

I must be losing my mind. Things that I used to know
in my sleep are failing me these days. That's bad duffy. If you lose your mind, who will answer all those questions on JDBC.
My problems start when I try to use my lovely
build.xml in IntelliJ. It compiles all my code fine,
but when it tries to run the JUnit task it always
comes back with ClassNotFoundException when it tries
to load the TestCase. That means CLASSPATH, right?
I'm setting CLASSPATH in the build.xml. I can look
k at the properties that JUnit says it has when it
runs the test, and I can see the full path to the
TestCase in the java.class.path property. I've used
the <echo> task to print out the converted CLASSPATH
before running JUnit, and I can see the TestCase in
the CLASSPATH then, too.
If I open a command shell and run the
junit.textui.TestRunner by hand, adding the
appropriate JARs using the -classpath option,
everything is perfect.
What the heck am I doing wrong? Anybody else running
JUnit in IntelliJ via Ant?There is a possiblilty that it is not finding the JUnit.jar. You might want to experiment with "build.sysclasspath" (I think that's the name, not sure) in your Ant script.
Regards
***Annie***

Similar Messages

  • [svn:osmf:] 10248: Fix a few bugs related to the interaction between IPlayable, IPausable, and ITemporal within a SerialElement, specifically around ensuring that the transition from child to child happens in the various permutations of these traits .

    Revision: 10248
    Author:   [email protected]
    Date:     2009-09-14 16:45:00 -0700 (Mon, 14 Sep 2009)
    Log Message:
    Fix a few bugs related to the interaction between IPlayable, IPausable, and ITemporal within a SerialElement, specifically around ensuring that the transition from child to child happens in the various permutations of these traits.  Introduce a helper class for managing this logic, as it can happen in both CompositePlayableTrait and CompositeTemporalTrait.  This lays the groundwork for a MediaElement which only implements IPlayable (e.g. to ping a tracking server) working within a serial composition.  Beef up unit tests so that these cases don't get broken in the future.
    Modified Paths:
        osmf/trunk/framework/MediaFramework/.flexLibProperties
        osmf/trunk/framework/MediaFramework/org/openvideoplayer/composition/CompositePlayableTrai t.as
        osmf/trunk/framework/MediaFramework/org/openvideoplayer/composition/CompositeTemporalTrai t.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/openvideoplayer/composition/TestSerialEle ment.as
    Added Paths:
        osmf/trunk/framework/MediaFramework/org/openvideoplayer/composition/SerialElementTransiti onManager.as

    Hi,
    Found a note explaining the significance of these errors.
    It says:
    "NZE-28862: SSL connection failed
    Cause: This error occurred because the peer closed the connection.
    Action: Enable Oracle Net tracing on both sides and examine the trace output. Contact Oracle Customer support with the trace output."
    For further details you may refer the Note: 244527.1 - Explanation of "SSL call to NZ function nzos_Handshake failed" error codes
    Thanks & Regards,
    Sindhiya V.

  • What is the interaction between calling VIs and subVIs using VI Server?

    I'm studying for the CLAD and one of the lines in NI's preparation document here is this:
    What is the interaction between calling VIs and subVIs using VI Server?
    I know how to use the "Call By Reference" function to call a VI, but not necessarily a subVI. I thought a subVI is always loaded with the calling VI and has nothing to do with VI Server. What am I missing?
    Solved!
    Go to Solution.

    Hi Bmihura,
    I think this article will clear up how the VI Server works with subVIs called dynamically or statically.
    Calling a VI by Reference
    Best Regards,

  • Interaction between Edge Animate and RaphaelJS (or any svg library)

    Hello.
    Edge Animate's possibilities are really nice as long as i'm working with anything rectangular. The overall UI is very practical and so, but when you want to work with more complex shapes overlapping it gets very limitated.
    I've looked around with no success, so may be someone here as a clue for me.
    How would you integrate something from this kind of page (interactive map of australia) and make the map and an Edge environment work together.
    Here i'm thinking :
    - Edge buttons that would highlight some parts of the map (or reveal some divs from the original html)
    - RaphaelJS code at building of the map that would interact with edge symbols.
    So far, my knowledge of code/js/css seems too limited to get things done as i wish, any ideas/insight welcome.

    Hi Franck!
    You are right. The default implementation uses the SVG as a background image applied to a div container. That's the reason why you loose all the interactivity within the SVG itself. I love Raphael, but I think it would be an overhead for your map example.
    Here is a light weight solution with (jQuery SVG) that works like a charme with non-rectangle click areas.
    Assuming you have a rectangle placed on the stage (named "playground") you can load the SVG into that container within the "compositionReady" handler of your composition like this:
    yepnope({
         load: "libs/jquery.svg.package-1.4.5/jquery.svg.min.js",
         complete: function() {
              // Load Handler for SVG Graphics
              function onSvgLoad(svg, error) {
                $('path#Cyan').click( function(){
                     alert('hello Cyan');
                     // Your code here
              // Select Edge Animate Element for SVG display
              var playground = sym.$("playground");
              // Load SVG Graphics
              playground.svg({});
              var svg = playground.svg('get');
              svg.load('images/pie.svg', {
                   addTo: false,
                   changeSize: false,
                   onLoad: onSvgLoad
    I put together a small demo project with an example svg and all dependencies:
    http://public.simonwidjaja.com/temp/AnSVG.zip
    Hope that helps!
    Cheers,
    Simon

  • Differences between Ant launched and JDev launched JUnit causing an error

    I've got a JUnit test which tests a web service. The test runs fine when launched in from JDeveloper but when launched from an Ant script I get:
    [junit] oracle.fabric.common.PolicyEnforcementException: Action header is required when addressing is enforced
    [junit] javax.xml.ws.WebServiceException: oracle.fabric.common.PolicyEnforcementException: Action header is required when addressing is enforced
    [junit]      at oracle.j2ee.ws.client.jaxws.DispatchImpl.invoke(DispatchImpl.java:749)
    [junit]      at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.synchronousInvocationWithRetry(OracleDispatchImpl.java:226)
    [junit]      at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.invoke(OracleDispatchImpl.java:97)
    [junit]      at oracle.j2ee.ws.client.jaxws.WsClientProxyInvocationHandler.invoke(WsClientProxyInvocationHandler.java:216)
    [junit]      at $Proxy30.process(Unknown Source)
    [junit]      at ca.jea.penfax.command.AddANewHireCommand.startBusinessProcess(AddANewHireCommand.java:30)
    [junit]      at ca.jea.penfax.command.AddANewHireCommandTest.testStartBusinessProcess(AddANewHireCommandTest.java:27)
    [junit] Caused by: oracle.fabric.common.PolicyEnforcementException: Action header is required when addressing is enforced
    [junit]      at oracle.j2ee.ws.common.addressing.ClientWSAddressingInterceptor.processRequest(ClientWSAddressingInterceptor.java:166)
    [junit]      at oracle.integration.platform.common.InterceptorChainImpl.processRequest(InterceptorChainImpl.java:91)
    [junit]      at oracle.integration.platform.common.mgmt.InterceptorChainManager.processRequest(InterceptorChainManager.java:216)
    [junit]      at oracle.j2ee.ws.client.mgmt.runtime.SuperClientInterceptorPipeline.handleRequest(SuperClientInterceptorPipeline.java:96)
    [junit]      at oracle.j2ee.ws.client.jaxws.DispatchImpl.handleRequest(DispatchImpl.java:532)
    [junit]      at oracle.j2ee.ws.client.jaxws.DispatchImpl.handleRequest(DispatchImpl.java:510)
    [junit]      at oracle.j2ee.ws.client.jaxws.DispatchImpl.invoke(DispatchImpl.java:701)
    The error occurs on the line that invokes the webservice. What parameters is JDeveloper setting up that I need to replicate in my Ant script? Is there a way to use the JDeveloper TestRunner instead if it will cause me fewer problems?

    851004 wrote:
    ..It has been re-written from spec="1.0" to spec="1.5" ..Who changed it, and why?
    ..Does anybody else have an answer, solution, or suggestion ..?I suggest:
    <ul>
    <li>Change the spec. number back to something that 1.4 JWS claims to understand (i.e. "1.0").
    <li>Checking the launch file using JaNeLA
    </ul>
    Edited by: Andrew Thompson on Apr 9, 2011 7:54 AM

  • Issues with interactivity between component states and page states

    Hi there, I recently downloaded the trial of Catalyst 5.5 and am encountering the following problem:-
    I have many screens in my application and am attempting to get around the 20 state limit by creating custom components that contain multiple states that can be used as screens. So, I have created button links between the component states which work fine but have also created button links to and from the standard states of the application, which dont work upon running/publishing. I'm not quite sure whats wrong here as the button commands are pointing to the right place, i.e. they are pointing firstly to the specific custom component and then the state within the component, but its just not working.
    Is this a trial issue or something deeper?
    I really hope someone can help as apart from this issue I have been very happy with the application but if I can not find a solution theres no point in purchasing it.
    Cheers.

    Ive had the same problem. Im trying to create an interactive e-book but im having problmes with the limit of states. I have now worked out that i have to create custom components to create a sub-state but im finding it difficult to go between sub states. Help anyone?

  • 64bit JVM Crash: interaction between Concurrent GC and HotSpot Compiler?

    During a test of a standalone server application, the application experienced a JVM crash for with no readily identifiable cause. We would like to at least come up with a theory to explain the crash; right now we have no idea what happened. We haven't found anything similar on the web so I am posting this to see if anybody has come across a similar problem.
    The OS was 64bit Windows Server 2003 family on an AMD machine with 8 hyperthreaded CPUs (4 dual-core, I believe). The JVM was a 1.5.0 Server VM. An excerpt of the crash log is below.
    The closest report we can find is Bug ID 5048441 which identified intermittent crashes with the Concurrent MarkSweep GC enabled; somebody claimed to have seen the problem under 1.5 but didn't have much more to add.
    We haven't started heavily testing under 64bit just yet but we will be moving soon, so we would really appreciate hearing about similar experiences.
    # An unexpected error has been detected by HotSpot Virtual Machine:
    #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000000805dd33, pid=5100,
    tid=5636
    # Java VM: Java HotSpot(TM) 64-Bit Server VM (1.5.0_04-b05 mixed mode)
    # Problematic frame:
    # V  [jvm.dll+0x5dd33]
    ---------------  T H R E A D  ---------------
    Current thread (0x00000000004ab8e0):  JavaThread "CompilerThread1" daemon
    [_thread_in_native, id=5636]
    siginfo: ExceptionCode=0xc0000005, reading address 0x0000000000000000
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    par new generation   total 42496K, used 27395K [0x000000007fff0000,
    0x0000000082980000, 0x0000000082980000)
      eden space 42432K,  64% used [0x000000007fff0000, 0x0000000081ab0de8,
    0x0000000082960000)
      from space 64K,   0% used [0x0000000082960000, 0x0000000082960000,
    0x0000000082970000)
      to   space 64K,   0% used [0x0000000082970000, 0x0000000082970000,
    0x0000000082980000)
    concurrent mark-sweep generation total 30677440K, used 4502193K
    [0x0000000082980000, 0x00000007d2ff0000, 0x00000007d2ff0000)
    concurrent-mark-sweep perm gen total 21248K, used 12956K [0x00000007d2ff0000,
    0x00000007d44b0000, 0x00000007d6ff0000)
    VM Arguments:
    jvm_args: -Xms30000M -Xmx30000M -enableassertions -XX:+PrintGCDetails
    -XX:MaxPermSize=64M -XX:+PrintGCTimeStamps -XX:+UseParNewGC
    -XX:+UseConcMarkSweepGC -Xdebug
    -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5432 -verbose:gc
    ---------------  S Y S T E M  ---------------
    OS: Windows Server 2003 family Build 3790 Service Pack 1
    CPU:total 8 em64t ht
    Memory: 4k page, physical 33549364k(27243692k free), swap 45158008k(12023400k free)
    vm_info: Java HotSpot(TM) 64-Bit Server VM (1.5.0_04-b05) for windows-amd64,
    built on Jun  3 2005 01:43:58 by "java_re" with unknown MS VC++:1400

    I had a very similar experience on yesterday. It accepted my username and password, went to the next screen and when I clicked on transaction management, the screen went back to my desktop and and a notebook appeared (hs_err_pid3960). This is what the top portion said:
    An unexpected error has been detected by HotSpot Virtual Machine:
    Exception_Access_Violation (0xc0000005) at pc=0x6d700e9d, pid=3960, tid=968
    Java VM: Java HotSpot (TM) Client VM (1.5.0_04-b05 mixed mode, sharing)
    Problematic frame:
    V [jvm.dll=0xc0e9d]
    THREAD
    Current thread (0x029ec868): VMThread [id=968]
    siginfo: ExceptionCode=0xc0000005, reading address
    This report is 4 pages long but it includes info on Registers, Top of Stack (sp=0x066cfba0), Instructions (pc=0x6d700e9d), Stack [0x065d0000, 0x066d0000), sp=0x066cfbao, free space=1022k. There were several Java Threads listed but they all said "thread blocked" and then listed an id=------. VM state: at safepoint (normal execution). It had Libraries, VM Arguments -xbootclasspath/a:c:\, and a few others. Environmental variables Path=C:
    Processor_Identifier=x86 Family 15 Model 4 Stepping 1, GenuineIntel
    OS: Windows XP Build 2600 Service Pack 2
    CPU: total 2 family 15
    Memory: 4k page,
    vm_info: Java HotSpot (TM) Client VM (1.5.0_04-b05) for windows-x86, built on June 3, 2005 by "java_re" with MS VC++ 6.0
    Now that I have given this info to you, how do I eleviate the problem so that I will be able to do my job. Without this function, I cannot perform an important part of my job. I am hoping that this info will help you all find out the problem and prevent it from continuing to happen.

  • Interactions between Oracle XE and other Oracle database or products

    Hello,
    My computer is already supporting Oracle 9i Developer Suite and I would like to know if there is some possibles interactions with Oracle database XE which I plan to install on the same computer.
    Thank you

    Ivok - To answer your first question, each of those two versions is the latest version to run on Oracle SE/EE and Express editions, respectively. Version 2.0 does not run on Oracle Express Edition and Version 2.1 runs only on Oracle Express Edition. Applications developed in either version of Application Express can be installed and run in the other version.
    Scott

  • Interaction between Qout scheduler and Integration engine

    Hello,
    I would like to understand more about the XI 3 architecture regarding the place of qRFC. If I understood right, depending on the QOS, the qOUT scheduler is used to send XML documents comming from the Integration Engine. The qOUT scheduler is able to process and queue rfc calls using traditional RFC ports (for example in case of CIF for APO). I imagine that in the case of XML message shipping, the qOUT scheduler is  called by the Integration Engine messaging logic layer. But then, I don't understand how outgoing SOAP calls occure. Are the queued RFC calls in destination of the local SOAP framework which uses the ICM to talk SOAP with the partner?
    Thanks for your lights,
    Christian.

    Thanks Holger for youor quick and precise answer,
    You mean, that the connection between the adapter framework and the integration engine is pure rfc based and not Soap-based XI protocol ?
    Is XI protocol used between the two engines each time no qRFC is envolved and in this case, the Abap-based Soap framework and the ICM are used by the integration logic layer of the central integration engine to communicate with the adapter engine ?
    Thanks,
    Christian.

  • Problem with Interaction between SAP GUI and BSP Applications

    Hi Folks,
    I am new to BSP and am trying to create a program to created a BSP within the SAP GUI. This is my program, I have tried to find as to what error have I made but I am not able to find out.
    I can only find a button post document in the output, but I am not able to trigger any event. Please let me know as to what is the error.

    REPORT  zbsp_iact_gui.
    SET SCREEN 100.
    *       CLASS cl_my_html_yiewer  DEFINITION
    CLASS cl_my_html_viewer DEFINITION INHERITING FROM cl_gui_html_viewer.
      PUBLIC SECTION.
        METHODS: constructor IMPORTING parent TYPE REF TO cl_gui_container.
        METHODS: on_sapevent FOR EVENT sapevent OF cl_gui_html_viewer IMPORTING action postdata.
    ENDCLASS.                    "cl_my_html_viewer  DEFINITION
    *       CLASS cl_my_html_viewer IMPLEMENTATION
    CLASS cl_my_html_viewer IMPLEMENTATION.
      METHOD constructor.
        super->constructor( parent = parent ).
        DATA: event_tab TYPE cntl_simple_events,
              event TYPE cntl_simple_event.
        event-eventid = me->m_id_sapevent.
        event-appl_event = 'X'.
        APPEND event TO event_tab.
        call method html_control->set_registered_events
            exporting
               events = event_tab.
        SET HANDLER me->on_sapevent FOR me.
      ENDMETHOD.                    "constructor
      METHOD on_sapevent.
        BREAK-POINT.
        IF action CS 'COUNTER'.
          DATA: counter TYPE string.
          READ TABLE postdata INDEX 1 INTO counter.
          SPLIT counter AT '=' INTO counter counter.
          MESSAGE counter TYPE 'I'.
        ENDIF .
      ENDMETHOD.                    "on_sapevent
    ENDCLASS.                    "cl_my_html_viewer IMPLEMENTATION
    DATA: html_viewer TYPE REF TO cl_my_html_viewer,
          html_container TYPE REF TO cl_gui_custom_container,
          fcode LIKE sy-ucomm.
    *&      Module  STATUS_0100  OUTPUT
    *       text
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'TESTHTM1'.
      IF html_viewer IS INITIAL.
        CREATE OBJECT html_container
          EXPORTING
            container_name = 'HTML'.
        CREATE OBJECT html_viewer
          EXPORTING
            parent = html_container.
        DATA: url TYPE string, urlc(2048) TYPE c.
        cl_bsp_runtime=>construct_bsp_url(
        EXPORTING in_application = 'ZBSP_IACT_GUI'
        in_page = 'Start.htm'
        IMPORTING out_abs_url = url ).
        urlc = url. " type conversion STRING to C
        CONCATENATE urlc '?SAP-CLIENT=650' INTO urlc.
        html_viewer->show_url( url = urlc ).
      ENDIF.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
    *       text
    MODULE user_command_0100 INPUT.
      CASE fcode.
        WHEN OTHERS.
          CALL METHOD cl_gui_cfw=>dispatch.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    Edited by: Nonconformist Pagal on May 12, 2009 1:42 PM
    Edited for formatting by: Durairaj Athavan Raja on May 14, 2009 9:50 AM

  • A bug in the interaction between webkit popups and AIR

    Hi all,
    I came across this thread in the archives, dealing with an HTML select box that did not work properly in an AIR utility window.
    Since I just finished a mini ordeal around the same problem, I'd like to share:
    When you activate an HTML popup (e.g. combobox) inside an HTML control under AIR, then the mouse selection event generates a DEACTIVATE event for the window containing the HTML control. By "mouse selection event" I mean the click on the chosen option inside the menu.
    Now, if your window is defined as alwaysInFront, or if you've simulated this attribute by e.g. capturing the DEACTIVATE event and reactivating, then the selection will simply not happen, it is aborted as the focus is returned to the containing window.
    Contrary to the answer in the linked thread, this is not a linux issue, I experienced it on windoze and reproduced in several scenarios and using both a manually created NativeWindow and a window generated by HTMLLoader.createRootWindow.
    Cheers & happy holidays

    Hi Guy's,
    I have the same problem here with my 808.  Just like japez85 I have notice only once the 3.5G icon in the nokia store app, and then when I went to the home screen it only showed the 3G icon. I have not seen the 3.5G icon since then. My N8 phone never had this bug.
    Here pic's of my home screen, the product code of the phone is 059M9M4.
    Attachments:
    Scr000004.jpg ‏33 KB
    Scr000005.jpg ‏33 KB

  • Noise Interactions between TC-2095 and BNC-2090A

    Ok...first things first...my setup is as follows:
    PXI-1050 (PXI/SCXI COMBO CHASSIS)
    SLOT1 - PXI8110 (controller)
    SLOT2 - PXI4110 (DC power supply)
    SLOT3 - PXI6123 (s-series)
    SLOT4 - PXI6704 (analog output)
    SLOT8 - PXI6229 (m-series)
    SCXI, SLOT1 - SCXI1102
    BNC-2090A (X2) - hooked up to M-SERIES card
    TC-2095 - hooked up to SCXI1102
    LabVIEW 8.6, DAQmx 8.9
    So on to business...I am relatively new to LabVIEW.  The issue I am having I can best describe as noise, though it may not be actually noise.  As the VI and equipment setup stands, everything seems to be functioning correctly, but no actual voltages have been read through the BNC ports.  No cables are plugged in at all with the exception of one thermocouple I have wired up to test the thermocouple channels.  The channels I have set up to use in the current VI are Voltages from the M-series card channels 1-20 and thermocouple channels 0-5,31.  When I have the VI running and plug the thermocouple into channels 0-4 on the TC-2095, there are no effects noticed anywhere else in the VI.  All remains steady.  However, when I plug the thermocouple into channel 5 OR 31 of the TC-2095, ALL voltages (M-Series 1-20) make a jump down that appears the same over all channels. This jump is 2V for channel 5 and 3-4V on channel 31.  When I unplug the thermocoupe , all returns to normal.  ALL jumpers on the front are set to Differential mode and ALL jumpers on the rear are in their factory configurations (ON for floating signals and ON for open thermocouple detection).  None have been touched.   I am thoroughly confused. 
    I hope I made a bit of sense in trying to convey this issue.
    Attached are a ZIP of my VI and all SubVIs and a screenshot taken shortly after a thermocouple is plugged into Channel 5 of the TC-2095.
    Andrew
    Attachments:
    Steady State Front Panel Folder.zip ‏133 KB
    screenshot1.JPG ‏160 KB

    Have you checked if the thermocouple into channel 5 OR 31 causes the a voltage that will saturate the input channel. I have seen it before in a multiplexed AD system. If one channels saturate this may cause trouble for all channels. The reason why is that then a operational amplifier is driven into saturation, the whole system will need some time to recover( the opamp and surrounding circuits). I some cases this may take some time. If the system is saturated with 1Khz intervals it may never recover. 
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • GMT/UTC Switches to PMT Midnight between 30 June and 1 July

    Anyone foresee issues with this news?
    http://www.timeanddate.com/news/time/pa … olete.html

    Please read the article again, paying close attention to every detail.

  • Interaction between Actionscript 2 apps and Actionscript 3 app

    Hi,
                  I got a project to refectoring. Its coded in as2. As One application (TabManager) has 5-6 tabs, and loading different swfs (coded in as2) at click on different tabs. Then according to user interactions, the loaded swfs are interacting with tabmanager (main swf) file like calling functions and sending objects and tabManager swf is also interacting with its loaded swfs. In short, All swfs are interacting each other.
    Now, I have to develop two application, one is the main application "TabManager" and other one is 3rd (one application out of 5-6 applications, whose are loading in tabmanager) loaded application in tabManager.
    To make the long story short, I need to load action script 2 coded applications under a action script 3 application and need to call each other function and send object type data.
    The Actionscript 3 app is in flex.
    So, please suggest the best options, One I know is LocalConnection class.
    Is there any other better way to interact between as2 and as3.

    It will be easier to rewrite the whole lot rather than try and manage intercommunication between as2/3 in a project with a lot of interdependencies between swfs.
    If you try and continue the project, as described with a mix, you are in for a lot of pain.
    Essentially you will be writing a communications protocol for the interactions between each swf and the main AS3 project. It will be a mess.

  • How do I interact between stage and classes?

    Hi,
    I have asked this question before, and all I got is "Go back
    to reading beginner books", so I'm hoping that someone here is
    willing to actually answer my question as opposed to brushing me
    off because they were unwilling to help...
    And yes, I have read books on the topic and gone through tons
    of the documentation and not found the answer to this. I have
    ActionScript 1 and JavaScript experience, so this whole business
    shouldn't be this hard.
    I am using ActionScript 3 in Flash CS3.
    My problem is this:
    I need to find out how to send commands between stuff on the
    stage and stuff that's defined in a class.
    I have had this issue for ages and kept trying to find ways
    around it since so far I haven't been able to find help for it.
    For example:
    When using a document class, how can I access the current
    frame number of the Stage?
    Or using a document class, how can I access any object (like
    a MovieClip with instance name) that was put on the stage using the
    IDE?
    Currently, to be more specific, I am trying to do something
    really simple:
    Make a button work on my stage that is not always visible.
    With AS3 that's not as easy anymore as it used to be.
    So what I did now is create the button in the document class,
    used addChild and set it to alpha = 0.
    Now, when the Stage reaches specific frames (i.e. ones with
    labels, and I got this part figured out), it is supposed to make
    the button visible. Then I can add event listeners and stuff, and I
    can figure that part out myself.
    I don't know how to access the stage frame number from the
    document class, so I put it into a frame script in frame 1, but now
    this script cannot access the button that is defined in the
    document class.
    It's driving me bananas...
    PLEASE, someone here, can someone please explain to me how I
    can make this work?
    I have seen plenty of diagrams of the Display List and the
    Object Hierarchy, but none of that explains how to actually USE any
    of it...
    Thanks so much in advance to anyone who is willing to spend
    some time to answer!

    Well, first of all, I have to say that AS3 has basically been
    designed to be difficult on purpose, in that all this interaction
    between objects is purposefully very strict. For this reason, I
    still use AS2 for all my basic Flash work. AS3 is just a lot more
    involved, a lot more strict, a lot less forgiving... you need a lot
    of experience with it before it starts to make sense.
    Now, I think I might have a few specific answers to your
    questions:
    From any DisplayObject (this includes any Document class,
    which has to extend MovieClip or in some cases Sprite) you can
    access the Stage using the 'stage' property.
    However, stage is probably not exactly what you want, you
    want the main timeline, which is the child of stage. To access the
    main timeline, you can use the 'root' property of any
    DisplayObject.
    However, unless you have strict mode off, Flash won't let you
    just say "root.myMovieClip" because the root property is of the
    type DisplayObject, which is not a dynamic class (meaning you can't
    add properties to it) and it has no built in property "myMovieClip"
    so it thinks you made a mistake. So you have to "cast" the root
    property as a MovieClip, which *is* dynamic so it will let you try
    to reference anything on it (like AS1/2 did for everything.)
    So what all that means is this should work from inside you
    document class:
    (root as MovieClip).myMovieClip
    or
    MovieClip(root).myMovieClip
    Either will successfully reference a MovieClip you had put on
    the main stage in the IDE and named "myMovieClip".
    Rather than setting the alpha to 0, try setting visible to
    false. I think this will disable all interactive events, where
    simply setting alpha to 0 would make it still be interactive.
    HTH

Maybe you are looking for

  • How can i set a layout for MIGO screen

    Hello all, How can i set a layout for MIGO screen. & make that layout default. Like i want to drag Requistioner column next to quantity in MIgo screen. temporarily I can drag but is there a way to save as layout & save it.

  • How do I get Pages to capitalize the first word of a sentence and the letter 'I?"

    How do I get Pages to capitalize the first word of a sentance and the letter "i" automacticly?

  • Presentation cables

    What is the difference between part numbers CAB-VGA-DVI-AUD25=, and CAB-VGA-DVI-AUD=? To me it looks like they are both VGA-M w/3.5mm stereo male to DVI-M w/RCAx2 male cables.  The "-25=" version is 25 feet long, the other is 6m (a bit under 20 feet)

  • Can anyone tell me how to rid of error code 2330 itunes

    can anyone tell me how i can get rid of error 2330 so can update the itunes on windows 7 pc

  • LiveCache Installation

    Hi, I am asked by my client to install SCM5.0. I was looking on OSS Install guides and I am actually confused on the installation procedure. I would appreciate if you can answer the following questions for me one by one. 1. SCM5.0 (it is a NW04s or N