Using cue points to change a text box

Ok I asked a simlar question before but I am still having trouble getting it to work.
I have a video with 11 Cue points and at each cuepint I want the Typebox to change it text at each cue point.
When the video is playing I want a the textbox to change the text when cue point 1 is reached. This is the code I am using. But every always goes straight to the whatever the last functions text and skips all the other before it. Its bassically this code repeated with difffernt function name and string.
import fl.video.MetadataEvent;
flvplayer.addEventListener(MetadataEvent.CUE_POINT,section2Cue);
function section2Cue(event:MetadataEvent):void{
    for(var String = "section2" in event.info){
        typebox.text = "Hello";                        }
So basically I want to tell flash, when CuePoint1 is reached text = "hello world" and when CuePoint2 is reached I want the text ="Hello Again". I don't know what I am doing wrong or what is the best way to tell flash how to do this

Ok, I tryed that code Basically I want to call upon each cue point individually and have an event for each one. So how i tell it to display this only when Cuepoint1 is reach and display that only when Cuepoint2 is reached.  What data would help ?
Most of my code is just buttons to reach each cuepoint within the video. I got that to work fine.
I'll supply it anyways
import flash.events.MouseEvent;
// Assign a new skin to my FLVPlayback instance using ActionScript
flvplayer.skin = "player.swf";
flvplayer.fullScreenTakeOver = false;
//select section menu button
selectBtn.addEventListener(MouseEvent.CLICK, openMenu);
          function openMenu(event:MouseEvent): void{
                    trace("working");
                    selectMenu.gotoAndPlay(2);
          selectMenu.closeX.addEventListener(MouseEvent.CLICK, closeMenu);
                    function closeMenu(event:MouseEvent): void{
                              trace("closing");
                              selectMenu.gotoAndPlay(11);
          //Cuepoint Buttons
selectMenu.sec1.addEventListener(MouseEvent.CLICK, section1Button);
function section1Button(event:MouseEvent):void
          // Replace video_instance_name with the instance name of the video component.
          // Replace "Cue Point 1" with the name of the cue point to seek to.
          var cuePointInstance:Object = flvplayer.findCuePoint("section1");
           flvplayer.seek(cuePointInstance.time);
           typebox.text = "Orion Health EMR Lite Overview";
selectMenu.sec2.addEventListener(MouseEvent.CLICK, section2Button);
function section2Button(event:MouseEvent):void
          // Replace video_instance_name with the instance name of the video component.
          // Replace "Cue Point 1" with the name of the cue point to seek to.
          var cuePointInstance:Object = flvplayer.findCuePoint("section2");
           flvplayer.seek(cuePointInstance.time);
           typebox.text = "Adopt Electrionic Patients Records Easily";
          selectMenu.sec3.addEventListener(MouseEvent.CLICK, section3Button);
function section3Button(event:MouseEvent):void
          // Replace video_instance_name with the instance name of the video component.
          // Replace "Cue Point 1" with the name of the cue point to seek to.
          var cuePointInstance:Object = flvplayer.findCuePoint("section3");
           flvplayer.seek(cuePointInstance.time);
           typebox.text = "Introducing Orion Health EMR Lite";
                    selectMenu.sec4.addEventListener(MouseEvent.CLICK, section4Button);
function section4Button(event:MouseEvent):void
          // Replace video_instance_name with the instance name of the video component.
          // Replace "Cue Point 1" with the name of the cue point to seek to.
          var cuePointInstance:Object = flvplayer.findCuePoint("section4");
           flvplayer.seek(cuePointInstance.time);
           typebox.text = "Meet Mr. Smith - Patient Registration and Intake";
selectMenu.sec5.addEventListener(MouseEvent.CLICK, section5Button);
function section5Button(event:MouseEvent):void
          // Replace video_instance_name with the instance name of the video component.
          // Replace "Cue Point 1" with the name of the cue point to seek to.
          var cuePointInstance:Object = flvplayer.findCuePoint("section5");
           flvplayer.seek(cuePointInstance.time);
           typebox.text = "Orion Health EMR Lite in the Exam Room - Clicnical Documentation and Orion Health HIE Integration";
selectMenu.sec6.addEventListener(MouseEvent.CLICK, section6Button);
function section6Button(event:MouseEvent):void
          // Replace video_instance_name with the instance name of the video component.
          // Replace "Cue Point 1" with the name of the cue point to seek to.
          var cuePointInstance:Object = flvplayer.findCuePoint("section6");
           flvplayer.seek(cuePointInstance.time);
           typebox.text = "Working with Orion Health EMR Lite - Documentation";
selectMenu.sec7.addEventListener(MouseEvent.CLICK, section7Button);
function section7Button(event:MouseEvent):void
          // Replace video_instance_name with the instance name of the video component.
          // Replace "Cue Point 1" with the name of the cue point to seek to.
          var cuePointInstance:Object = flvplayer.findCuePoint("section7");
           flvplayer.seek(cuePointInstance.time);
           typebox.text = "Order Entry in Orion Health EMR Lite";
selectMenu.sec8.addEventListener(MouseEvent.CLICK, section8Button);
function section8Button(event:MouseEvent):void
          // Replace video_instance_name with the instance name of the video component.
          // Replace "Cue Point 1" with the name of the cue point to seek to.
          var cuePointInstance:Object = flvplayer.findCuePoint("section8");
           flvplayer.seek(cuePointInstance.time);
           typebox.text = "ePrescribing";
selectMenu.sec9.addEventListener(MouseEvent.CLICK, section9Button);
function section9Button(event:MouseEvent):void
          // Replace video_instance_name with the instance name of the video component.
          // Replace "Cue Point 1" with the name of the cue point to seek to.
          var cuePointInstance:Object = flvplayer.findCuePoint("section9");
           flvplayer.seek(cuePointInstance.time);
           typebox.text = "ePrescribing";
selectMenu.sec10.addEventListener(MouseEvent.CLICK, section10Button);
function section10Button(event:MouseEvent):void
          // Replace video_instance_name with the instance name of the video component.
          // Replace "Cue Point 1" with the name of the cue point to seek to.
          var cuePointInstance:Object = flvplayer.findCuePoint("section10");
           flvplayer.seek(cuePointInstance.time);
           typebox.text = "Quality and Utilization Reporting";
selectMenu.sec11.addEventListener(MouseEvent.CLICK, section11Button);
function section11Button(event:MouseEvent):void
          // Replace video_instance_name with the instance name of the video component.
          // Replace "Cue Point 1" with the name of the cue point to seek to.
          var cuePointInstance:Object = flvplayer.findCuePoint("section11");
           flvplayer.seek(cuePointInstance.time);
           typebox.text = "Summary";
As for data? This is all I know about my CuePoints
Would the best way to acheive changing type is to change the way my movie clips are set up? Instead of telling it within the actionscript maybe telling it to go to next frame within a movieclip with the content? I don't know exactly how to word what I am trying to acheive but I'm trying!
thanks!

Similar Messages

  • Controlling external information using cue points

    Hello,
    I am trying to change information on my site using cue points in my video.  My video is in a flash quiz and I am trying to change my objects such as an ad or photo with these cue points.  In otherwords, when a video begins, or when a cue point is reached the photo outside the video would change.  I am currently using cue points to go to the next frame after the video completes, but I don't know how to make it change things outside the video.  Thank you for your help.

    I'm sure there is more than one way to skin this cat, but here is what I use with NetStream video to load other .swfs (could be photos or other videos) at certain points in the main video:
    ns.onCuePoint = function(evt:Object){
        trace(evt.name);
        trace(evt.time);
        if(evt.name == "play_vid1") {
            trace("YO!Loading wide_holder!");
            wide_holder.loadMovie("rm/images/black_bear.swf");
        if(evt.name == "play_vid2") {
      trace("YO!Loading standard_holder!");
            standard_holder.loadMovie("rm/images/sqis.swf");
    in this case using an "event" cue point object embedding at certain times in the video.
    Lots of info on the Web, here is just one:
    http://www.communitymx.com/content/article.cfm?cid=124DB
    Best wishes,
    Adninjastrator

  • How to Change the Text Box to LOV where the Text Box displayed dynamically

    Hi All,
    I have to Change the Text Box to LOV. But the Text Box is not the static one.
    In the Expense Screen, when i select the particular expense type, additonal infomation is getting displayed.
    There is a one additional field called 'Portfolio Code' . This is a text Box. I need to change this as LOV.
    Even i am not sure how this is getting displyed. This column is mapped to attriubte14 of AP_EXPENSE_LINES_ALL table.
    Please advice
    Thanks,
    Mani

    Controller code continues
    private void createDirectBinding(OAWebBean oawebbean, String s, AttributeKey attributekey, String s1, String s2)
    OAWebBean oawebbean1 = oawebbean.findChildRecursive(s);
    oawebbean1.setAttributeValue(attributekey, new OADataBoundValueViewObject(oawebbean1, s2, s1));
    private void createDirectBinding(OAWebBean oawebbean, String s, AttributeKey attributekey, String s1)
    OAWebBean oawebbean1 = oawebbean.findChildRecursive(s);
    oawebbean1.setAttributeValue(attributekey, new OADataBoundValueViewObject(oawebbean1, s1, "DetailsPagePVO"));
    private void processRequestNormalDetails(OAPageContext oapagecontext, OAWebBean oawebbean)
    OAMessageChoiceBean oamessagechoicebean = (OAMessageChoiceBean)oawebbean.findChildRecursive("ExpTypeChoice");
    oamessagechoicebean.setPickListCacheEnabled(false);
    oamessagechoicebean = (OAMessageChoiceBean)oawebbean.findChildRecursive("GuestType");
    oamessagechoicebean.setPickListCacheEnabled(false);
    OAMessageTextInputBean oamessagetextinputbean = (OAMessageTextInputBean)oawebbean.findChildRecursive("Justification");
    if(oamessagetextinputbean != null)
    oamessagetextinputbean.setWrap("soft");
    createDirectBinding(oawebbean, "ExpTypeChoice", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "StartDate", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "Justification", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "ExpenseGroup", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "LocationName", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "RBLocation", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "DetailMerchantName", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "DetailTaxClassification", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "DetailTaxCode", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "TaxRegNumber", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "ReceiptNumber", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "Reference", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "TaxpayerID", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "AirTravelType", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "AirTicketClass", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "AirTicketNumber", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "AirFromLocation", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "AirToLocation", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "AccEndDate", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "MealNumberAttendees", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "MealAttendees", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "DetailDailyRate", STYLE_CLASS_ATTR, "DetailDailyRateCSS");
    createDirectBinding(oawebbean, "NumberOfDays", STYLE_CLASS_ATTR, "DetailDailyRateCSS");
    createDirectBinding(oawebbean, "DetailReceiptAmount", STYLE_CLASS_ATTR, "DetailReceiptAmountCSS");
    createDirectBinding(oawebbean, "ReceiptCurrencyChoice", STYLE_CLASS_ATTR, "ReceiptCurrencyChoiceCSS");
    createDirectBinding(oawebbean, "InverseExchRate", STYLE_CLASS_ATTR, "DetailExchRateCSS");
    createDirectBinding(oawebbean, "ExchRate", STYLE_CLASS_ATTR, "DetailExchRateCSS");
    createDirectBinding(oawebbean, "DetailDailyRate", CURRENCY_CODE, "ReceiptCurrencyCode");
    createDirectBinding(oawebbean, "DetailReceiptAmount", CURRENCY_CODE, "ReceiptCurrencyCode");
    createDirectBinding(oawebbean, "DetailReimbursAmt", CURRENCY_CODE, "ReimbursementCurrencyCode");
    createDirectBinding(oawebbean, "ParentGuestTypeSortableHeader", REQUIRED_ATTR, "FB_GuestTypeColReq");
    createDirectBinding(oawebbean, "ParentGuestNameSortableHeader", REQUIRED_ATTR, "FB_GuestNameColReq");
    createDirectBinding(oawebbean, "ParentGuestTitleSortableHeader", REQUIRED_ATTR, "FB_GuestTitleColReq");
    createDirectBinding(oawebbean, "ParentGuestTaxIdSortableHeader", REQUIRED_ATTR, "FB_GuestTaxIdColReq");
    createDirectBinding(oawebbean, "ParentGuestEmployerSortableHeader", REQUIRED_ATTR, "FB_GuestEmployerColReq");
    createDirectBinding(oawebbean, "ParentGuestEmployerAddrSortableHeader", REQUIRED_ATTR, "FB_GuestEmployerAddressColReq");
    String s = oapagecontext.getParameter("source");
    String s1 = oapagecontext.getParameter("event");
    if("StartDateUpdate".equals(s1) && "StartDate".equals(s))
    setFocusToField("StartDate", oawebbean);
    } else
    if("AmountUpdateReceiptCurrency".equals(s1) && "ReceiptCurrencyChoice".equals(s))
    setFocusToField("ReceiptCurrencyChoice", oawebbean);
    private void processRequestItemizationDetails(OAPageContext oapagecontext, OAWebBean oawebbean)
    OAWebBean oawebbean1 = oawebbean.findChildRecursive("ItemizedDetails");
    OAMessageChoiceBean oamessagechoicebean = (OAMessageChoiceBean)oawebbean1.findChildRecursive("IPL_ExpTypeChoice");
    oamessagechoicebean.setPickListCacheEnabled(false);
    OAMessageChoiceBean oamessagechoicebean1 = (OAMessageChoiceBean)oawebbean1.findChildRecursive("ChildExpTypeChoice");
    oamessagechoicebean1.setPickListCacheEnabled(false);
    oamessagechoicebean = (OAMessageChoiceBean)oawebbean1.findChildRecursive("ExpenseType");
    oamessagechoicebean.setPickListCacheEnabled(false);
    oamessagechoicebean = (OAMessageChoiceBean)oawebbean1.findChildRecursive("ChildGuestType");
    oamessagechoicebean.setPickListCacheEnabled(false);
    OAMessageLayoutBean oamessagelayoutbean = (OAMessageLayoutBean)oawebbean1.findChildRecursive("ChildExpTypeLayout");
    oamessagelayoutbean.setRequired("uiOnly");
    createDirectBinding(oawebbean, "IPL_ExpTypeChoice", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "IPL_StartDate", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "IPL_Justification", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "IPL_LocationName", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "IPL_RBLocation", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "IPL_MerchantName", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "IPL_TaxRegNumber", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "IPL_ReceiptNumber", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "IPL_Reference", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "IPL_TaxpayerID", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "ChildExpTypeChoice", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "ChildStartDate", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "ChildReceiptCurrencyChoice", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "ChildJustification", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "ChildExpenseGroup", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "ChildLocationName", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "ChildRBLocation", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "ChildDetailMerchantName", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "ChildDetailTaxClassification", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "ChildDetailTaxCode", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "ChildAirTravelType", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "ChildAirTicketClass", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "ChildAirTicketNumber", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "ChildAirFromLocation", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "ChildAirToLocation", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "ChildAccEndDate", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "ChildMealNumberAttendees", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "ChildMealAttendees", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "ChildDetailReceiptAmount", STYLE_CLASS_ATTR, "SharedCSS");
    createDirectBinding(oawebbean, "IPL_ReceiptCurrency", STYLE_CLASS_ATTR, "DetailReceiptAmountCSS");
    createDirectBinding(oawebbean, "IPL_OriginalReceiptAmount", STYLE_CLASS_ATTR, "DetailReceiptAmountCSS");
    createDirectBinding(oawebbean, "IPL_ExchangeRate", STYLE_CLASS_ATTR, "DetailExchRateCSS");
    createDirectBinding(oawebbean, "IPL_InverseExchangeRate", STYLE_CLASS_ATTR, "DetailExchRateCSS");
    createDirectBinding(oawebbean, "ChildDetailDailyRate", STYLE_CLASS_ATTR, "DetailDailyRateCSS");
    createDirectBinding(oawebbean, "ChildNumberOfDays", STYLE_CLASS_ATTR, "DetailDailyRateCSS");
    createDirectBinding(oawebbean, "ExpenseReimAmountHeader", TEXT_ATTR, "ReceiptAmountColHeader");
    createDirectBinding(oawebbean, "IPL_ReimbursementAmount", CURRENCY_CODE, "ReimbursementCurrencyCode");
    createDirectBinding(oawebbean, "ItemizationDetailsHeader", TEXT_ATTR, "ChildDetailHeader");
    createDirectBinding(oawebbean, "ChildDetailDailyRate", CURRENCY_CODE, "ReceiptCurrencyCode");
    createDirectBinding(oawebbean, "ChildDetailReceiptAmount", CURRENCY_CODE, "ReceiptCurrencyCode");
    createDirectBinding(oawebbean, "ChildDetailReimbursAmt", CURRENCY_CODE, "ReimbursementCurrencyCode");
    createDirectBinding(oawebbean, "ReceiptAmount", CURRENCY_CODE, "ReceiptCurrencyCode");
    createDirectBinding(oawebbean, "IPL_OriginalReceiptAmount", CURRENCY_CODE, "ReceiptCurrencyCode");
    createDirectBinding(oawebbean, "ChildGuestTypeSortableHeader", REQUIRED_ATTR, "FB_GuestTypeColReq");
    createDirectBinding(oawebbean, "ChildGuestNameSortableHeader", REQUIRED_ATTR, "FB_GuestNameColReq");
    createDirectBinding(oawebbean, "ChildGuestTitleSortableHeader", REQUIRED_ATTR, "FB_GuestTitleColReq");
    createDirectBinding(oawebbean, "ChildGuestTaxIdSortableHeader", REQUIRED_ATTR, "FB_GuestTaxIdColReq");
    createDirectBinding(oawebbean, "ChildGuestEmployerSortableHeader", REQUIRED_ATTR, "FB_GuestEmployerColReq");
    createDirectBinding(oawebbean, "ChildGuestEmployerAddrSortableHeader", REQUIRED_ATTR, "FB_GuestEmployerAddressColReq");
    createDirectBinding(oawebbean, "BusinessExpValue", TEXT_ATTR, "ItemizationTotalBusinessExpenses");
    createDirectBinding(oawebbean, "BusinessExpValue", CURRENCY_CODE, "ReceiptCurrencyCode");
    createDirectBinding(oawebbean, "PersonalExpValue", TEXT_ATTR, "ItemizationTotalPersonalExpenses");
    createDirectBinding(oawebbean, "PersonalExpValue", CURRENCY_CODE, "ReceiptCurrencyCode");
    createDirectBinding(oawebbean, "ReceiptAmountValue", TEXT_ATTR, "ExpenseReportLinesVO", "ReceiptCurrencyAmount");
    createDirectBinding(oawebbean, "ReceiptAmountValue", CURRENCY_CODE, "ReceiptCurrencyCode");
    OAMessageTextInputBean oamessagetextinputbean = (OAMessageTextInputBean)oawebbean1.findChildRecursive("IPL_Justification");
    oamessagetextinputbean.setWrap("soft");
    oamessagetextinputbean = (OAMessageTextInputBean)oawebbean1.findChildRecursive("ChildJustification");
    oamessagetextinputbean.setWrap("soft");
    String s = oapagecontext.getParameter("source");
    String s1 = oapagecontext.getParameter("event");
    if("DuplicateItemization".equals(s) || "RemoveItemization".equals(s) || "AddItemization".equals(s) || "SingleSelectionChange".equals(s1))
    setFocusToField(oamessagechoicebean1.getID(), oawebbean);
    } else
    if("ChildStartDateUpdate".equals(s1))
    OAMessageTextInputBean oamessagetextinputbean1 = (OAMessageTextInputBean)oawebbean.findChildRecursive("ChildDetailDailyRate");
    OADataBoundValueViewObject oadataboundvalueviewobject = new OADataBoundValueViewObject(oamessagetextinputbean1, "DetailDailyRateRendered", "DetailsPagePVO");
    Boolean boolean1 = (Boolean)oadataboundvalueviewobject.getValue(oapagecontext.getRenderingContext());
    if(boolean1 != null && boolean1.booleanValue())
    setFocusToField("ChildDetailDailyRate", oawebbean);
    } else
    setFocusToField("ChildDetailReceiptAmount", oawebbean);
    } else
    if("StartDateUpdate".equals(s1) && "IPL_StartDate".equals(s))
    setFocusToField("IPL_StartDate", oawebbean);
    } else
    if("IPL_ReceiptCurrencyChange".equals(s1) && "IPL_ReceiptCurrency".equals(s))
    setFocusToField("IPL_ReceiptCurrency", oawebbean);
    private void setFocusToField(String s, OAWebBean oawebbean)
    OABodyBean oabodybean = (OABodyBean)OAWebBeanUtils.findParentByType(oawebbean, "BODY", oracle/apps/fnd/framework/webui/beans/OABodyBean);
    oabodybean.setInitialFocusId(s);
    private void createPPRFlexRegions(OAPageContext oapagecontext, OAWebBean oawebbean)
    OAWebBean oawebbean1 = oawebbean.findChildRecursive("AdditionalFields");
    OAWebBean oawebbean2 = oawebbean.findChildRecursive("ChildAdditionalFields");
    String s = oapagecontext.getProfile("AP_WEB_DESC_FLEX_NAME");
    if(s == null || "N".equals(s) || "H".equals(s))
    return;
    OAApplicationModule oaapplicationmodule = oapagecontext.getApplicationModule(oawebbean1);
    Vector vector = (Vector)oaapplicationmodule.invokeMethod("getExpenseTypesVector");
    Vector vector1 = (Vector)vector.elementAt(0);
    Vector vector2 = (Vector)vector.elementAt(1);
    Vector vector3 = new Vector();
    Vector vector4 = new Vector();
    vector.addElement(vector4);
    Boolean boolean1 = (Boolean)oaapplicationmodule.invokeMethod("IsItemizedLine");
    for(int i = 0; i < vector1.size(); i++)
    String s1 = vector1.elementAt(i).toString();
    String s2 = (String)vector2.elementAt(i);
    String s3 = (new StringBuilder()).append("DFF_").append(s1).toString();
    int j = createFlexBean(true, oapagecontext, oawebbean1, s1, s2, s3);
    if(Boolean.TRUE.equals(boolean1))
    String s4 = (new StringBuilder()).append("ChildDFF_").append(s1).toString();
    j = createFlexBean(false, oapagecontext, oawebbean2, s1, s2, s4);
    vector4.addElement(new Integer(j));
    if(oapagecontext.isBackNavigationFired(true))
    return;
    } else
    Serializable aserializable[] = {
    vector
    Class aclass[] = {
    java/util/Vector
    oaapplicationmodule.invokeMethod("configurePVOForDFF", aserializable, aclass);
    oaapplicationmodule.invokeMethod("syncAttCategoryWithExpType");
    return;
    private int createFlexBean(boolean flag, OAPageContext oapagecontext, OAWebBean oawebbean, String s, String s1, String s2)
    OAMessageLayoutBean oamessagelayoutbean = (OAMessageLayoutBean)createWebBean(oapagecontext, "MESSAGE_LAYOUT_BEAN", null, null);
    oawebbean.addIndexedChild(oamessagelayoutbean);
    String s3 = (new StringBuilder()).append("DFF_").append(s).append("Rendered").toString();
    ArrayList arraylist = (ArrayList)oapagecontext.getTransactionTransientValue("flexList");
    Object obj = null;
    Object obj1 = null;
    if(arraylist != null)
    OADescriptiveFlexBean oadescriptiveflexbean = (OADescriptiveFlexBean)arraylist.get(0);
    String s4 = (String)arraylist.get(1);
    if(oadescriptiveflexbean != null && s4 != null && s.equals(s4) && oadescriptiveflexbean.getUINodeName().equals(s2))
    oamessagelayoutbean.addIndexedChild(oadescriptiveflexbean);
    oamessagelayoutbean.setAttributeValue(RENDERED_ATTR, new OADataBoundValueViewObject(oamessagelayoutbean, s3, "DetailsPagePVO"));
    oapagecontext.removeTransactionTransientValue("flexList");
    return oadescriptiveflexbean.getIndexedChildCount(null) - 2;
    OADescriptiveFlexBean oadescriptiveflexbean1 = (OADescriptiveFlexBean)createWebBean(oapagecontext, "DESCRIPTIVE_FLEX", null, s2);
    oamessagelayoutbean.addIndexedChild(oadescriptiveflexbean1);
    oamessagelayoutbean.setAttributeValue(RENDERED_ATTR, new OADataBoundValueViewObject(oamessagelayoutbean, s3, "DetailsPagePVO"));
    oadescriptiveflexbean1.setAttributeValue(READ_ONLY_ATTR, new OADataBoundValueViewObject(oadescriptiveflexbean1, "SDP_PageReadOnly", "DetailsPagePVO"));
    oadescriptiveflexbean1.setContextListRendered(false);
    oadescriptiveflexbean1.setAttributeValue(FLEXFIELD_NAME, "AP_EXPENSE_REPORT_LINES");
    oadescriptiveflexbean1.setAttributeValue(FLEXFIELD_APPLICATION_SHORT_NAME, "SQLAP");
    oadescriptiveflexbean1.setAttributeValue(REGION_APPLICATION_ID, OIECommonConstants.STATIC_INTEGER_222);
    if(flag)
    oadescriptiveflexbean1.setViewUsageName("ExpenseReportLinesVO");
    } else
    oadescriptiveflexbean1.setViewUsageName("ItemizedLinesVO");
    oadescriptiveflexbean1.setFlexContext(oapagecontext, s1);
    try
    oadescriptiveflexbean1.processFlex(oapagecontext);
    catch(Exception exception)
    oamessagelayoutbean.setRendered(false);
    return 0;
    return oadescriptiveflexbean1.getIndexedChildCount(null) - 2;
    private void ManualPPR(OAPageContext oapagecontext, OAWebBean oawebbean)
    OAPartialPageRenderUtils.addPartialTargets(oapagecontext, "DetailsPageButtonBar");
    OAPartialPageRenderUtils.addPartialTargets(oapagecontext, "LeftColumn");
    OAPartialPageRenderUtils.addPartialTargets(oapagecontext, "RightColumn");
    OAPartialPageRenderUtils.addPartialTargets(oapagecontext, "ChildLeftColumn");
    OAPartialPageRenderUtils.addPartialTargets(oapagecontext, "ChildExpTypeLayout");
    OAPartialPageRenderUtils.addPartialTargets(oapagecontext, "ChildRightColumn");
    OAPartialPageRenderUtils.addPartialTargets(oapagecontext, "MerchantFieldsHeader");
    OAPartialPageRenderUtils.addPartialTargets(oapagecontext, "MerchantFieldsLayout");
    OAPartialPageRenderUtils.addPartialTargets(oapagecontext, "IPL_MerchantFieldsHeader");
    OAPartialPageRenderUtils.addPartialTargets(oapagecontext, "IPL_MerchantFieldsLayout");
    OAPartialPageRenderUtils.addPartialTargets(oapagecontext, "IPL_LeftColumn");
    OAPartialPageRenderUtils.addPartialTargets(oapagecontext, "IPL_RightColumn");
    OAPartialPageRenderUtils.addPartialTargets(oapagecontext, "ChildEmployeeTableRN");
    OAPartialPageRenderUtils.addPartialTargets(oapagecontext, "ChildGuestTableRN");
    OAPartialPageRenderUtils.addPartialTargets(oapagecontext, "ItemizationMasterTable");
    protected static boolean PageHasExceptions(OAPageContext oapagecontext, OAWebBean oawebbean)
    Object aobj[] = (Object[])(Object[])oapagecontext.getTransactionTransientValue("FWK_PAGE_ERROR_TRXN_CACHE");
    Boolean boolean1 = (Boolean)aobj[3];
    return boolean1.booleanValue();
    private static void ClearExceptions(OAPageContext oapagecontext, OAWebBean oawebbean)
    Object aobj[] = (Object[])(Object[])oapagecontext.getTransactionTransientValue("FWK_PAGE_ERROR_TRXN_CACHE");
    Vector vector = (Vector)aobj[0];
    Vector vector1 = (Vector)aobj[1];
    Vector vector2 = (Vector)aobj[2];
    vector.removeAllElements();
    vector1.removeAllElements();
    vector2.removeAllElements();
    aobj[3] = Boolean.FALSE;
    Edited by: user13079906 on Oct 1, 2010 1:14 AM

  • Use cue points to automatically pause flv

    I have a video that I would like to make play in steps. I
    already have a custom flv playbar, so I would like to use cue
    points to control it
    Thanks in advance

    i am looking for this same answer. i am not a pro at flash
    but good enough to make my way around. Here is what I have done so
    far....
    using components i dragged the FLVPlayBack onto stage, i set
    the source of the playback to my flv. as of right now, 'cuepoints'
    is set to none. i'd like to be able to set in about 5 cue points
    and have them auto pause each time they come up. any help would be
    appreciated!
    thanks,
    travis

  • Problems Using Cue points to Loop Video

    Ok, so I want to use cue points to navigate through video.  I want to start by simply looping the video from the end back to the beginning.  I keep getting an invalid seek error 1003.  Here is my code.  Any help would be much appreciated.  Thanks
    import fl.video.MetadataEvent;
    Movie.addEventListener(MetadataEvent.CUE_POINT, loopFunction);
    function loopFunction(e:MetadataEvent):void
        if (e.info.name == "end1")
            Movie.seekToNavCuePoint("beginning1");
            Movie.play();

    At least you are getting notified even if the seek doesn't work.
    A brief workaround could be to iterate over the cue points you detect in metadata, assigning each cue point name and time in an object. Once you hit the cue point you desire, see if the object has the time value and seek() to the time for that cue point rather than seeking for it by name.
    e.g. (written briefly, you get the idea):
    // object to hold time values
    var cuePointArr:Object = new Object();
    function onMetaData(infoObject:Object):void
        var cueIndex:String;
        for (cueIndex in infoObject.cuePoints)
            trace("Adding cue name[" + infoObject.cuePoints[cueIndex].name + "] at time[" + infoObject.cuePoints[cueIndex].time + "]");
                        // store as name = time
                        cuePointArr[infoObject.cuePoints[cueIndex].name] = infoObject.cuePoints[cueIndex].time;
    function loopFunction(e:MetadataEvent):void
              // correct cue point and has a value in cuePointArr?
        if ((e.info.name == "end1")&&(curPointArr[e.info.name] != null))
                        // seek to time value
            Movie.seek(Number(cuePointArr[e.info.name]));
            Movie.play();
    Moving 900mph here so forgive any typos but turning it into a normal seek based on the time value should work for now.

  • Cue point event to display text link in movie

    HI -- This may be a fairly mundane question but I am having a
    hard time figuring it out. I have a movie with several cue point
    events. I would like a text link to be added to the right of the
    movie when a certain cue point is hit. I would like the link to
    stay in place and each time a new cue point is hit, a new link is
    added below the last link.
    I am stuck and can't seem to get this to work. Having a hard
    time figuring out the action script. Any suggestions? I have
    already followed the macromedia tutorials on this subject and am
    just floundering.
    thanks!

    Since you are storing the number as an 'int' and then converting that int to a String for display, then you shouldn't expect 0's to be added on if the number is currently 0:
    1) curnum = 0
    2) 0 key is pressed
    3) curnum = curnum * 10 + 0 = 0 * 10 + 0 = 0
    A real calculator wouldn't keep appending 0's... at least, not a simple calculator comparable to the one you are writing. If you want to append 0's, try this:
    - Keep a count of the number of 0's pressed.
    - If curnum is changed to 0 (by pressing clear, for example, or turning on the calculator), reset the zero count to 1.
    - Each time the '0' key is pressed, if curnum is 0, then increment the '0' count.
    - When you update your display, use the following logic: if curnum is 0, then display the number of 0's specified in the zero count, otherwise just display the value of curnum.
    Jason

  • Rookie using cue points

    Is is possible to use multiple xml files feeding in to
    multiple dynamic text boxes? I want to have close captioning, as
    well as background text which pops up when the speaker makes a
    point I want to emphasize.
    Am I barking up the wrong tree? Should I try a different
    approach?
    Thanks in advance for you advice/help. I'm using Flash CS3,
    AS 2.

    Ok, let's say that I made a cue point in an flv with Media Encoder
    which has the cuepoint name of wingsdown and the parameter of WI
    NGSDOWN  with a value of 0.  How would I be able to use that with an evenListener
    to get something to happen elswhere on the stage?

  • How to change IM text box from right side to botto...

    During a video call with most of my contacts, the IM text box is below the video box and at the bottom of the screen. However, when my son calls (on new Samsung S5) the IM text box is to the right of the video box and on the right side of my screen.
    I prefer to have it at the bottom and would like to know how to change it.

    I have seen both layouts posted here in screen shots. I think that this may be one of those things that changes magically according to window width. Try dragging the window to a wider or narrower aspect ratio.
    This kind of thing should be an option, with an "auto" setting to preserve the current width-sensitive behavior for those who like it.
    Sean Ellis - uses Skype chat for serious work
    Click here to read my blog post on Skype 7 and basic principles of GUI design

  • Help - Using Cue Points to Play Movie Clips

    I have a FLV, into which I have placed about 8 cue points. I
    want a movie clip to play - (each movie clip is simply a snippet of
    supporting text for the video) - when a cue point is "hit". I am
    really quite baffled by most of the documentation that I have read
    so far.
    How can I do this? Many, many thanks for any support you can
    give.
    tommy53

    You can build out a menu by reading the cuePoints array in
    the NetStream.onMetadata handler, or by using the MetadataEvent
    with the FLVPlayback component (AS3). The simple thing for me to
    say is to refer to Chapter 9 of my new Flash Video book. :) (see
    link in my signature below.)

  • How to use cue points

    I set up cue points as events in my flv. I want a button
    press to take the video to a specific named cue point. The
    documents I'm finding in Adobe seem to be from Flash 8, but the flv
    player I'm using is AS3. I get compiler error when I try to test
    it. If anyone can point me to the right documentation, that would
    be great.

    Al,
    Select the text, and in the Text Inspector, List tab, choose your desired format.
    It shouldn't matter if you are using more than one column, as in this example:
    Jerry

  • Final Cut Pro to Flash  -- Inserting and Using Cue Points

    I want to export a flash video using File - Export - Using Quick Time Conversion and selecting Flash. Under options for Flash, I see something about "Cue Points".
    My assumption is that these would be points that you can insert that are similar to chapter markers and that you could have the Flash player on a web page jump back and forth between them.
    Does anyone know of any documentation on inserting these points in Final Cut export? I couldn't figure it out. It looks like you give them a name and a timecode. I could not enter the timecode.
    How about over on the player side? I assume some sort ActionScript in Flash is required. Has anyone seen a simple example/tutorial of these capabilities?

    Apart from disabling time machine, iCal and any other programs or applications from taking focus. Time machine and software updates can certainly be told not to try as far as I recall.

  • Using Underscore In OIDDAS Group Search Text Box

    Hi Everyone,
    I am using the 'Directory' tab within the Oracle Self Service Console to search for user Groups.
    Most of my groups are of the form : PORT_xx_xxxx
    I am trying to search for all groups beginning PORT_ but if I enter that as a search query the underscore is treated as a single character wildcard. In my case this means the search results display PORT_xx_xxxx groups as well as a load of PORTAL_xxxx groups
    Is there a way to escape the underscore so that it is treated as a character and not a wildcard?
    If this was SQL then there is plenty of info out there about escaping underscores but nothing in relation to normal search text boxes.
    Matt

    Hi Luis,
    I tried PORT\_ but it still returns PORT_xx and PORTAL_xx results.
    I've got a feeling the text box filters out the usual escape characters making escaping the underscore impossible. It a bit annoying because it isn't as if the underscore is an unusual character to have in a group name!
    Matt

  • Using cue points in Flash CS5 to trigger actions

    Hi there,
    I'm looking to use a cue point in a video to trigger an action, in this case go to and play at a movie clip on the stage. Is this possible. My setup is as follows:
    I've a video on stage with the instance name 'vid', with a cue point 'lap1' (an actionscript cue point created directly in Flash using the properties panel). When the video reaches cue point 'lap1', I want it to go to and play frame 2 of a movie clip I've got on stage with the instance name 'cueMovie'.
    Any help would be great; I've looked online for tutorials but no joy.
    Cheers,
    Conor

    1  stop();
    2  varListenerObject:Object = new Object();
    3  listenerObject.cuePoint = function(eventObject:Object):Void{
    4  trace(Cue Point:"+ eventObject.info.name);
    5  trace("event:"+eventObject.info.type);
    6  if(eventObject.info.name=="cue Point 1"){
    7  gotoAndStop(2);
    8  }
    9
    10 }
    if your cue point is named cue point 1 then you can leave script as it is if not you have to insert your cue point name> Also it has to be an event type of cue point to work.

  • Using cue points to trigger events on the main timeline...

    Hi--
    I have successfully placed an flv (video) file (progressive
    download) on the main timeline of my movie with controls to play
    and pause (Flash 8 Professional). So far, so good!
    NOW TWO PROBLEMS: Does anyone know how to set it up so that
    when a specific cue point is reached in the video, it triggers an
    action on the main timeline? In this case, once the video is over,
    I want the main timeline to gotoAndPlay frame 3. Specific script to
    do this would be great!
    The other action I'd like to happen is that when the video
    begins, it targets a scrolling text mc ("text") in the main
    timeline and tells it to gotoAndPlay frame 2.
    Any advice would be GREATLY appreciated!!! Many
    thanks!!!

    I usually start off solving problems with the livedocs, as I
    recommend for anyone. The following link will take you to the
    NetStream.onCuePoint handler. This is what you need.
    http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context= LiveDocs_Parts&file=00002561.html
    You can have this code on the main timeline. When the
    cuepoint is hit, it will invoke this event handler and inside is
    where your gotoAndPlay( ) should go.
    Your other question about the text will get activated by the
    same handler. Just have a conditional statement (if, switch, etc.)
    to differentiate between the two events. The text itself can be
    mask inside a movieclip.
    Does this help?

  • Using Cue Points to advance to next scene

    I'm pretty new to AS3. I'm a designer trying to do it myself.
    What I'm trying to do is use a cue point at the end of my FLV (which is loaded using ui loader in my flvSWF) to go to the next scene in my mainSWF file.
    here's the code I'm using in my flvSWF:
    import fl.video.VideoEvent;
    import fl.video.MetadataEvent;
    IntroMovie.addEventListener(MetadataEvent.CUE_POINT, cp_listener); 
    function cp_listener(eventObject:MetadataEvent):void { 
    trace("Elapsed time in seconds: " + IntroMovie.playheadTime); 
    trace("Cue point name is: " + eventObject.info.name); 
    trace("Cue point type is: " + eventObject.info.type); 
    if (eventObject.info.name == "CueNextScene") {
    this.gotoAndPlay("desk");
    But of course it does not work. 
    A.  my traces don't show up. 
    B. Am I suppose to use this code in my mainSWF instead of the flvSWF
    C. An FYI  the IntroMovie is one of 4 random movies that gets played for the intro in mainSWF. The random script works fine.

    You can build out a menu by reading the cuePoints array in
    the NetStream.onMetadata handler, or by using the MetadataEvent
    with the FLVPlayback component (AS3). The simple thing for me to
    say is to refer to Chapter 9 of my new Flash Video book. :) (see
    link in my signature below.)

Maybe you are looking for