Controlling swfs from other swfs.

hi there. the site i've designed has a background layer, a
navigation panel layer(menu) and the content is loaded as separate
swf files on levels behind the navigation panel. to allow for
seamless unload of the content i want to control the transition
from the navigation panel layer.
eg. When the user clicks on "Story" button, the navi panel
layer communicates with the content layer (eg. Welcome page), tells
it to play from frames 50-60 and then unload. After this, the
desired content layer (in this case "Story") is loaded into, say
layer 5.
how do i go about coding this in actionscript? i'm slightly
bamboozled by the actual script for it and i'd really appreciate
some direction.

If you load your movieClips into levels, you simply use those
levels to direct them, e.g. _level5.gotoAndPlay(50)
You can't tell a movieClip to play from frame 50 to 60 and
then stop. I mean you could, but judging from the question you ask
I guess you don't want to get into so much complexity.
You tell the clip to play, and the clip should know itself
when to stop. If you want to be a bit more flexible, you can set a
variable in the clip and check it at certain keyframes via
actionscript:
in the controlling clip:
_level5.stopFrame = 60;
_level5.gotoAndPlay(50);
And in the controlled clip in possible stop frames:
if(stopFrame == _currentframe) { stop(); }
You could enable this for every frame via an onEnterFrame
event handler.
Of course you need to tell the controlling clip to continue
in some way, e.g. by sending it to another frame....
This of course is very linear and old style programming, not
object oriented.
It would be better not to load into levels, but into named
movieClips at certain depths. This allows you to use the
movieClipLoader class, and program all that event-driven.

