Strange behaviour loading swf

hello, i'm trying to load external swf in my main swf.
when I click first time in first frame on object(movieClip)
which has event handler gotoJob, the jobfair.swf will load and it
works. But I have on the stage in first frame also another objects
- movieClips. If I click on some movieclip, than it means to go to
nextFrame. But when I return to first frame, where is also object
with click handler gotoJob and I click on it, it does not load the
swf. It looks like a bug, i need immediately help please.

I tried some solutions (look at attach code..) and it seems
to work, but not properly,
it loads swf everytime, but after clicking on another
movieClip and returning to 1 frame it seems that :
loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,
process);
loader.contentLoaderInfo.addEventListener(Event.INIT,
finished);
are not working, actions which are in functions process and
finished are not executed...
i find some similar problem on web:
"I have investigated that when another MC is loaded, it
causes reset on root clip, issuing ENTER_FRAME event, and just
after it code in the first frame executed again. There is more
strange behavior, code written in the loaded MC (directly in
frames) IS NOT EXECUTED."
Is there someone who meet with this? could someone please
explain that?

Similar Messages

  • Strange behaviour of .swf movies - AS2/AS3

    Hello from Italy,
         this is my first post and I think I need some help from the experts...
         I am putting together an interactive Flash movie which is made of several different small movies. For the sake of clarity, I'll call them A.swf, B.swf, ..., Z.swf. The movies are launched from each other depending on certain buttons I've implemented.
         The first one, A.swf, is actually a sort of "main menu": it grants access to all the other movies and it is also the point of return from them when a certain button is pressed.
         Important: All the movies are scripted in AS3, except for the last one which, for a number of reasons, is scripted in AS2.
         The return from any (but the last) movie to the first, say B.swf to A.swf, is implemented like this:
    function eventResponseSole(event:MouseEvent):void {
    var myLoader:Loader = new Loader();
    addChild(myLoader);
    var url:URLRequest = new URLRequest("A.swf");
    myLoader.load(url);
    sole_btn.addEventListener(MouseEvent.CLICK, eventResponseSole);
         This is, of course, AS3.
         The last movie, which is scripted in AS2, returns to A.swf like this:
    luna_btn.onRelease = function() {
    loadMovie("A.swf", _root);
         The strange behaviour is this: if I launch Z.swf and navigate with the proper button up to A.swf, everything works. But if I launch A.swf, navigate to Z.swf and attempt to return, this doesn't work. There are no problems, instead, moving up and down between movies scripted in AS3, that is with the first bit of code I've pasted. My guess is that the syntax in AS2 is correct, but something stops A.swf from "launching itself" when the control is transferred to Z.swf, but the movie is launched in the original window. Is this diagnosis reasonable? And if so, would someone kindly provide a way out of this? Re-doing Z.swf in AS3 is not an option, I'm afraid, it will have to stay as it is. I also have to add I've tried some solutions by setting _lockroot, but this doesn't seem to work.
         Many thanks in advance!
         Marco Olivotto

    Mixing AS2 into AS3 is not without stipulations... and I am no expert on translating those stipulations, but here is what the Flash documentation says regarding the matter... the third paragraph may be significant to your case:
    - ActionScript 3.0 code can load a SWF file written in ActionScript 1.0 or 2.0, but it cannot access the SWF file's variables and functions.
    - SWF files written in ActionScript 1.0 or 2.0 cannot load SWF files written in ActionScript 3.0. This means that SWF files authored in Flash 8 or Flex Builder 1.5 or earlier versions cannot load ActionScript 3.0 SWF files.
    The only exception to this rule is that an ActionScript 2.0 SWF file can replace itself with an ActionScript 3.0 SWF file, as long as the ActionScript 2.0 SWF file hasn't previously loaded anything into any of its levels. An ActionScript 2.0 SWF file can do this through a call to loadMovieNum(), passing a value of 0 to the level parameter.

  • Strange problem in loading swf created in Flash Builder 4 !

    Hi
    I am facing a strange issue in all my flash builder projects.
    Here is a sample flex 4 project: http://flashvisions.com/demos/flexdemo/
    you will see when it loads, it showes the first progressbar as grey and then the next one covering it as per flex4's new preloader mechanism. The example given above is a new flex project, without any code. It shows the first preloader then hangs on that for quiet some time  without any indication that anything is happening. Then it shows the second phaze of preloader after some time. This is happening to all my Flash builder projects.
    can some one suggest anything ? If possible watch this link to a medium bandwidth, not too high : http://flashvisions.com/demos/flexdemo/

    And this for 1.5:
    "In Flex or Flash, a loaded SWF takes on the FrameRate of the
    parent SWF. In flex you can set the framerate value for the main
    application with "framerate" attribute in the
    <mx:Application> tag."
    Tracy

  • FIM Load Balancing and SPN's - Strange behaviour

    I have a FIM setup in a domain
    I have mycorp.com and a domain in the same forest contractor.mycorp.com (fictional setup)
    I have 2 servers built in the contractors.mycorp.com domain
    Id1
    Id2
    Id1 has the Service and portal on wss3 in SharePoint farm mode, Sp central admin is on this as well
    Id2 has the service and is a load balanced SharePoint farm.
    I have NLB setup and working the service name is identity.mycorp.com pointing at the IP of the NLB
    I have a CNAME identity pointing at identity.mycorp.com
    Identity.mycorp.com is used as the name of the Service and the Portal.
    In the ApplicationHost.config I have
    <system.webServer>
       <security>
          <authentication>
             <windowsAuthentication enabled="true" useKernelMode="true"
    useAppPoolCredentials="true" />
          </authentication>
       </security>
    </system.webServer>
    I have kernel mode enabled, and I have Windows authentication enabled in the IIS console on id1 and id2.
    The app pool credentials are a domain account SPService for SharePoint Service, the app pool is set on both id1 and id2 servers. The root domain account mycorp\SPService us used.
    In
    c:\inetpub\wwwroot\wss\VirtualDirectories
    I have set
    <resourceManagementClient
    requireKerberos="true"
    I have registered the alternate URL mappings for SharePoint as
    Identity
    Identity.myCorp.com
    I have registered SPN's for
    Setspn –S FIMService/identity.myCorp.com myCorp\FIMService
    Setspn –S FIMService/identity  myCorp\FIMService
    Setspn –S HTTP/identity.myCorp.com myCorp\SPService
    Setspn –S HTTP/identity myCorp\SPService
    I have configured delegation for both accounts in ADUC for the identity.mycorp.com
    So all is well and I installed everything fine.
    Now my problem is that if I go to id1 and browse to http://identity/identitymanagement I get redirected , and authenticated with my admin account to
    http://id1/IdentityManagement/default.aspx
    On id1 if I go to http://identity.myCorp.com/identitymanagement I get prompted for credentials, when I enter myCorp\FIMAdmin and my password I get redirected to the portal at
    http://id1/IdentityManagement/default.aspx
    If I try and authenticate to any of the previous URL's from other machines in my domain, including the load balanced box id2 I get "HTTP Error 401. The requested resource requires user authentication."
    Even if I try and browse to
    http://id1/identitymanagement from another machine I am getting 401. Only on
    http://id1 am I getting a result, even if there is a prompt.
    I am sure my SPN's are fine, there are no duplicate SPN's , I checked with the -x switch
    So my load balanced portal and service are not working as I would have thought , I have looked at
    http://blogs.msdn.com/b/webtopics/archive/2009/01/19/service-principal-name-spn-checklist-for-kerberos-authentication-with-iis-7-0.aspx
    http://social.technet.microsoft.com/Forums/en-US/484faae8-4df6-4b81-8b2d-9d75d5258e4f/fim-portal-http-error-401-the-requested-resource-requires-user-authentication?forum=ilm2
    http://social.technet.microsoft.com/wiki/contents/articles/4473.fim-http-error-401-the-requested-resource-requires-user-authentication.aspx
    http://setspn.blogspot.ie/2010/06/kerberos-basic-troubleshooting-tip-3.html
    The only thing that I can think of is that the machine is in the contractors.myCorp.com domain which makes the machine  
    unique from where the SPN's are registered, but if that was the case then browsing to the portal from
    http://id1 would certainly fail.
    Can anyone see anything wrong with my approach ?
    Normally I find SharePoint a pain, but this week it seems to be this.
    When I ran the fim service install I specified identity.myCorp.com as the name of the server
    Rob

    In my Load Balanced setup it helped a lot (on some strange behaviours) when I set up Load Balancer to keep session on one server.
    Borys Majewski, Identity Management Solutions Architect (Blog: IDArchitect.NET)

  • Load-Balancers strange behaviour.

    Hi Gurus,
    I have a kind of a strange behaviour of our our CSS11150 Load-Balancers configured in Active-Standby mode.
    These LBs monitor the servers and the latters report UP and Down state from the Standby unit while they are always UP from teh Active unit.
    Did anyone see this behaviour before?
    Here is the sh version from both of them:
    ActiveLB# sh ver
    Version: ap0610203 (6.10 Build 203)
    Flash (Locked): 3.10 Build 26
    Flash (Operational): 6.10 Build 203
    Type: PRIMARY
    Licensed Cmd Set(s): Standard Feature Set
    Thank you in advance.
    P.S. It's worth mentioning that the servers weren't Down at the time when Standby unit reported Down state.

    This one looks like a bug to me. I would suggest that you upgrade the firmware on the CSS to the latest version. The version that you are running is far behind the present release. I am sure that the upgrade of the firmware should solve the issue.

  • Windows 8.1 Enterprise Evaluation- Strange behaviour of network adapter

    Hello there are discussions and questions around this community about network adapter dropping connection while system is running. But I have found unique problem with my network adapter driver.
    I have tried to state my problem as clearly as possible. Please ask if any detail is required.
    My network status shows no access on following occasions:
    1. On alternate system wakeups.
        eg:  
    a. System boots up 
    Internet accessible
    no problem
    b. I put system to sleep(first time) and wake it up
    No access to internet !!!
    When I check in network and sharing center not even adapter shows in disabled status.(See video from the link given below).
    c. Without restarting system or without installing network adapter again,  I put system to sleep again and wake it up (2nd time).
    Internet accessible
    d. I put system to sleep for (3rd time) and wakes it up.
    No access to internet!!
    If I put system to sleep again and wake it up definitly I get network access.
    2. If I switch off the modem before windows shutdown completely or in the process of shutdown, next time when I boot system, even though the modem is switched on before booting the system, No internet access tooltip will be shown on network
    sysbol.
    Another strange behaviour is on no internet access status, I start installing adapter, and it loads required files and prompt me to click "next" and "click" install.
    But the thing is before I go to "next" button, I will get network access as shown in this link
    http://youtu.be/sPlXVEiYBeo. Ignore virtualbox adapter. Same behaviour was there when there is no vbox adapter. Same was happening in Windows 8 Pro, but not in windows 7, so that there is no H/W problem I think. 
    Any idea on how to fix this or any alternate solution ? 

    Hi,
    Firstly, access your network adapter official website to get the proper driver applied to your system.
    Then going to Control Panel > Device Manager, right click your adapter > Properties. Under the Power Management tab, make sure "Allow the computer to turn off this device to save power" checkbox unchecked.
    If it still persists, try to disable "fast startup" as below steps:
    1.In Control Panel, open the Power Options item.
    2.Click the Choose what the power buttons do link.
    3.Clear the Turn on fast startup (recommended) check box.
    4.Click Save Settings.
    Karen Hu
    TechNet Community Support

  • Strange behaviour from new 2012R2 in old domain

    Hi all,
    At work (education level), I'm starting to take charge of windows admin, so beiing a noob admin I'm finding strange behaviours that I hope you can help me solve them all :-)
    We've one (big) domain with about 5000 computers (workers and students all together), and around 50000 users (again, workers and students all together) setup like this:
    DC-DOMAIN-1:
    Windows Server 2008R2
    Shares NETLOGON and SYSVOL
    DC-DOMAIN-2:
    Windows Server 2003 R2 x64
    Shares CertEnroll, NETLOGON, SMSLOGON, SYSVOL
    Checking RootDSE, I see 'domainControllerFunctionaly is Windows 2003' (DC-DOMAIN-2)
    So, with this setup, I've noticed these strange behaviours, hope list isn't too big  (guess there will be more behaviours but these seemed too odd):
    1) On DC-DOMAIN-2, WinServer 2003 eventlog, inside 'Directory Service', I found this warning event ID 1083 (Source NTDS Replication):
    Active Directory could not update the following object with changes received from the domain controller at the following network address because Active Directory was busy processing information.
    Object:CN=<an user name>, CN=Users, DC=DOMAIN
    Usually followed by an information event (eventid 1955) which says:
    ctive Directory encountered a write conflict when applying replicated changes to the following object.
    Object:
    <SAME USER OBJECT THAN PREVIOUS EVENT ID>
    Time in seconds:
    0
    Event log entries preceding this entry will indicate whether or not the update was accepted.
    A write conflict can be caused by simultaneous changes to the same object or simultaneous changes to other objects that have attributes referencing this object. This commonly occurs when the object represents a large group with many members, and the functional level of the forest is set to Windows 2000. This conflict triggered additional retries of the update. If the system appears slow, it could be because replication of these changes is occurring.
    User Action
    Use smaller groups for this operation or raise the functional level to Windows Server 2003.
    And having as result that user being blocked in domain.
    2) I've added a new print server based on Windows Server 2012R2 (running inside an updated ESX 5.5 with VMXNET3 ethernet adapter as recommended by vmware), and seen in the event viewer these warnings/errors:
    At System log:
    Error Event ID 5783, Source NETLOGON:
    The session setup to the Windows NT or Windows 2000 Domain Controller \\DC-DOMAIN-2.fulldns.name for the domain DOMAIN is not responsive. The current RPC call from Netlogon on \\PRINTSERVER to \\DC-DOMAIN-2.fulldns.name has been cancelled.
    I've seen Event ID 5783 with DC-DOMAIN-1 too....
    Error Event ID 5719, Source NETLOGON:
    This computer was not able to set up a secure session with a domain controller in domain DOMAIN due to the following:
    The remote procedure call failed and did not execute.
    This may lead to authentication problems. Make sure that
    this computer is connected to the network. If the problem persists, please contact your domain administrator.
    ADDITIONAL INFO:
    If this computer is a domain controller for the specified domain, it sets up the secure session to the primary domain controller emulator in the specified domain. Otherwise, this computer sets up the secure session to any domain controller in the specified domain.
    At Microsoft-Windows-TerminalServices-RemoteConnectinoManager/Admin found also this warning:
    Warning Event ID 20499 Source TerminalServices-RemoteConnectionManager:
    Remote Desktop Services has taken too long to load the user configuration from server \\DC-DOMAIN-2.fulldns.name for user administrator
    3) If I try Group Policy Modeling on DC-DOMAIN-1 (server 2008R2), everything works fine, no matter if I try it against DC-DOMAIN-1 or DC-DOMAIN-2, but if I try this from the Server 2012R2 (the one from point 2), I get this:
    Simulation against DC-DOMAIN-2: Gets executed, but all GPO show as inaccessible, empty or disabled.
    Simulation against DC-DOMAIN-1: Sometimes it gets executed as DC-DOMAIN-2, sometimes I get an error saying query can't be executed.
    4) From server 2012R2, I usually manage printing GPO. If I click on the domain root (GPMC, forest, Domains, DOMAIN-NAME-ROOT) right pane, I get a pop up saying: 
    'A processing error ocurred collecting data using this base domain controller. Please change the base domain controller and try again'
    After closing popup, right pane says something like 'DC-DOMAIN-2.fulldns.name' is the baseline domain controller for this domain.
    No infrastructure Status information exists for this domain.
    Click the Detect Now button below to gather infrastructure status from all of the domain controllers in this domain.
    Pressing 'Detect Now' does nothing, and trying to select New Baseline DC shows again same pop up than before.
    5) Last, but not least, I've feeling that GPO takes too much to apply. I've found scenarios in which even after executing 'gpupdate /force' correctly on client computer either local or domain admin, I can't see the new changes (gpresult says it has been
    updated though). But couldn't find anything on eventlog that informs about problems with GPOs...
    For all these strange behaviours I've noticed in last month that I started checking things as sys admin, I believe domain is damaged, or something is wrong there (not just my new server 2012R2, even if it's running inside an ESX, blehh), so please, any hint
    on what to check, what to change, what to fix, would be highly appreciated.
    Thanks in advance.

    Hi Paul,
    Honestly, I'm still trying to figure out all broken things reported by tests :( Guess Jesper's suggestion about adding a new 2008 DC to get rid of 2003 and start checking again after that may be best option.
    I'll try to summarize list of things I believe are wrong:
    running
    DCDIAG /V /C /D /E /s:yourdcname > c:\dcdiag.log  for every DC, shows different errors. They show things such as:
    another domain running here (not administered by us, only relationship is that our users are shared with that domain, nothing else) appear when Printing out pDsInfo (as if they were DC of our domain too, but they do not even share RootDomain). Guess it
    may be for a bug old sys admin had when clonning from his 2008R2 template, that forgot to change SID... I already noticed 1 year ago our print server shared SID with those DC, guess there may be more servers sharing SID too :-(
    Within Starting test: Replications, I see few messages at Replication Latency Check, such as the one for CN=Schema, CN=Configuration, DC=<ourdomain>: 
    Latency information for 35 entries in the vector were ignored.
                      35 were retired Invocations.  0 were either: read-only replicas and are not verifiably latent, or dc's no longer replicating this nc.  0 had no latency information (Win2K DC)
    On Services test, I see an 
       Invalid service type: RpcSs on DC-DOMAIN-3, current value
                WIN32_OWN_PROCESS, expected value WIN32_SHARE_PROCESS
    On SystemLog, I see LOTS of warnings/errors such as:
    A warning event occurred.  EventID: 0x80000002
                Time Generated: 07/28/2014   08:21:54
                (Event String (event log = System) could not be retrieved, error
                0x503)
             An error event occurred.  EventID: 0xC0000003
                Time Generated: 07/28/2014   08:22:18
                (Event String (event log = System) could not be retrieved, error
                0x3afc)
    Missing entries on DNS (we've a static DNS)
    netdiag.exe /v > c:\netdiag.log Showed again DNS problems such as our primary DNS pointing to all DC, secondary
    DNS pointing just to DC with FSMO roles,...
    repadmin.exe /showrepl * /verbose /all /intersite > c:\repl.txt  Gave no errors, now I must check in detail
    if every replica is correct
    And finally,
    dnslint /ad /s "ip address of your dc"  gave more DNS problems:
    One or more DNS servers may not be authoritative for the domain
    One or more DNS servers did not respond to UDP queries
    One or more zone files may have expired
    SOA record data was unavailable and/or missing on one or more DNS servers
    Sumarizing, guess it will be better to fix DNS problems, promote new 2008R2 DC to get rid of 2003 one, promote domain to 2008 too, check again for messages and relationship with other domain, and then come back here for support if needed 
    EDIT: Almost forgot to talk about SYSVOL folder. As said before, there are 426 GPO folders inside Policies. Of them, 375 have an inetres.adm files in it (smallest one 1398 KB, almost all of them 2307 or 2707 kb).... 

  • Strange behaviour with Safari.

    Very strange behaviour with Safari this morning.   Pages loading piecemeal or partially.   The content only becomes viewable after the cursor has passed over the area.   Have cleared caches and reported it but I'm wondering if this is a local matter here in the UK.   Anyone suffering similar problems?    Firefox is responding perfectly normally.

    I see a reply has come back via a previous post.   As I am trying to get a response to this one I shan't reply there but I should point out that for me, this is an isolated problem.   I do use open DNS but with no track history of problems there , I can't blame that.
    In the last few minutes normality has returned.

  • Strange behaviour of Removal of Alpha for Info object in Quality system

    Strange behaviour of Removal of Alpha for Info object in Quality system as compared to Development system.
    Hi,
    The data for an info object Key in the DSO was 00000000000000000000000000123. I removed Alpha for the info object and data was corrected to 123 in the DSO in development system.
    Now, when i transported the info object without alpha to quality and loaded data into DSO, the data is still the same with leading zeros.
    I dont want to write routine to remove leading zeros, as I have values as 0. If i write routine, all zeros will be removed and this will be blank.
    Both development and quality have same patches applied and are on same level.
    Why is this strange behaviour in quality system...
    Any inputs?? please suggest.
    Thanks.
    Lavanya

    Hi,
      Did you drop and reload the data after changing the conversion?
    Regards,
    Raghavendra.

  • Strange behaviour on text insert into a HTML pane

    Hi all,
    I am trying to fix a problem on inserting a span tag into an existing html page (in an EDITABLE JEditorPane).
    The behaviour:
    Assuming the cells in a table (3 rows, 2 columns) are numbered from 1 to 6, with cell one being the top left most, cell 2 top right, cell 3 middle left, etc.
    1. Inserting the text "<span></span>" in cell 4 causes during any attempt to later type into cell 5 the characters to be appended instead into cell 4, directly after the close span tag.
    2. The insertion in the first place behaves strange. If I have the caret positioned for cell 5 so that I can insert there
    (via the function void javax.swing.text.html.HTMLEditorKit.insertHTML(HTML Document doc, int offset, String html, int popDepth, int pushDepth, Tag insertTag) )
    even though the caret position is visible in cell 5, the insertion seems to take place in cell 4.
    I can sort of compensate for this by adding 1 to the offset. However, then when inserting into a line of text, for example, "the quick red fox jumped over the lazy dog"
    I insert directly before the 'j' in 'jumped', the insertion looks like this "the quick red fox j<span>..</span>umped over the lazy dog"
    So that is no solution.
    IMPORTANT! Just to prove it is not the span tag causing the trouble, if this span tag already exists in a cell on 'Load' of the html file, the strange behaviour is not observed.
    Something is going wrong here. It is me? Or is it a bug?
    Please help!!
    Here is a test app, and the test html you can use (place in current directory).
    Please test like this:
    1. run application (the html should be loaded into the pane)
    2. the span tag is programmed to automatically insert at cell 4 (by using the +1 method on the insert)
    3. another span tag was already existing in the html file, at cell 8
    4. Attempt to type into cell 5
    result: the text appears instead at cell 4
    5. Type into cell 9
    result: the text correctly is entered into cell 9
    See the difference!!
    Help!
    The test java app:
    package small.test;
    import java.awt.BorderLayout;
    import java.awt.Container;
    import java.io.File;
    import java.io.FileReader;
    import java.io.IOException;
    import java.io.StringReader;
    import javax.swing.JEditorPane;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.SwingUtilities;
    import javax.swing.text.JTextComponent;
    import javax.swing.text.html.HTML;
    import javax.swing.text.html.HTMLDocument;
    import javax.swing.text.html.HTMLEditorKit;
    import javax.swing.text.html.parser.ParserDelegator;
    public class HtmlInsertTest extends JEditorPane
         public HtmlInsertTest()
         public static void main(String args[])
              JFrame frame = new JFrame("Loading/Saving Example");
              Container content = frame.getContentPane();
              frame.setSize(600, 600);
              final HtmlInsertTest editorPane = new HtmlInsertTest();
              editorPane.setEditable(true);
              JScrollPane scrollPane = new JScrollPane(editorPane);
              content.add(scrollPane, BorderLayout.CENTER);
              editorPane.setEditorKit(new HTMLEditorKit());
              JPanel panel = new JPanel();
              content.add(panel, BorderLayout.SOUTH);
              frame.setSize(600, 600);
              doLoadCommand(editorPane);
              editorPane.insertHTML("<span>inserted text</span>", 84);
              frame.setVisible(true);
         public static String getHTML()
              return
              "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">"+
              "<HTML>"+     "<HEAD>"+
              "     <META HTTP-EQUIV=\"CONTENT-TYPE\" CONTENT=\"text/html; charset=utf-8\">"+
              "     <TITLE></TITLE>"+          
              "</HEAD>"+
              "<BODY LANG=\"en-AU\" DIR=\"LTR\">"+
              "<P STYLE=\"margin-bottom: 0cm\">This is a test xhtml document. "+
         "     </P>"+
         "     <P STYLE=\"margin-bottom: 0cm\">"+
         "     </P>"+
         "     <P STYLE=\"margin-bottom: 0cm\">Here is a table:</P>"+
         "     <P STYLE=\"margin-bottom: 0cm\">"+
         "     </P>"+
         "     <p></p>"+
               "     <TABLE WIDTH=100% BORDER=1 BORDERCOLOR=\"#000000\" CELLPADDING=4 CELLSPACING=0>"+
         "          <TR VALIGN=TOP>"+
         "               <TD WIDTH=50%>"+
         "                    <P>It has</P>"+
         "               </TD>"+
         "               <TD WIDTH=50%>"+
         "                    <P>2 columns</P>"+
         "               </TD>"+
         "          </TR>"+
         "          <TR VALIGN=TOP>"+
         "               <TD WIDTH=50%><P>And 4 rows</P></TD>"+
         "               <TD WIDTH=50%><P></P></TD>"+
         "          </TR>"+
         "          <TR VALIGN=TOP>"+
         "               <TD WIDTH=50%><P></P></TD>"+
         "               <TD WIDTH=50%><P></P></TD>"+
         "          </TR>"+
         "          <TR VALIGN=TOP>"+
         "               <TD WIDTH=50%><P></P></TD>"+
         "               <TD WIDTH=50%><P><span>existing text</span></P></TD>"+
         "          </TR>"+
         "          <TR VALIGN=TOP>"+
         "               <TD WIDTH=50%><P></P></TD>"+
         "               <TD WIDTH=50%><P></P></TD>"+
         "          </TR>"+
         "     </TABLE>"+
         "     <P STYLE=\"margin-bottom: 0cm\">"+
         "     </P>"+
         "     <P STYLE=\"margin-bottom: 0cm\">"+
         "     </P>"+
         "     <P STYLE=\"margin-bottom: 0cm\">"+
         "     </P>"+
         "     <P STYLE=\"margin-bottom: 0cm\">We will test the drag and drop"+
         "     functionality with this document. "+
         "     </P>"+
         "     <P STYLE=\"margin-bottom: 0cm\">It will be loaded with the hlml editor.</P>"+
         "     <P STYLE=\"margin-bottom: 0cm\">"+
         "     </P>"+
         "     <P STYLE=\"margin-bottom: 0cm\">"+
         "     </P>"+
         "     </BODY>"+
         "     </HTML>";
         public static void doLoadCommand(JTextComponent textComponent)
              StringReader reader = null;
              try
                   System.out.println("Loading");
                   reader = new StringReader(getHTML());
                   // Create empty HTMLDocument to read into
                   HTMLEditorKit htmlKit = new HTMLEditorKit();
                   HTMLDocument htmlDoc = (HTMLDocument)htmlKit.createDefaultDocument();
                   // Create parser (javax.swing.text.html.parser.ParserDelegator)
                   HTMLEditorKit.Parser parser = new ParserDelegator();
                   // Get parser callback from document
                   HTMLEditorKit.ParserCallback callback = htmlDoc.getReader(0);
                   // Load it (true means to ignore character set)
                   parser.parse(reader, callback, true);
                   // Replace document
                   textComponent.setDocument(htmlDoc);
                   System.out.println("Loaded");
              catch (Exception exception)
                   System.out.println("Load oops");
                   exception.printStackTrace();
              finally
                   if (reader != null)
                        reader.close();
         public void insertHTML(String text, int offset)
              SwingUtilities.invokeLater(new insertAction(this, text, offset));
         class insertAction implements Runnable
              String text = "";
              int offset = 0;
              JEditorPane jEditorPane1 = null;
              public insertAction(JEditorPane _jEditorPane1, String _text, int _offset)
                   jEditorPane1 = _jEditorPane1;
                   text = _text;
                   offset = _offset;
              @Override
              public void run()
                   HTMLDocument doc = (HTMLDocument)jEditorPane1.getDocument();
                   HTMLEditorKit kit = (HTMLEditorKit)jEditorPane1.getEditorKit();
                   try
                        System.out.println("reading from string reader");
                        kit.insertHTML(     doc,
                                          offset,//+1
                                          text,
                                          0,//0
                                          0,//0
                                          HTML.Tag.SPAN);
                        System.out.println(jEditorPane1.getText());
                   catch (Exception e)
                        System.out.println("error inserting html: " + e);
    }Edited by: svaens on Jul 16, 2009 6:34 PM
    fix another stuffed up attempt at a SSCCE.

    Well, I know nothing about HTML in JEditorPanes. I have never been able to figure out how insertions work.
    My comment was a warning to others. Some people (like me) avoid answering posting of this type for reasons given in the JavaRanch link. Others will answer anyway. Other might first check the other site to see if they are wasting there time, but they can only do that if a link was posted with the original question.
    The only suggestion I have is to repost the question, (since this posting is now completely off topic) making sure to then respond to this posting stating that a fresh question has been asked so you don't get a discussion going on in two places.

  • Strange behaviour or not?

    Hi all...I'm new in this forum and I have a question to you. I think my curiosity is about the compiler, so I post here.
    I use Java SE 1.5 and 1.6. If I write a simple class like the following
    public class Prova{
    public static void main(String[] args){
    Integer a1=128;
    Integer a2=128;
    /*1*/System.out.println(a1==a2);
    /*2*/System.out.println(a1);
    /*3*/System.out.println(a2);
    I get the following strange result
    /*1*/ prints true if a1 and a2 are both inizialized between -128 and 127 (exactly 256 values, the ones obtainable from a byte) and false for values less then -128 or bigger then 127...
    Is this a strange behaviour or not? Why do I obtain such results?
    please note that /*2*/ and /*3*/ ALWAYS print the declared values (in this case 128).
    thank you!

    Shadow-DK wrote:
    From version 1.5 that declaration began correct and the result was similar to Integer i = new Integer(100);
    No that wouldn't permit caching. Its like Integer i = Integer.valueOf(100);The caching MUST occur for values -128 thru 127, it may occur for other values. I would not rely on caching not occurring outside that range.
    See [the language spec section on boxing conversion|http://java.sun.com/docs/books/jls/third_edition/html/conversions.html#5.1.7]
    If you aren't sure what the compiler is doing, it can be informative to use the javap command with the -c option to view the classfile.
    Usage: javap <options> <classes>...
    where options include:
       -c                        Disassemble the code
       -classpath <pathlist>     Specify where to find user class files
       -extdirs <dirs>           Override location of installed extensions
       -help                     Print this usage message
       -J<flag>                  Pass <flag> directly to the runtime system
       -l                        Print line number and local variable tables
       -public                   Show only public classes and members
       -protected                Show protected/public classes and members
       -package                  Show package/protected/public classes
                                 and members (default)
       -private                  Show all classes and members
       -s                        Print internal type signatures
       -bootclasspath <pathlist> Override location of class files loaded
                                 by the bootstrap class loader
       -verbose                  Print stack size, number of locals and args for met
                                 If verifying, print reasons for failureBruce

  • Strange behaviour in web cartographic application

    Hi group,
    I have noticed a strange behaviour with the overview tool of my web application with MapInfo data uploaded in Oracle 10g with EasyLoader. When I put the cursor near the limit of some polygons but outside of its surface, the overview tool shows the info of this polygon when it should show the info of the neighbor polygon. It's like if the boundary of the polygon is outside of its limit but visually the borders are looking good.
    After many tests, I think the problem may be related with the tolerance precision and the table bounds in sdo_metadata. The table is in lat/long (8307) and the tolerance setted by Easyloader is X: 7.9013E-6 and Y:1.01201E-5
    In MapInfo I gave this bounds to the table: min x: -82.0483359 min y: 43.2322719 max x: -54.6521931 max y: 64.3415211 but when loaded in Oracle the bounds are automatically set to -180/180 and -90/90
    I tried to change the tolerance and the bounds in Oracle and create a new spatial index without success. Changing the bounds in MapInfo prior uploading to Oracle was unsuccessfull as well.
    Anything else could be tryed?
    Thank you
    Maxime D.

    Maxime,
    Didn't you contact me privately about something like this? No matter.
    the tolerance setted by Easyloader is X: 7.9013E-6 and Y:1.01201E-5These tolerances are not what Oracle says should be set for geodetic (8307) data. From the documentation...
    The tolerance value for geodetic data should not be smaller than 0.05 (5 centimeters)You can do one of two things:
    1. If you have SQL Developer, install GeoRaptor and then right mouse click on the table in the connect pane and select Metadata Manager. Then calculate XY values and if GeoRaptor doesn't set the tolerances to 0.05 do it manually. Then press Update.
    2. Using SQLPlus or SQL Developer's SQL Worksheet, do this:
    update user_sdo_geom_metadata
    set diminfo = SDO_DIM_ARRAY(SDO_DIM_ELEMENT(-82.0483359,-54.6521931,0.05),
                                SDO_DIM_ELEMENT(43.2322719,64.3415211,0.05)),
           SRID = 8307
    where table_name = YOUR TABLE
      and column_name = YOUR SDO_GEOMETRY COLUMN NAME;
    commit;NOTE: It is OK to have ordinate ranges different from -180..180, -90..90.
    Drop your index and rebuild.
    Should now be OK.
    If it starts to misbehave again (and the metadata has been changed) then all one could say is that perhaps the MapInfo software is modifying the metadata some how. Perhaps this is related to the MAPINFO_MAPCATALOG?
    Any MapInfo gurus know?
    regards
    Simon

  • As 3 load swf flie problem,help

    I have now trapped by a strange problem of loading the swf
    file.For some reason I need to use a main swf file to load other
    swf file and use the class in it,it's very common.
    And now I worte a class blow to explain what problem I met:
    package
    import flash.display.*;
    import flash.events.*;
    import flash.geom.*;
    public class TestClass extends MovieClip
    public var sp:Sprite;
    public static var count:Array=new Array();
    public function TestClass()
    sp = new Sprite();
    //drawcrr();
    this.addEventListener("test",test);
    count.push("");
    trace("count in circle is:", count.length);
    private function test(e:Event):void
    drawcrr();
    public function drawcrr():void
    sp.graphics.beginFill(0);
    sp.graphics.drawCircle(0,0,10);
    sp.graphics.endFill();
    addChild(sp);
    Save it as TestClass.as for next use;
    Use the class to link to a fla file as the documentClass then
    compile as a swf file name as
    kk.swf then make a copy name kk1.swf;
    Create a new fla file in the same directory then write the
    code blow on the mainTimeLine :
    var kk:TestClass = new TestClass();
    var URL1:URLRequest = new URLRequest("kk1.swf");
    var URL2:URLRequest = new URLRequest("kk.swf");
    function domain():LoaderContext
    var context:LoaderContext = new LoaderContext();
    context.applicationDomain = new
    ApplicationDomain(ApplicationDomain.currentDomain);
    return context;
    var L1:Loader = new Loader();
    L1.contentLoaderInfo.addEventListener(Event.COMPLETE,onComplete);
    L1.load(URL1);
    var L2:Loader = new Loader();
    L2.contentLoaderInfo.addEventListener(Event.COMPLETE,onComplete);
    L2.load(URL2);
    //v.text = flash.system.Capabilities.version;
    function onComplete(e:Event)
    trace(e.target)
    then compile this fla file you will find the flash will put
    out below:
    count in circle is: 1
    count in circle is: 2
    count in circle is: 3
    [object LoaderInfo]
    [object LoaderInfo]
    and if you notation the line "var kk:TestClass = new
    TestClass();" compile it again
    the flash will output :
    count in circle is: 1
    count in circle is: 1
    [object LoaderInfo]
    [object LoaderInfo]
    It's prove that the same class in the different swf was
    loaded by a main swf file,the same class in the different swf file
    will be treated as the different class so that I can use them
    individually but when I put the code:"var kk:TestClass = new
    TestClass();" in the main swf file all this will be break down,I
    can't use the class in kk.swf and class in kk1.swf individually
    the flash make then as the same class because the static
    variable "count" was count to 3.
    it prove that all those 3 swf file will use the exactly same
    class;So, that's the problem,it will make my programme cause error.
    Can some one kindly to tell me why this happened?And how can
    I solve this problem.

    Sorry about that.
    That problem is:
    If I use a shell swf to load some swf file and the shell swf
    and the loaded swf file have the same name class,The loaded swf's
    class will be ignored.
    That will make me can't use the loaded swf file's class which
    have same name with the shell swf.
    However, this problem can be solved by useing the application
    domain.Just give the swf you loaded a new application domain in the
    shell swf.
    But after that I found a new problem appear in front of mine,
    that is:
    If I use the different application domain in my shell swf how
    could they communicate with each other?
    For example:
    If my shell swf have a class named TEST,and the loaded swf
    also have the same name class those two classes both extends the
    class named TESTParent and the TESTParent have a public static
    variable to count the instance of the class.If I want use those two
    TEST
    class individually and at the same time made the static
    variable in the TESTParent count work as a same class how can I do?

  • Strange behaviour concerning JSF phases

    Hi all,
    I have a JSF page that displays two custom JSF tables, ‘A’ and ‘B’ with his correspondent’s pagers.
    <mycustom:table id="A" ... pager="#{tableA.pager}">
    <mycustom:table id="B" ... pager="#{tableB.pager}">I experiment a strange behaviour when I hit ‘tableA.next’ link.
    This is the flow (summarized):
    First-Page-Load (START)
    encodeA
    encodeB
    First-Page-Load (END)
    <User hits TableA.nextPage pager link>
    decodeA
         pagerA.setNext(true)
    decodeB
    encodeA
         pagerA.getNext() returns ‘false’ ¿? (here is the problem! should return ‘true’)
    encodeB
         pagerB.getNext() returns ‘true’ ¿? (should return ‘false’)Any help will be appreciated...

    Self-solved:
    Inside the ‘decode’ method I must get the ‘pager’:
    pager = getPager(table); //This line is essential!!
    String pLink = (String)requestMap.get("pLink" + clientId);
    if ((pLink != null) && (!pLink.equals(""))) {
         if (pLink.equals("next")) { //Siguientes                                         
              pager.setNext(true);
         } else if (pLink.equals("previous")) { //Anteriores
              pager.setPrevious(true);
    }

  • Tween Max AS3 Not Working on Root of loaded SWF

         I have a project where I'm loading a SWF into another Shell SWF and I've run into a strange bug.  Tween Max works in the compiled clip everywhere, but on the root of the loaded SWF.  It's not erroring out, it's just not tweening anything?
    Here's the code for the loader in the Shell...
    stop();
    //Import the required assets
    import flash.display.*;
    //Stop the playhead while loading occurs
    var ldr:Loader = new Loader();
    var url:String = "12com2682-value.swf";
    var urlReq:URLRequest = new URLRequest(url);
    ldr.load(urlReq);
    //Create a listener to call the loading function as the movie loads
    ldr.contentLoaderInfo.addEventListener (ProgressEvent.PROGRESS, PL_LOADING2);
    function PL_LOADING2(event:ProgressEvent):void {
    loader_txt.visible = true;
    var pcent:Number=event.bytesLoaded/event.bytesTotal*100;
    //Display the % loaded in textfield
    loader_txt.text="loading:"+int(pcent)+"%";
    //If the movie is fully loaded, kick to the next frame on the main timeline
    //You may wish to change the gotoAndStop(2) to a gotoAndPlay(2)
    if(pcent==100){
              mc_loadscene.addChild(ldr);
              loader_txt.visible = false;
    this.loaderInfo.removeEventListener (ProgressEvent.PROGRESS, PL_LOADING);
    then in the loaded SWF, I have:
    stop();
    import com.greensock.TweenMax;
    import com.greensock.plugins.*;
    TweenPlugin.activate([AutoAlphaPlugin]);
    import fl.transitions.easing.*;
    //////mc_host is a movieclip holding a video
    TweenMax.to(mc_host, 1, {scaleY:1, scaleX:1, delay: 2.5, ease:Back.easeOut });
    //////mc_sidert is another movieclip
    TweenMax.from(mc_sidert, 2, {y:"-600"});
    Anybody else running into this error? 

    you must be doing something wrong because that code works as expected for me:  http://www.kglad.com/Files/forums/test2.html and http://www.kglad.com/Files/forums/test2.fla
    p.s. please mark helpful/correct responses.

Maybe you are looking for

  • Customer not determine in sales order

    Hi all, While i'm creating sales order,i'm getting error like "no customer exit for sold to party 7000000" . Please sort out my problem as soon as possible. I have checked entire partner determination procedure. There all setting is fine. Thanks & re

  • Hi, my phone is stuck "searching..." I deleted all content and date and now it won't activate again, please help?

    Title explains it all, please help My bill is paid I noticed this when I couldnt make calls. When I clicked the call button it did nothing.

  • Why does Garageband keep crashing?

    Hi, I know many people have posted this problem in the past. I looked through the topics, but none of the answers seem to help me. I repaired permissions and deleted the preference files. But still... every time I open Garageband it initializes, take

  • QuickTime/After Effects redner problem

    This is a strange one. When batch rendering from After Effects CS3 to .mov format, some random files will have an upper case file extension, and the rest lower case. Our automated QA process will only deal with lower case extensions, so this is a pro

  • Device not listed

    I'm not seeing my device in itunes...i've uninstalled all apple sw three times now, rebooted, ran crap cleaner, fixed registry and resinstalled all without success.  i suspect this is a microsoft compatibility issue, but not sure.  any solutions that