Possible to combine movieclip instances into a variable?

Hey! I'm making a game where I have 5 items (item1_mc, item2_mc, and so on...)
I had my game have the code repeating 5 times for each item which I feel was very inefficient.
if(cat_mc.hitTestObject(item1_mc)){
     score +=1;
          item1_mc.remove = true;
          item1_mc.x=-1000;
(Then the same thing for all five items)
And then:
if(score == 5){
     gotoAndStop(3);
Is there a way I can combine my instance names into one varible so I don't have to repeat the code multiple times? Thanks!

you could create a parent and add them to the parent:
var itemP:Sprite=new Sprite();
addChild(itemP);
for(var i:int=1;i<=5;i++){
itemP.addChild(this["item"+i+"_mc"]);
if(cat_mc.hitTestObject(itemP)){
but you're better off just using a for-loop in the test:
for(var i:int=1;i<=5;i++){
if(cat_mc.hitTestObject(this["item"+i+"_mc"])){
this["item"+i+"_mc"].remove=true;
this["item"+i+"_mc"].x=-1000;

Similar Messages

  • Is it possible to combine SDN account into OSS account?

    Hi Friends,
       I had a SDN account and now I got my OSS account.when I want to go to http://sdn.sap.com and I will login this forum with my OSS account automatically. It seems it is because of my setting of SAP Passport in my OSS profile. It is not so convenient when I want to check/manage my threads, which were posted by my SDN account. So I want to know it is possible to combine my SDN account into my OSS account. (for example, accredit all my SDN thread into the name of my OSS account, or link my oss account to SDN account, etc).
    Thanks very much.
    Joe

    here you are: Merge - User Accounts!!

  • Is it possible to combine multiple IR into one Internal order?

    Hi,
    Is it possible to combine multiple internal requisitions into one internal order in OM? Thanks
    Regards
    Leo

    Oracle Order Management provides one to one mapping between Order and (orig_sys_document_ref & Order source). You may need to go for custom solution to consolidate requisitions to create a single internal sales order.

  • How to combine multiple webservices into one WSDL file

    Gurus,
    I have 4 four webservices(ws1,ws2,ws3 & ws4) defined in XI. Normally in XI when we define webservice ,WSDL file will be generated for each interface. Now I have 4 related interfaces, so 4 WSDL files will generated. Suppose if I have 100 webservices then 100 WSDL files need to be generated & need to send to other party to consume our services, which is very tedious task & to track also. So is it possible to combine related webservices into one WSDL file? Your inputs will be highly appreciated.
    Regards,
    Santhosh

    Hi,
             Instead of trying to combine the interfaces, you can try to define your interface mapping with 4 sender interfaces with in one interface mapping . I think this may give you the result you are expecting.
                      If you want entire content to be in one interface , then, define single interface which can accomadate, all message ocntent of all 4 interfaces.Means your sender message to contain the 4 datatypes internally.
    Regards,
    Reyaz

  • CE -possible to combine different multiple enterprise services? and expose

    can some one please let me know if there is any possibility to combine multple services into one and expose as a new  service in CE 7.1/7.2?

    You have multiple options:
    1. Create a WSDL which has input similar to input of WS1 (only Region as input) and an output similar to output of WS3.
    Create Proxy Service based on this WSDL. Then call all the thee business services one after the other and doing transformations/assigns as needed after each call. Finally map the result of BS3 to the similar output of your new WSDL on which the Proxy service is based.
    2. Create an Any XML type of web service. Create a schema which has two elements, one for input and one for output. Input containing only Region and output containing all the details. All consumers need to send request according to input defined in schema and expect output defined in schema. Its similar to creating the WSDL but can be used in case your consumer do not want to call a Web Service but want to call an XML API over HTTP. Rest will be same as option 1.
    Split join is needed to make calls in parallel, it wont be usable in your use case unless you expect a list og regions in the same request for each of which you need to gather same information by calling three services.

  • Is it possible to combine multiple Pur Reqs for multiple materials to one vendor into one PO through MD07?

    We have material planners who use MD07 (traffic signal screen) Stock/Requirements List, Collective Access tab to review material requirements by MRP Controller.  Once the list is created, they select individual materials and review them in MD04.  In a lot of cases, Purchase Reqs (PRs) are reviewed and adopted into POs individually for each material.  Sometimes they will combine multiple PRs for one material into one PO.  This is a good practice.  However, from what I have found, it is not possible to combine multiple PRs for multiple materials into one PO.  If this was done it would dramatically reduce the number of POs that we are issuing to suppliers.  Problem statement:  We issue too many POs which causes additional influxes down the line (receiving dock/goods receipts processing, receiving issues, invoices, invoice issues, etc.).  Does anyone know of a way to address this problem without a major overhaul in approach or customization of the system?  Thank you in advance!   

    Hello Michael
    As far as I know, this is not possible directly from MD07, only from the MM transactions.
    The following thread suggests the following procedure to convert several PRs into one PO:
    Conversion of multiple PR into single P.O
    Drag and drop the first PR from the item overview to the shopping card on top of ME21N,
    then open the PO detail delivery schedule tab and drag  and drop all other PR to the shopping card shown  in the schedule tab
    You can use the same procedure, calling the order conversion from MD07 and then drag and drop another PRs into this PO.
    BR
    Caetano

  • Is it possible to combine multiple pdf's into one without saving them onto your computer?

    Hello
    I open pdf's in an application (no add ons for acrobat exist), and want to combine them without having to use time on saving them before merging them into one single document.
    Is it possible to do this without having the files saved onto your computer? I use acrobat x pro.

    I dont think you understand my question. Of course Adobe reader cant combine pdf's, if it could I would not have had to purchase Adobe acrobat.
    The problem I am trying to solve is how to combine pdf files when they are not opened/saved locally on my computer.
    If I make Acrobat the standard program for opening pdf files on my computer - then will it be possible to combine the files that are opened without saving them first?
    I dont have the program installed on my computer now, and have to know this before we purchase it.

  • Possible to combine Panther into one disk?

    Hello,
    I own my own set of Panther disks.. I wanted to know if its possible to combine all three disks into one DVD? Has anyone did that or ever attempted to do so?
    From Tiger onward all my disks have been DVD's naturally.

    Even if the three CD images were burned to a DVD disc, the natural scripting which
    runs at intervals during the original installation process may be asking for a second
    CD when the image is already available; and so on. However, there may be a way
    to work around that if someone is really clever or extremely focused.
    If a DVD had three install disc images on there (seen on desktop as three CDs)
    the natural script to' Eject disc 1 and ask for disc 2' etc; may be unnecessary.
    However, this does get into an area where Discussions may be not the correct place
    when the details may invoke some rule breaking; even if unintentionally directed there.
    This does get into some speculative and perhaps 'end user rule' areas best left alone;
    especially outside of ones secret clandestine laboratory in the basement? LOL.
    Wonder if there's a USB flash drive method of making a backup copy, that'd work?
    I'd hate to think the original, hard to find install disc set, would be lost or damaged.
    Usually, a clone of the installed system is adequate; for one computer at a time.
    Good luck & happy computing!

  • Is it possible to combine two pivot report into one ?..

    Is it possible to combine two pivot report into one ?..
    Then trying to display a chart or table result.

    Thanks for the reply.
    Let me explain it briefly. I am creating a Report 1 based on one fitler condition and second report is created based on second filter condition.
    I have similar column (time periods) in the both report. Then measure column has to combine and show as single report.
    This is my requirement.

  • Mapping proc output to vars gets error extracting result into a variable of type (DBTYPE_UI2)

    Hi, we run std 2012.  I have a proc (sets nocount on) whose params r shown in the first block .   My execute ssis sql task mapping is shown in the block following that (same order as shown, the param sizes are all -1).  The variable
    characteristics and initial values are shown in the 3rd block.  The execute sql task command is
    exec usp_fileArrivalStatus ?,?,?,?,?,? output,? output,? output
    when I run the proc in ssms followed by a select on the output fields, I get stat 0, instance id -1 and file name empty string (aka tick tick aka '')
    The error is:
    [Execute SQL Task] Error: Executing the query "exec usp_fileArrivalStatus ?,?,?,?,?,? output,? ou..." failed with the following error:
    "An error occurred while extracting the result into a variable of type (DBTYPE_UI2)".
    Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
    Does anybody know what is wrong?
    CREATE PROCEDURE [dbo].[usp_fileArrivalStatus] @NewFilePattern varchar(500),
    @PkgName varchar (257),
    @appid int,
    @MsgHistCreateDate date,
    @messageFriendlyName varchar(500),
    @arrivalStatus int output,
    @instanceId bigint output,
    @fileName varchar(500) output
    VariableName Direction DataType ParamName
    User::TranFilePattern Input VARCHAR 0
    System::PackageName Input VARCHAR 1
    User::AppID Input SHORT 2
    User::todaysDate Input DATE 3
    User::TranFileArriveStatus OUTPUT SHORT 5
    User::TranFileInstanceId OUTPUT LARGE_INTEGER 6
    User::TranFileName OUTPUT VARCHAR 7
    User::TranFileFriendlyName Input VARCHAR 4
    User::TranFilePattern,string,tranfile05-Nov-2014
    User::fileDate,string,05-Nov-2014
    System::PackageName,
    User::AppID,int32,12
    User::todaysDate,DateTime, set by select getdate()
    User::TranFileArriveStatus,int32,0
    User::TranFileInstanceId,Int64,0
    User::TranFileName,string
    User::TranFileFriendlyName,string,Tran File

    I may have gotten past this.  The ui showed the first execution of that proc as the aborting component but when I looked at my error code (-1073548784), and component name in the
    message sent with notification email, I noticed the second component name.  It too executes that proc and still had ushort for appid in sql task mapping and long for instance id.  I changed these characteristics to match what I posted and got green
    on the seq container that runs both.
    I think I go thru this kind of adventure every time I try to map proc output to ssis vars.   

  • Is it Possible to Combine Hibernate + Swing?????

    Hi Xperts,
    Is it possible to combine Hibernate + Swing?
    (My Point of View Hibernate Contains Transaction, Session... But In Swing Session??????)
    So i have lot of confusions.
    SO
    if Hibernate + Swing
    IF YES. HOW? ELSE TELL THE REASON.
    I EAGERLY WAITING FOR YOUR REPLY
    Thanks
    Edward and Hari

    Hi Duffymo - thanks for responding. It's fun to discuss this with somebody; I don't usually get many reasonable/friendly responses on the Hibernate user forum.
    What I mean by transaction based identity is thatin
    the normal, recommended Hibernate process (one
    session per transaction), objects fetched in
    different transactions do not == each other. Solet's
    say I do the following:
    * Start session 1 and transaction 1, fetch object
    with primary key 5, and store it in variable obj1.
    Commit transaction 1 and close session 1.
    * Start session 2 and transaction 2, fetch object
    with primary key 5, and store it in variable obj2.
    Commit transaction 2 and close session 2.
    * At this point, even though they represent thesame
    row in the database, obj1 != obj2. I'll assume you mean !obj1.equals(obj2)here, because [obj1 != obj2[/code] even without
    Hibernate if the two references point to different
    locations in memory in the same JVM. The equals
    method can be overridden. You can decide to check
    equality only examining the primary keys, or you can
    do a field by field comparison. If the class checks
    equality on a field by field basis, the only way
    they'll not be equal is if you change values.I really do mean == in this case. If those two fetches happened within the same session, Hibernate would return the identical object from it's cache. Here's some pseudo-code illustrating what I mean:
    Session firstSession = sessionFactory.openSession(); //Start an empty session
    Transaction tx1 = firstSession.beginTransaction();
    Object obj1 = firstSession.get( Person.class, new Long(5) ); //Fetches row 5 from the database
    tx1.commit();
    Transaction tx2 = firstSession.beginTransaction(); //Start a new database transaction, but still use the same session cache.
    Object obj2 = firstSession.get( Person.class, new Long(5) ); //Just returns the same object it previously fetched
    tx2.commit();
    obj1 == obj2; //Returns true, because we're pointing to the exact same objects
    obj1.equals( obj2 ); //Obviously returns true since they're pointing to the same object
    Session secondSession = sessionFactory.openSession(); //Start an empty session
    Transaction tx3 = secondSession.beginTransaction(); //New transaction in the empty session, no cached objects
    Object obj3 = secondSession.get( Person.class, new Long(5) ); //Returns a newly created object, not in our session cache
    tx3.commit();
    obj1 == obj3; //Returns FALSE, these are two separate objects because they were fetched by different sessions.
    obj1.equals( obj3 ); // Depends on whether the database row was modified since we fetched obj1
    It sounds like you want an Observer pattern, where
    every client would deal with a single model and
    changes are broadcast to every registered Observer.
    That's just classic MVC, right? In that case, every
    y client might have an individual view, but they're
    all dealing with the same model. Changes by one is
    reflected in all the other views in real time.That would be awesome, but doesn't seem feasible. Our Swing clients are spread all around the world, and creating a distributed event notification system that keeps them all in sync with each other sounds very fun but extremely out of scope for this project. We're trying to make Hibernate manage the object freshness so that our Swing application clients may slowly become out of date, but when we trigger certain actions on the client (like a user query, or the user clicking a 'refresh' button) they refresh portions of their data model from the central shared database.
    >
    The reason that this is pertinent is because Swing
    expects objects to be long-lived, so that they canbe
    bound to the UI, have listeners registered withthem,
    they can be used in models for JTables, JLists,etc.
    In a typical complex Swing application, your only
    choice is to use a very long-lived session,because
    it would break everything if you were getting
    different copies of your data objects every timeyou
    wanted to have a transaction with the database. As
    shown above, a very long-lived session will leadto
    very out-of-date information with no good way to
    refresh it.Maybe the problem is that you don't want copies of
    the data. One model. Yes?One data model with real-time updates between all the connected clients would be ideal. However, I don't think that Hibernate is designed to work this way - it's really not even a Hibernate issue, that would be some separate change tracking infrastructure.
    Realistically, what I was hoping for is that we could have a single long-running Hibernate session so that we're working with the same set of Java objects for the duration of the Swing application lifetime. The problem that I'm running into is that Hibernate does not seem structured in a way that lets me selectively update the state of my in-memory objects from the database to reflect changes that other users have made.
    Certainly you've used JDBC. 8) That's what
    Hibernate is based on. TopLink is just another O/R
    mapping tool, so it's unlikely to do better. JDO
    doesn't restrict itself to relational databases, but
    the problem is the same.You're right, I have used JDBC, in fact we wrote a JDBC driver for FileMaker Pro so I'm pretty familiar with it. What I meant is that I've never tried using raw JDBC within a Swing application to manage my object persistence.
    I have not used TopLink and I haven't heard much about it, but I did see some tidbits on an Oracle discussion board comparing Hibernate with TopLink that made it sound like TopLink had better support for refreshing in-memory objects. Not having used TopLink myself, I can't say much else about what it's strengths/weaknesses are compared to Hibernate. It's not really an option for us anyway, because you have to pay a per-seat licensing charge, which would not work for this project.
    I know almost nothing about JDO except that it sounds really cool, is pseudo-deprecated, and it's probably too late for us at this point to switch our project to use it even if we wanted to.
    I don't think the problem is necessarily the
    persistence; it's getting state changes broadcast to
    the view in real time. It's as if you're writing a
    stock trading app where changes have to be made
    available to all users as they happen. Fair?Yes, I agree that the core issue is getting state changes broadcast to the view, but isn't that within the responsibility of the persistence management? How are we supposed to accomplish this with Hibernate?
    An excellent, interesting problem. Thanks for
    answering. Sincerely, %Likewise. I would stress again that I'm not anti-Hibernate in general (well maybe a little, but that's mostly because of bad attitudes on the support forums), I just have not found a way to make it work well for a desktop GUI client application like Swing. Thanks for your help, and I would love to continue the conversation.

  • Capturing oracle error codes into a variable

    Hi
    Can someone show me how it is possible to save an Oracle defined error code into a variable? What I am trying to do is when a stored procedure fails an Oracle error is raised, such as ORA-xxxx, then pass this code into variable to be saved into a log.
    How do I achieve this?

    user633278 wrote:
    How do I achieve this?Function SQLCODE in PL/SQL exception handler returns error code. SQLERRM returns message:
    SQL> declare
      2      x number;
      3  begin
      4      x := 1/0;
      5    exception
      6      when others
      7        then
      8          dbms_output.put_line('Error code: ' || SQLCODE);
      9          dbms_output.put_line('Error message: ' || SQLERRM);
    10  end;
    11  /
    Error code: -1476
    Error message: ORA-01476: divisor is equal to zero
    PL/SQL procedure successfully completed.
    SQL> SY.

  • Fetches more values into one variable

    Hi, inside a cursor loop I'd like to assign, each fetch, a value to a variable, in order, at the end to have a collection of all the values fetched into the same variable.
    The code is the following:
    CREATE OR REPLACE procedure APPS.AAA as
    v_pino varchar2(64);
    CURSOR tks_opened_range IS
    SELECT incident_number AS YP_TKS_OPENED_WITHIN_RANGE FROM cs.cs_incidents_all_b a, cs_incident_statuses_b b, Cs_Incident_Statuses_Tl c
    WHERE b.incident_status_id = c.incident_status_id
    AND a.incident_status_id = b.incident_status_id
    AND (b.attribute1 <> '3' OR b.attribute1 IS NULL)
    AND c.language = 'EL'
    AND ((sysdate - to_date(incident_attribute_6, 'dd-mm-yyyy hh24:mi'))*1440) BETWEEN 1 AND 11111111111
    AND incident_attribute_2 IN ('ΓΕΝΙΚΗ ΔΙΕΥΘΥΝΣΗ ΤΕΧΝΟΛΟΓΙΑΣ')
    ORDER BY incident_number;
    rec_tks_opened_range tks_opened_range%ROWTYPE;
    begin
    FOR rec_tks_opened_range IN tks_opened_range
    LOOP
    v_pino := rec_tks_opened_range.YP_TKS_OPENED_WITHIN_RANGE;
    DBMS_OUTPUT.PUT_LINE('v_pino: ' || v_pino);
    end loop;
    end AAA;
    This works with the variable v_pino!....but at the end, the value of the variable v_pino is ONLY the last fetched by the cursor.
    Is there a way to declare a variable (or better a collection) or a new type in order to have all the data fetched into this variable and the end of the fetching ?
    I need to know this trick because, after, I have to assign this variable to a pipelined table function.
    Thanks in advance
    Alex
    /

    Great Devang !! Thanks a lot ! It works ! Now I am able to retrieve all the values I need and store them into my variable gino
    I searched on the note you mentioned in your mail in order to pass an array as a variable to a table function (PIPE ROW call), but I didn't find nothing about it.
    Now I explain to you my situation.
    I already implemented a table function that works perfectly. I have 2 cursors declared and 2 PIPE ROW calls.
    FUNCTION statistic_report_2_1 (p_resolv_time_ll varchar2, p_resolv_time_ul varchar2, p_ypiresia varchar2)
    RETURN xxi_statistic_rep_2_1_tab PIPELINED
    IS
    -- CURSORS FOR THE FIRST SHEET - Tickets opened per group and per duration
    -- Cursor for tickets opened within 1 hour --
    CURSOR tks_opened_1_h IS
    SELECT incident_number AS YP_TKS_OPENED_WITHIN_1_HOUR
    FROM cs.cs_incidents_all_b a, cs_incident_statuses_b b, Cs_Incident_Statuses_Tl c
    WHERE b.incident_status_id = c.incident_status_id
    AND a.incident_status_id = b.incident_status_id
    AND (b.attribute1 <> '3' OR b.attribute1 IS NULL)
    AND c.language = 'EL'
    AND ((sysdate - to_date(incident_attribute_6, 'dd-mm-yyyy hh24:mi'))*1440) < 60
    AND incident_attribute_2 IN (SELECT * FROM TABLE(CAST(xxi_szf_discoverer.ypiresia_values(p_ypiresia) AS xxi_ypiresia_list_tab)))
    ORDER BY incident_number;
    rec_tks_opened_1_h tks_opened_1_h%ROWTYPE;
    -- Cursor for tickets opened between 1 hour and 3 hours --
    CURSOR tks_opened_1_3_h IS
    SELECT incident_number AS YP_TKS_OPENED_BE_1_3_HOURS FROM cs.cs_incidents_all_b a, cs_incident_statuses_b b, Cs_Incident_Statuses_Tl c
    WHERE b.incident_status_id = c.incident_status_id
    AND a.incident_status_id = b.incident_status_id
    AND (b.attribute1 <> '3' OR b.attribute1 IS NULL)
    AND c.language = 'EL'
    AND ((sysdate - to_date(incident_attribute_6, 'dd-mm-yyyy hh24:mi'))*1440) BETWEEN 60 AND 179
    AND incident_attribute_2 IN (SELECT * FROM TABLE(CAST(xxi_szf_discoverer.ypiresia_values(p_ypiresia) AS xxi_ypiresia_list_tab)))
    ORDER BY incident_number;
    rec_tks_opened_1_3_h tks_opened_1_3_h%ROWTYPE;
    PRAGMA AUTONOMOUS_TRANSACTION;
    BEGIN
    -- FIRST SHEET OPEN CURSORS --
    TICKETS NUMBER OPENED WITHIN 1 HOUR
    FOR rec_tks_opened_1_h IN tks_opened_1_h
    LOOP
    PIPE ROW(stat_rep_2_1_type(
    rec_tks_opened_1_h.YP_TKS_OPENED_WITHIN_1_HOUR
    END LOOP;
    -- TICKETS NUMBER OPENED BETWEEN 1 HOUR AND 3 HOURS --
    FOR rec_tks_opened_1_3_h IN tks_opened_1_3_h
    LOOP
    PIPE ROW(stat_rep_2_1_type(
    ,rec_tks_opened_1_3_h.YP_TKS_OPENED_BE_1_3_HOURS));
    END LOOP;
    RETURN;
    END statistic_report_2_1;
    But, in this way and with this syntax, I obtain for each PIPE ROW call only one field filled each time, because I can’t call 2 cursors in a nested loop together (data duplication);
    For example:
    1st PIPE ROW call : only the first field is filled and into the second I have to put ‘’
    2nd PIPE ROW call : only the second field is filled and into the first I have to put ‘’
    ….and I cant’ call with a single PIPE ROW call two cursor variables…..
    Into a Discoverer report this data layout is really bad (you can imagine with thousand
    of records).
    For this reason I thought to use an array variable (gino) to pass to a single PIPE ROW call outside the cursor loop……but it doesn’t work !!!
    Can you suggest me how to resolve this problem….if it possible ?
    Did I have to declare other TYPE or collection ?
    Thanks you so much
    Alex

  • If I have two iTunes accounts can I combine all purchases into one account ?

    I have two active iTunes accounts but I would like to combine my purchases into one is that possible.".?

    If you mean iTunes Store accounts, no.
    If you mean iTunes libraries, import the files into the desired library.
    (105689)

  • Store multiple values into a variable

    I was wondering if it was possible to store multiple values into one varaible. Something along the lines of...
    Oracle: 10g
    --Table xSample (this is obviously a dumbed down version of the table for the sake of showing what I want to accomplish
    S_ID   YEAR
    1         2009
    2         2009
    3         2009
    4         2009
    --Query
    select     s_id
    into       pID
    from      xSample
    where    year = 2009;Basically the reason I was trying to figure out how to store multiple values into a variable is b/c I was going to use that variable (pID) as a parameter and have it's values passed dynamically when the proc was called. The values would go into a query that would look something like:
    select *
    from cust_data
    where person_id in (pID)
    aka
    select *
    from cust_data
    where person_id in (1,2,3,4)Not sure if this is possible, but if anyone knows of a way I could accomplish this that would be great.
    Edited by: user652714 on Dec 23, 2009 9:37 AM

    Here's a basic idea building a comma seperated list, then consuming it in another query (taking the in list approach from Tom's post, linked earlier).
    create table xsample (s_id number not null, year number);
    insert into xsample select level, 2009 from dual connect by level <=4;
    commit;
    declare
       --4000 should be lots ... hopefully?
       v_parameter_list varchar2(4000);
    begin
      --create the comma seperated list
      select
        substr(max(sys_connect_by_path(s_id, ',') ), 2, 4000)
      into
        v_parameter_list
      from
        select s_id, row_number() over(order by 1) as rn
        from xsample
        where year = 2009
      start with rn = 1
      connect by prior rn = rn - 1;
      --consume the comma seperated list
      for x in
        with data as
          select
            trim( substr (txt,
            instr (txt, ',', 1, level  ) + 1,
            instr (txt, ',', 1, level+1)
            - instr (txt, ',', 1, level) -1 ) ) as token
          from
            select ','||v_parameter_list||',' txt
            from dual
          connect by level <= length(v_parameter_list)-length(replace(v_parameter_list,',',''))+1
        select *
        from xsample
        where s_id in (select * from data) 
      loop
        dbms_output.put_line('next item = ' || x.s_id);
      end loop;
    end;
    /

Maybe you are looking for