Similar Messages

  • Using archivelog and control file from other Oracle server

    I am still bothered with my backup process.
    I have 2 AIX boxes (same model, say A and B); both have BAAN 5 and Oracle 10g R2 on. Right now my colleague insists to use the export pump (cold backup) from Prod Oracle server (A) to restore the Oracle server on Box B. The Prod server has the archivelog mode turn on. But it will miss any transaction data from import pump till the crash point of Box A. So this is my confusion.
    Can I pass the control files and archivelog files form Box A (prod server) to Box B and use them to restore the Box B as the latest Prod server? How?
    I tried to convince them to use the RMAN backup? But not successful?
    I think the best way is probably to use the Oracle Data guard. However, there is always one concern to my manager and colleague, that such process will cause the data on the restored server (failover, Box B) not recognizable by the BAAN, which define the objects (tables).
    Thanks

    Performing a logical backup is not useful to restore to the point of failure. The only valid and available option is a hot backup/archivelog mode. Your recovery manager backup perform a controlfile and redologfile backup, so those can be restored at the destination. You must take care of the way you perform the backup, and ensure the paths where your backup is being deposited are visible by the second node. A shared storage with same mount points is suitable in this case. A tape robot configured at both nodes is also a suitable solution.
    Recovery manager perfoms a controlfile and spfile restore, too. This rman command perform the action:
    SET DBID <DBID of the database,for which you want to restore the controlfile>;
    RESTORE CONTROLFILE FROM <name_of_backupiece_which_contains_the_controlfile backup>';
    I don't see any problem on the recovery manager side, and technically speaking, on the Oracle side it is perfectly possible to restore your database at a remote location. I don't know what happens on the BAAN side, if you are required to have it configured to be operative on the target node. You could try to clone your database at the node B, configure BAAN and prepare the proceduere in case of failure.
    Configuring a dataguard is also a recomended action. So it is to think about Cold Failed Over clusters. I have recently performed a CFC configuration with BAAN. No problem it works smoothly.
    ~ Madrid.

  • Is it possible to control itunes dj from other computers on the same network?

    is it possible to control itunes dj from other computers on the same network?  we have a computer running itunes connected to our speakers here at work, and we'd like to be able to control it through the other comptuers on the network.  is this possible, or do you have to use iphones/ipads/etc?

    AC is corret you can do that.  It might work a bit better for you if you use a wired connection vs a wireless one for the ATV's.

  • Is following message due to 'Java' setting left unchecked? Mac OSX supportsUser Authentication Mechanism (UAM) plug - ins from other manufacturers to control access to servers.To use a UAM, copy the plug - in to: Library/ Filesystems/ AppleShare/ Authenti

    Is following message due to 'Java' setting left unchecked?
    Mac OSX supportsUser Authentication Mechanism (UAM) plug - ins from other manufacturers to control access to servers.To use a UAM, copy the plug - in to: Library/ Filesystems/ AppleShare/ Authenti

    Man that is an ancient message.
    The last time I saw that was using Mac clients connected to a Microsoft (Windows) Server running 'Services for Macintosh' which included the ability to act as an AppleShare compatible file server. Because Microsoft have a different security system for defining accounts which includes the 'domain' as well as username, the standard Mac AFP client did not know how to send that information.
    Therefore Apple made it possible to installed a plugin in the form of a UAM or User Authentication Mechanism which added the ability to send this information to login to the fileserver.
    See http://support.microsoft.com/kb/101747
    However Microsoft have long discontinued 'Services for Macintosh' and now the only way for a Mac to connect to a standard Windows Server is via SMB not AFP. I don't believe this plugin is available to download anymore.

  • Firefox 3.6 doesn't open links clicked from other programs (IM, etc.,)

    Whenever I try to open a link from either my IM or an IRC program like mIRC it won't open in firefox. I have to copy and paste the link.

    I now have FireFox 32.0.2 no joy. I have loaded ThunderBrowse which took care of Thunderbird but still can't load links from other programs. I fixed this before (other backups, I crashed my windows C drive and have been trying to restore), but can't remember how. I think it required reloading IE (I had deleted IE on my latest restore), but I have now done that with no joy.
    When I click on a link from another program, nothing happens, and when I right click and am offered "open in browser" nothing happens, and when offered " copy browser link" it doesn't copy.
    I tried resetting FireFox, no joy.
    Noticed control panel "set program access" doesn't hold, always goes back to custom, and defaults to "uses default browser"!
    Please help!

  • Links from other programs won't open in Firefox

    This has been asked a number of times before, but none of the answers worked for me. I have Firefox 26.0 (the most stable for me) and Thunderbird 24.6.0. After a computer crash and reloading both programs, I first noticed the problem with links from Thunderbird, both clicking and right clicking with "open in browser". But then I remembered trying to open help in MS word and Frontpage which are supposed to open from the internet.
    I have checked that Firefox is the default browser, changed the file (none) file transfer protocol, then deleted it, etc. Nothing helps.

    I now have FireFox 32.0.2 no joy. I have loaded ThunderBrowse which took care of Thunderbird but still can't load links from other programs. I fixed this before (other backups, I crashed my windows C drive and have been trying to restore), but can't remember how. I think it required reloading IE (I had deleted IE on my latest restore), but I have now done that with no joy.
    When I click on a link from another program, nothing happens, and when I right click and am offered "open in browser" nothing happens, and when offered " copy browser link" it doesn't copy.
    I tried resetting FireFox, no joy.
    Noticed control panel "set program access" doesn't hold, always goes back to custom, and defaults to "uses default browser"!
    Please help!

  • Unable to open 10g Database Control Webpage from another computer

    Unable to open 10g Database Control Webpage from another computer
    Hi Gurus
    I have just installed Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 on my PC Windows XP , created database and configured DB control
    I can open Database Control Webpage on the database machine by typing
    http://USI2374993VND0.vlgdw2k.visteon.com:1158/em
    or
    http://136.18.70.189:1158/em
    But can not open it from another PC
    When I do following from another PC
    1. http://USI2374993VND0.vlgdw2k.visteon.com:1158/em
    Get error: [code=DNS_NO_DATA] The IP address was not found during the DNS lookup. Contact your system administrator.
    2. http://136.18.70.189:1158/em
    Get error:Can not display web page
    I can ping 136.18.70.189 but not USI2374993VND0.vlgdw2k.visteon.com
    On the other PC I also tried adding 136.18.70.189 to
    tools - internet options - security - local internet - sites - advanced - add this web
    site to the zone as http://136.18.70.189
    But it did not work
    Please help with any ideas
    Thanks a bunch
    New DBA

    Firewalls?
    DNS translation issues?

  • How can i use labview.tl​b to control Labview from an external applicatio​n?

    Hi,
    I've been told by a labview engineer that i could use the file
    labview.tlb located in the labview install folder to control labview
    from an external application (in my case, a C# app). I'm using Labview
    6.1 under Windows 2000. This article confirms that:
    "ActiveX and LabVIEW"
    http://zone.ni.com/devzone/conceptd.nsf/webmain/54​01BE584FBAEECE862567C2006D36C7?opendocument
    But i've not been able to find out how to use this file to achieve
    what i want. I just want to be able to open/close labview, open/close
    a vi, start/stop a vi, hide/show a vi from a C# application. The above
    web page talks about activex but i really don't see the realtion
    between activex and that labview.tlb file.
    Is there so
    mebody around who knows how to use that file? Why does NI
    tell us that it's possible to do what i want to do but doesn't explain
    how (or hides this info very well)?
    Thanks

    Hi,
    > Hi I am fighting a similar problem and so far I found this: Calling
    > LabVIEW from C++ Using ActiveX
    >
    > http://sine.ni.com/apps/we/niepd_web_display.DISPL​AY_EPD4?>p_guid=B45EACE3E21356A4E034080020E74861&p​_node=DZ52051&p_submitted=N&p_rank=&p>_answer=&p_s​ource=External
    Thanks for the link, i actually already found this link before. I've
    found yesterday how to use Labview.tlb, just add it to the references
    of the project, it was probably too easy for me at that time:-) But
    now, i'm still stuck as there is no doc about using the interfaces and
    classes of this activex to control labview.
    The example given on your link is made is C++ and for some reasons,
    the wrapper generated for Labview.tlb when i added it to my c# project
    doesn't seem to expose the same
    interfaces and classes as the one used
    in the C++ example. I therefore can't use the C++ example in C#.
    I've tried to do something like:
    LabVIEW.ApplicationClass a = new LabVIEW.ApplicationClass();
    Just this line causes labview to launch but then immediately throws an
    exception: "Query interface for interface LabVIEW._IApplication
    failed".
    Does somebody knows how to use that control in C#/VB.NET ?

  • I can't connect to Wi-Fi - keeps timing out. No problem connecting from other laptops / phones. Stopped working after I did a system upgrade. What can I do?

    I can't connect to Wi-Fi - keeps timing out. No problem connecting from other laptops / phones. Stopped working after I did a system upgrade. What can I do? I am on OS X Yosemite.

    Take each of the following steps that you haven't already tried, until the problem is resolved. Some of these steps are only possible if you have control over the wireless router.
    Step 1
    Turn Wi-Fi off and back on.
    Step 2
    Restart the router and the computer. Many problems are solved that way.
    Step 3
    Change the name of the wireless network, if applicable, to eliminate any characters other than letters and digits. You do that on your router via its web page, if it's not an Apple device, or via AirPort Utility, if it is an Apple device.
    Step 4
    Run the Network Diagnostics assistant.
    Step 5
    In OS X 10.8.4 or later, run Wireless Diagnostics and fix the issues listed in the Summary, if any.
    Step 6
    Back up all data before proceeding.
    Launch the Keychain Access application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    Enter the name of your wireless network in the search box. You should have one or more "AirPort network password" items with that name. Make a note of the name and password, then delete all the items. Quit Keychain Access. Turn Wi-Fi off and then back on. Reconnect to the network.
    Step 7
    You may need to change other settings on the router. See the guidelines linked below:
    Recommended settings for Wi-Fi routers and access points
    Potential sources of interference
    Step 8
    Make a note of all your settings for Wi-Fi in the Network preference pane, then delete the connection from the connection list and recreate it with the same settings. You do this by clicking the plus-sign icon below the connection list, and selecting Wi-Fi as the interface in the sheet that opens. Select Join other network from the Network Name menu, then select your network. Enter the password when prompted and save it in the keychain.
    Step 9
    Reset the System Management Controller (SMC).

  • I have an Imac in my bedroom and apple tv hooked to my big screen in my living room. When I select mirror Imac on the Imac to view on the big screen in living room, can I get a wireless keyboard and track pad to control Imac from living room?

    I have an Imac in my bedroom and apple tv hooked to my big screen in my living room. When I select mirror Imac on the Imac to view on the big screen in living room, can I get a wireless keyboard and track pad to control Imac from living room?

    I do something like that, and can confirm 20 feet won't be a problem. More than 30 or so might be.

  • Changing controlling area from single company code to cross company code

    Hi,
    Due to my client requirement, in the middle of the year, we need to change the controlling area from being same as company code to cross company code controlling area. Although the currency is same. We are going to create a new company code. Is the changing controlling area settings possible to do? what are the precautions and changes need to be taken?
    One more question, we need to change the company code when the new company code is created in the system in Cost Center Masters in the middle of the year. Is this possible after changing controlling area from single company code to cross company code. Right now company code is not appearing in the cost center master.
    Thanks & Regards,
    Saidarao

    Hi,
          If both companies having transaction data its not possible,Normally before defining Organisational Strucutre only we have to deside both companies is assigning same controlling are or have to maitain separately for this we have to compare the Fiscal year,Operating chart of accounts ,if both having same then we will assign both the company codes to one controlling area if these two companies having different currencies also its not a problem.When we creating Controlling Area we have to choose option of controlling area as same company code (if one company code one controlling Area) for example if you assigning two companies then we have to use cross company code cost accounting.If u need any further information let me know.
    Regards,
    Satya

  • Problem with controlling Annotations from Excel VBA

    Hi,
    I have a PDF document that has plenty of sticky notes attached to it. These sticky notes have been added by multiple authors on all pages of the document. I am trying to import the contents of these sticky notes, their author and the page number to an excel spreadsheet.  I am using Excel 2007 and Acrobat Professional 9.0.
    This is the code that I am currently using to import the sticky notes, but the problem that I am facing is that when I run the macro -
    Same sticky note contents, author and page numbers are imported multiple times
    Not all sticky notes are imported, only some of them appear in the final excel spreadsheet
    When I compare the number of sticky notes to that in the original PDF file, the number is correct. But the content is repeated content and that is the reason why only some of the sticky notes are imported.
    This is an activity that I need to do on regular basis and the number of sticky notes that I need to import to excel may range between 100 to 200. It is really difficult to do this task manually, so an excel VBA macro could prove really helpful.
    Sub ImportComments_Click()
    Dim Fpath As String
    Dim WordObj As Object
    Dim wbkOutput As Excel.Workbook
    Dim iRow As Integer
    Dim i, j, k As Integer
    Dim lRet As Long
    Dim objAcroAVDoc As New Acrobat.acroAVDoc
    Dim objAcroPDDoc As Acrobat.AcroPDDoc
    Dim numPages As Long
    Dim lAnnotscnt As Long
    Dim Subtype As String
    Dim NumComments As Long
    Dim AcroApp As Acrobat.AcroApp
    Dim objAcroPDPage As Acrobat.AcroPDPage
    Dim annot As Acrobat.AcroPDAnnot
    Sheets("Defect Log").Select
    Range("L3").Activate
    Fpath = ActiveCell.Value
    Sheets("Defect Log").Select
    Range("A1").Activate
    i = 0
    Do While (Not (IsEmpty(ActiveCell.Value)) Or Not (IsEmpty(ActiveCell.Offset(0, 1).Value)) Or Not (IsEmpty(ActiveCell.Offset(0, 2).Value)) Or Not (IsEmpty(ActiveCell.Offset(0, 3).Value)) Or Not (IsEmpty(ActiveCell.Offset(0, 4).Value)) Or Not (IsEmpty(ActiveCell.Offset(0, 5).Value)) Or Not (IsEmpty(ActiveCell.Offset(0, 6).Value)) Or Not (IsEmpty(ActiveCell.Offset(0, 7).Value)) Or Not (IsEmpty(ActiveCell.Offset(0, 8).Value)) Or Not (IsEmpty(ActiveCell.Offset(0, 9).Value)) Or Not (IsEmpty(ActiveCell.Offset(0, 10).Value)) Or Not (IsEmpty(ActiveCell.Offset(0, 11).Value)) Or Not (IsEmpty(ActiveCell.Offset(0, 12).Value)) Or Not (IsEmpty(ActiveCell.Offset(0, 13).Value)) Or Not (IsEmpty(ActiveCell.Offset(0, 14).Value)))
    i = i + 1
    ActiveCell.Offset(1, 0).Select
    Loop
    iRow = i + 1
    Set wbkOutput = ActiveWorkbook
    lRet = objAcroAVDoc.Open(Fpath, "")
    Set objAcroPDDoc = objAcroAVDoc.GetPDDoc
    numPages = objAcroPDDoc.GetNumPages()
    Set objAcroPDPage = objAcroPDDoc.AcquirePage(0)
    For k = 1 To numPages
    lAnnotscnt = objAcroPDPage.GetNumAnnots()
    For m = 0 To lAnnotscnt - 1
    If lAnnotscnt = 0 Then Exit For
    Set objAcroPDAnnot = objAcroPDPage.GetAnnot(m)
    If (objAcroPDAnnot.GetContents <> "" And objAcroPDAnnot.GetSubtype = "Text") Then
    Cells(iRow, 5).Value = k
    Cells(iRow, 2).Value = objAcroPDAnnot.GetContents()
    Cells(iRow, 11).Value = objAcroPDAnnot.GetTitle()
    iRow = iRow + 1
    End If
    Next m
    Set objAcroPDPage = objAcroPDDoc.AcquirePage(k)
    Next k
    lRet = objAcroAVDoc.Close(1)
    Set objAcroAVDoc = Nothing
    Set objAcroPDAnnot = Nothing
    Set objAcroPDPage = Nothing
    Set objAcroPDDoc = Nothing
    End Sub

    Make sure you are current with 9.x patches, just on general principles.
    The code seems fine – nothing jumping out at me.
    You can also look at using the JSObject methods and trying this via the JavaScript stuff – that will give you more access to the Annotation information…
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Thu, 24 Nov 2011 04:25:12 -0800
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: Problem with controlling Annotations from Excel VBA
    Problem with controlling Annotations from Excel VBA
    created by apreeti<http://forums.adobe.com/people/apreeti> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/4044740#4044740

  • How to remove control chars from clob, prior to creating xmltype

    Hi,
    I am struggling with what should be really straightforward ...
    I have a simple program that takes an xml file stored in a clob column and attempts to convert it into an xml type.
    The program is
    declare
         v_xml xmltype;
         v_jobs_clob clob := empty_clob();
    begin
         dbms_lob.createtemporary(v_jobs_clob,true);
         select clob_tmp into v_jobs_clob from clob_tmp where rownum < 2;
         v_xml := XMLTYPE.createxml(v_jobs_clob);
    end;
    However my clob clearly contains at least one invalid character as I get this
    declare
    ERROR at line 1:
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00217: invalid character 7 (U+0007)
    Error at line 450
    ORA-06512: at "SYS.XMLTYPE", line 5
    ORA-06512: at line 8
    What I would like to do is to strip all the control characters from the v_jobs_clob before calling createXML.
    I have tried all sorts of things, like replace etc, but to no avail.
    Please help...
    Ralph

    I would have suggested that too but the [:cntrl:] character class also includes XML-valid characters such as #x9, #xA and #xD :
    SQL> select level as "AsciiCode"
      2       , chr(level) as "ControlChar"
      3  from dual
      4  where regexp_like(chr(level), '[[:cntrl:]]')
      5  connect by level < 256;
    AsciiCode Cont
             1 ☺
             2 ☻
             3 ♥
             4 ♦
             5 ♣
             6 ♠
             7
             8
             9
            10
            11 ♂
            12 ♀
            13
            14 ♫
            15 ☼
            16 ►
            17 ◄
            18 ↕
            19 ‼
            20 ¶
            21 §
            22 ▬
            23 ↨
            24 ↑
            25 ↓
            26 →
            27 ←
            28 ∟
            29 ↔
            30 ▲
            31 ▼
           127 ⌂
    32 rows selected.

  • Query  related to the transfer of the control to the other controller.

    Hi all,
    I have a query related to the transfer of the control to the other controller.
    I have components A and B .From a view of component A I neeed to open a window which belong to component B.Problem is that ,if I use create_window_for_cmp_usage( ) and the open( ) method and after that there is some code,then that code is getting executed before the window is opening.
    I want that the control should be back to the these code after the window is poped up and  after clossing the window. 
    Eg
    method ONACTIONOPEN_WINDOW .
    DATA lo_window_manager TYPE REF TO if_wd_window_manager.
      DATA lo_api_component  TYPE REF TO if_wd_component.
      DATA lo_window         TYPE REF TO if_wd_window.
      lo_api_component  = wd_comp_controller->wd_get_api( ).
      lo_window_manager = lo_api_component->get_window_manager( ).
      lo_window         = lo_window_manager->create_window_for_cmp_usage(
                         interface_view_name    = 'ZHELLO_WORLD'
                         component_usage_name   = 'USAGE_HELLO'
                       title                  =
                       close_in_any_case      = abap_true
                         message_display_mode   = if_wd_window=>co_msg_display_mode_selected
      lo_window->open( ).
      data a type i.
      data b type i.
      a = 2.
      b = 3.
      a = a + b.
    endmethod.
    In this case I am calling  ONACTIONOPEN_WINDOW method.But before opening the window the a iscalculated here.I want that after popuping  the window the calculations should be done .
    How will I achieve this.
    Thanks in advance.
    Edited by: vaibhav nirmal on Nov 25, 2008 6:42 AM

    Hi,
    You will have to do your calculation as an event in your new window, or capture the closing of the new window as an event in your currenbt view and do your calculations in the event.
    Regards,
    Shruthi R

  • Intermittent missing emails from others

    I have never had any trouble sending and receiving emails from within mail program itself and don't now, but lately I do from other email programs to myself (using firefox to log in to my verizon.net accounts). Messages show up in my verizon.net sent folders but I don't receive them in my mail program or if I do it's hours later (this NEVER happened before).
    ALSO WORSE, only recently I learned that I have not always been getting emails from others as well.
    I know this because they were eventually forwared to me by the people who sent them and it shows my correct email address and that they were sent but I did not get them.
    Just today I got an email sent from someone to my verizon.net account with a copy to my mail account (correctly addressed) but have not yet received it in my mail program.
    SO this morning I sent myself a test email from this verizon.net account to my mail account and still have not received it either. It always has sent such emails very quickly with almost no delaly.
    Verizon tech assures me it is not their server since I can send and receive to myself within verizon.net and they show up in my sent folder.
    It is an intermittent problem and leaves me with no way of knowing what emails I am NOT getting.
    After reading some discussions about mail problems with iphones, I have a sneaky suspicion that it has something to do with iphone and perhaps with recent updates with Quicktime, etc. I have never had problems like this.
    I am fearful of updating to leopard because there seems to be problems with mail there. So I still have Tiger and have ever since it came out.
    This problem is on my macbookpro laptop and G5 and I have repaired permissions and updated all software.
    any ideas? anyone else?
    thanks!

    +I see the emails in gmail account - never get them in entourage - intermittent - and (yes I have checked the spam filters).+
    Which spam filters did you check? Some ISPs reject spam (long) before it gets to your mail client and thus to your spam filters. Verizon is one such ISP, based on published reports and based on their own web site.
    At least one major ISP was recently reportedly as rejecting mail, allegedly based on the politics of the various folks involved.
    And as for Verizon, there are and have been filtering-related discussions that can be easily located using your preferred web search engine.
    Have you tried the configuration with something other than Entourage? This to determine if it is the client or the server.
    Have you tried another ISP, or loading up Mac OS X Server and running your own mail server and (if permissible) bypassing Verizon's filters?
    And FWIW (and no offense intended), the Mac OS X Server platform's Mail Services forum probably isn't the best spot for what appear to be ISP mail issues and Microsoft Entourage mail client discussions. (Unless the mail server involved running Mac OS X Server, that is.) Various ISPs can and do filter mail. Some (like one of my ISPs) provide you with some degree of control over the filtering. Some don't. Check directly with the ISP for details and settings.

  • Removing the Control Characters from a text file

    Hi,
    I am using the java.util.regex.* package to removing the control characters from a text file. I got below programming from the java.sun site.
    I am able to successfully compile the file and the when I try to run the file I got the error as
    ------------------------------------------------------------------------D:\Debi\datamigration>java Control
    Exception in thread "main" java.util.regex.PatternSyntaxException: Illegal repet
    ition
    {cntrl}
    at java.util.regex.Pattern.error(Pattern.java:1472)
    at java.util.regex.Pattern.closure(Pattern.java:2473)
    at java.util.regex.Pattern.sequence(Pattern.java:1597)
    at java.util.regex.Pattern.expr(Pattern.java:1489)
    at java.util.regex.Pattern.compile(Pattern.java:1257)
    at java.util.regex.Pattern.<init>(Pattern.java:1013)
    at java.util.regex.Pattern.compile(Pattern.java:760)
    at Control.main(Control.java:24)
    Please help me on this issue.
    Thanks&Regards
    Debi
    import java.util.regex.*;
    import java.io.*;
    public class Control {
    public static void main(String[] args)
    throws Exception {
    //Create a file object with the file name
    //in the argument:
    File fin = new File("fileName1");
    File fout = new File("fileName2");
    //Open and input and output stream
    FileInputStream fis =
    new FileInputStream(fin);
    FileOutputStream fos =
    new FileOutputStream(fout);
    BufferedReader in = new BufferedReader(
    new InputStreamReader(fis));
    BufferedWriter out = new BufferedWriter(
    new OutputStreamWriter(fos));
         // The pattern matches control characters
    Pattern p = Pattern.compile("{cntrl}");
    Matcher m = p.matcher("");
    String aLine = null;
    while((aLine = in.readLine()) != null) {
    m.reset(aLine);
    //Replaces control characters with an empty
    //string.
    String result = m.replaceAll("");
    out.write(result);
    out.newLine();
    in.close();
    out.close();

    Hi,
    I used the code below with the \p, but I didn't able to complie the file. It gave me an
    D:\Debi\datamigration>javac Control.java
    Control.java:24: illegal escape character
    Pattern p = Pattern.compile("\p{cntrl}");
    ^
    1 error
    Please help me on this issue.
    Thanks&Regards
    Debi
    // The pattern matches control characters
    Pattern p = Pattern.compile("\p{cntrl}");
    Matcher m = p.matcher("");
    String aLine = null;

Maybe you are looking for

  • ITunes crashes

    I transferred my iTunes to my Time Capsule to save room on my MacBook Pro several years ago. It seems like with every update of iTunes, iTunes becomes worse. Not only will my iPhone, iPod Touch, and iPad no longer wirelessly sync unless i wire it to

  • Disable cut option in Indesign CS5.5

    Hi, I want to disable CUT option in indesign once document is opened. I have added ActionFilter.cpp in my project and added following code in "FilterAction" function, IDocument* myDoc = Utils<ILayoutUIUtils>()->GetFrontDocument();     if (myDoc)     

  • Regarding user interface in LINUX for smartforms

    Hi Friends,            we run SAP on Linux platform.. we encountered a problem that , when we open SMARTFORMS   Tcode and create a new form,  it says that the user interface for the function is not supported by the OS.. what is the remedy for this..

  • What does it mean The iTunes library file can not be saved (-54)

    I went to sync my phone and this error message keeps popping up: The iTunes library file can not be saved (-54) What does this mean?

  • Local file system for archive destination in RAC with ASM

    hi Gurus . I need an info. I have ASM file system in 2 node RAC. The client does not want to use flash recovery area. Can we use the archive destination as local file system rather than ASM. like /xyzlog1 for archvies coming from node 1 and /xyzlog2