Loaded child movie controlling container parent

hi,
i'm a designer trying to step up my flash skills and have a scripting problem that's causing me trouble.
essentially i have a child swf loaded into a container in a parent swf and want the child to be able to instruct the parent.
to explain in full, the child contains an flv with bespoke video player components. it's container sits in one frame of the parent.
when the flv finishes playing, i need the parent swf to move onto another frame.
as it's a controllable flv, it isnt possible to predict the exact length of time the child will need to be present, so it literally needs to tell the parent it's finished playing at that very point.
it's actionscript 2 for flash 8.
unfortunately my scripting isnt up to this, and i cant seem to find any info to help me out.
any help would be greatly appreciated.
thanks in advance!

thanks, that's one half of the battle!
the remaining problem is i have a controllable flv in the child swf, therefore i can't guarantee the length of time the flv will run as it may be paused etc.
is there some script i can tag on first that recognizes when the flv has ended?
realistically this is a topic in itself, but if you can help it would be appreciated.
thanks.

Similar Messages

  • How a SWF Child can control a Parent's function/variable ?

    For instance, in the below code a parent can control a SWF
    child’s function “alert ()”.
    But how a SWF child can control parent’s function
    “ReceivingChildMsg()” ?

    Hi clbeech
    I simplified the code to simply get the swf child controlling
    its parent variable tp ( textfield ) and its content.
    I used your suggestion (parent.ReceivingChildMsg( ) and
    root.ReceivingChildMsg( )) but I get an error message:
    quote:
    “1061: Call to a possibly undefined method
    ReceivingChildMsg through a reference with static type
    flash.display:DisplayObjectContainer.”
    Here is the code:
    package
    import flash.display.MovieClip;
    import flash.text.*;
    import flash.events.*;
    import flash.display.SimpleButton;
    public class Child extends MovieClip
    public function Child():void
    btn.addEventListener(MouseEvent.CLICK,clickHandler);
    public function clickHandler(event:MouseEvent):void
    //root.ReceivingChildMsg( "Received Child Message");
    parent.ReceivingChildMsg( "Received Child Message");
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    package
    import flash.display.MovieClip;
    import flash.display.Loader;
    import flash.net.URLRequest;
    import flash.events.Event;
    import flash.display.LoaderInfo;
    import flash.display.Sprite;
    import flash.text.*;
    import flash.display.SimpleButton;
    public class Parent extends MovieClip
    private var loader:Loader;
    public function Parent():void
    loader = new Loader();
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
    onLoadComplete);
    loader.load(new URLRequest('Child.swf'));
    private function onLoadComplete(e:Event):void
    var loaderInfo:LoaderInfo = e.target as LoaderInfo;
    addChild(e.target.content);
    var swf:Object = loaderInfo.content;
    swf.x = 75;
    swf.y = 50;
    public function ReceivingChildMsg(msg:String):void
    // tp textfield object is created directly in flash
    tp.text = msg;

  • I down loaded two movies to watch on a flight, when I tried two watch either one of them, it said" not authorized for this content"   Not sure what this means. I don't think I have child control on.

    I Down loaded two movies to watch on a flight. When I tried to watch either one of them it said " not authorized to watch this content" and it would load to watch. I donot believe I have child controls on.

    I have read about some cases where movies rented or purchased on one device will not play on another device. Seems to happen mostly with Apple TV and iPads. One way some have worked around it is to cable from the downloaded device to a TV or Apple TV.
    Were these movies purchased or rented from iTunes? Not sure, but that almost sounds like a iTunes Password problem. Maybe try checking that you're signed in as the same account that purchased the movies.

  • Controlling Captivate movies from a parent Flash movie

    Hello, i am in the works of onverting my old AS2 code, for controlling Captivate movies lodaded into a Flash container, over to AS3 becasue of the transition to Captivate 5. There were some weird issues in AS2 and Captivate 3 which i fortunately vere able to solve when i first made this container. Now i am getting weird and unpredictable results when trying to set the appropriate variables in the Captivate move. The main culprit is: rdcmndRewindAndStop, it does indeed rewind the movie, but... it starts playing again... Could anyone be so kind to give me the reason why or better even provide me with a solution to this unneeded change, its quite annoying, and no rdcmndPause does not help, not before rdcmndRewindAndStop or after, the movie is happily trottling along...
    sincerely
    Frustrated developer with a bloody short deadline

    Hello and thanks for replying, yes it worked! But... we have to manually edit 40+ files to make this stupid thing to work... Do you know if there is any way i can put those scripts in a flash object, or better even modify the movie from the parent container? This is making our production process way longer than is affordable tbh, a single project consists usually of over 100 captivate movies, and we simply can't manually edit each and every one of them.
    I wish i could get my hands on a Captivate developer ;p

  • Does table STPOX contain parent-child relationship between components

    Hello
    I need to get a list of components of SO BOM.
    FM CS_BOM_EXPL_KND_V1 exports an output table STPOX.
    Does this table contain parent-child relationship between components? If yes , can somebody tell me which fields contain parent child id.
    thanks

    Hi,
    STPOX is not a table, it is a structure & hence there is no storing of data in a structure. The table which stores this info is STPO.
    To get the link you can refer to STPO-STLNR & pass this value to MAST-STLNR, this way you can link the child with its parent.
    Regards,
    Vivek

  • How to load 2 CVI panels as child window to a parent window created by VC++?

    Hello, I want to load 2 CVI panels as child window to a main window, which is created by VC++.
    the CVI panel is in a dll file(created by LabCVI). 
    the Load child panel routine is something like following,
    int __stdcall RunDLLUI (int* hParent )
    int hpanel;
    HWND hWnd;
    if ((hpanel = LoadPanelEx (0, "guidlluir.uir", PANEL, __CVIUserHInst)) < 0)
    return 0;
    // set parent
    if ( hParent != 0 )
    GetPanelAttribute (hpanel, ATTR_SYSTEM_WINDOW_HANDLE, (int *)&hWnd);
    SetParent( hWnd, (HWND)hParent);
    DisplayPanel (hpanel);
    // RunUserInterface ();
    return 1;
    The problem is, if I call  RunUserInterface (), then no window shown, it is, I think, that this routine blocks both the other panel to be created and the main window to be shown.  but if I don't call it, the 2 child windows won't response mouse event. seems no message dispatching for them.
    so how can I get what I want, thx a loooooooooooooooooooooooot.

    Hello, I want to load 2 CVI panels as child window to a main window, which is created by VC++.
    the CVI panel is in a dll file(created by LabCVI). 
    the Load child panel routine is something like following,
    int __stdcall RunDLLUI (int* hParent )
    int hpanel;
    HWND hWnd;
    if ((hpanel = LoadPanelEx (0, "guidlluir.uir", PANEL, __CVIUserHInst)) < 0)
    return 0;
    // set parent
    if ( hParent != 0 )
    GetPanelAttribute (hpanel, ATTR_SYSTEM_WINDOW_HANDLE, (int *)&hWnd);
    SetParent( hWnd, (HWND)hParent);
    DisplayPanel (hpanel);
    // RunUserInterface ();
    return 1;
    The problem is, if I call  RunUserInterface (), then no window shown, it is, I think, that this routine blocks both the other panel to be created and the main window to be shown.  but if I don't call it, the 2 child windows won't response mouse event. seems no message dispatching for them.
    so how can I get what I want, thx a loooooooooooooooooooooooot.

  • Load & Unload Movie Issue

    Hi Guys:
    Have 2 unable solve issues, would be much appreciated if anyone could help.
    // ISSUE 1 //
    I am experiencing an issue with Load & Unload Movie.  What happen is that I am trying to load an external SWF into a movie clip call movieContainer in my main website.  This external SWF file has timeline that perform a animation when it's loaded into the movieContainer.
    I can load and unload the movie with no problem...the issue is that after I unload the SWF and then at any point of the movie on the main website I click to load the SWF back to the stage.....the timeframe of the SWF file stay at where it get left off(when it's unloaded).  I am trying to make it play start all over again.
    I try the movieContainer.content.gotoAndPlay(1); but it doesn't do anything. Any idea how I could make this work?
    Here is my code:
    var content:Loader = new Loader();
    content.load(new URLRequest("externalSwf/content.swf"));
    loadMovieButton.addEventListener(MouseEvent.CLICK, loadMovieButtonClicked);
    function loadMovieButtonClicked(e:MouseEvent):void{
        movieContainer.addChild(content);
    // ISSUE 2 //
    In my external SWF file, I have create a loading loader at the 1st frame.  But it doesn't play all the time when I testing on the server.  It works just fine when I test locally with TEST MOVIE.  Not only it doesn't play all the time.....it suppose to play from 2nd frame of the movie after the loading is finished (I have a short animation play between frame 2 - frame 20)  Instead of playing from frame 2 to frame 20, the animation just jump straight to frame 20...which mean the user won't see the animation between frame 2 - frame 20.
    import flash.events.ProgressEvent;
    function update(e:ProgressEvent):void
    var percent:Number = Math.floor( (e.bytesLoaded*100)/e.bytesTotal );
    if(preloaderMC is MovieClip){
    preloaderMC.gotoAndStop(percent);
    //preload_txt.text = String(percent);
    if(percent == 100){
    gotoAndPlay(2);
    loaderInfo.addEventListener(ProgressEvent.PROGRESS, update);
    // Extra test for IE
    var percent:Number = Math.floor( (this.loaderInfo.bytesLoaded*100)/this.loaderInfo.bytesTotal );
    if(percent == 100){
    nextFrame();
    stop();
    Many Thanks!

    Thanks for the reply, the code I use to load the external SWF is:
    The button is within a movieClip: commercialScrollBar_mc
    The button instance name is: stackPancakeBar
    The external SWF get to load into a movieClip container call: projectDetailsContainer_mc
    var ldr:Loader = new Loader();
    ldr.load(new URLRequest("projectsCommercial/stackPancakeBar.swf"));
    commercialScrollBar_mc.stackPancakeBar.addEventListener(MouseEvent.CLICK, stackPancakeBarClicked);
    function stackPancakeBarClicked(e:MouseEvent):void{
        MovieClip(ldr.content).gotoAndPlay(1);
        projectDetailsContainer_mc.addChild(ldr);
    I was thinking does it has anything to do with the UNLOAD script I have on the external SWF file? Below are the code for removing the child.
    back_btn.addEventListener(MouseEvent.CLICK, removeProjectDetails);
    function removeProjectDetails(e:MouseEvent):void{
        this.parent.parent.removeChild(this.parent);
    Thanks Heaps, by the way, do you have any idea why the loading sequence doesn't get to play every time?  Or perhape the file size is too small?

  • How do I call on a specific child in a container

    I am loaded images into a container that is being displayed on a map.  I've created a string of my images names and am looping a loader to load each image and add them to the container.
    var overlays=["compsmall.png","compsmall3.png","compsmall3.png","compsmall4.png"]
    var overlay_container:MovieClip= new MovieClip();
    function calloverlays():void
    for (var i:Number = 0; i < overlays.length; i++)
    var overlay_url = overlays[i];
    var overlay_loader = new Loader();
    overlay_loader.load(new URLRequest(overlay_url));
    overlay_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, overlayLoaded);
    function overlayLoaded(e:Event):void
    var my_overlay:Loader = Loader(e.target.loader);
    overlay_container.addChild(my_overlay);
    Once all of my images are loaded into the container overaly_container how can I call on a specific child of the container?  For example how can I call on compsmall2.png once its been loaded into overlay_container?
    I place these images onto a map by placing the whole container at the correct location.  I then turn layers on/off by adding and removing the children within the container.  This is why I'd like to specify a specific object in the parent.
    Thanks in advance,
    j

    Well, there are better ways given how you're loading - nesting functions is generally frowned upon... but this should get you started anyway. This is a little function that you could use to hide one of your loaded images:
    function hideLayer(image:String){
        var c:int = overlay_container.numChildren;
        for(var i:int = 0; i < c; i++){
            if(Loader(overlay_container.getChildAt(i)).contentLoaderInfo.url.indexOf(image) != -1){
                overlay_container.getChildAt(i).visible = false;
                break;
    and then use like: hideLayer("compsmall2.png");
    But like I said, there are better ways. But you'd need to restructure your code - get rid of the nested functions, and the loop... then load each image one at a time. Then you know the index in the array of the image being loaded and can match that with the index inside the container...

  • Flash movie controlling Captivate navigation in an Aggregator project

    Hi everyone,
    I have a Flash movie which shows a Continue button after an interaction is completed by the user. This functionality prevents the user from clicking through the interaction slides so there is no captivate playbar or nav available. This Continue button works fine in advancing the Captivate movie that contains the Flash movie while published as an individual captivate file. However, when I take that published captivate movie and load it into an aggregator project, the communication of the cpCmndGotoSlide variable does not function properly. I'm using the following code in the Flash movie:
    // captivate access...
        var myRoot:MovieClip = MovieClip(root);
        var cptxMovie:MovieClip = MovieClip(myRoot.parent.root);
        var slide:String = cptxMovie.cpInfoCurrentSlide;   // get current slide for workaround below
    // Continue button handler...
    // cptxMovie.cpCmndNext = 1;  // wouldn't work at all
    var theNextSlide:Number = Number(slide) + 1;       // workaround for cpCmndNext not working
    cptxMovie.cpCmndGotoSlide = theNextSlide;
    Is this because I'm calling the root, and the root is the outermost parent (the aggregator movie) and I need to communicate with the immediate parent of the flash movie (the submodule captivate)?
    How can I access the intermediate captivate while it is in aggregator?
    This is an AS3 flash and captivate and I'm using Captivate 5.
    Thanks in advance!
    Brian

    Hi Tristan,
    Thanks for the reply and the great code!
    I tried it out and got the dynamic text field to display that it had found the main timeline, however, it still would not advance properly. Maybe I'm not doing something right with it. Here's how I had it:
    // captivate access...
    var cptxMovie:MovieClip = getParentWithProperty("cpCmndGotoSlide", this);
    var slide:String = cptxMovie.cpInfoCurrentSlide;
    function getParentWithProperty(propertyName:String, startFrom:DisplayObjectContainer):MovieClip {
              if (startFrom.hasOwnProperty(propertyName)) {
                        trace("Found the Captivate Main Timeline");
                        checkCode.text = "Found the Captivate Main Timeline";
                        return startFrom as MovieClip;
              else if (startFrom == stage) {
                        trace("Could not find the Captivate Main Timeline");
                        checkCode.text = "Could not find the Captivate Main Timeline";
                        return null;
              else {
                        return getParentWithProperty(propertyName, startFrom.parent);
    // advance button handler...
    function advance(e:Event):void {
              for (var i:uint=0; i < orangeCircleArray.length; i++) {
                        orangeCircleArray[j].removeEventListener(MouseEvent.ROLL_OVER, onRollover);
                        orangeCircleArray[j].removeEventListener(MouseEvent.ROLL_OUT, onRollout);
              var slideNum:Number = Number(slide);
              var theNextSlide:Number = slideNum + 1;
              cptxMovie.cpCmndGotoSlide = theNextSlide;
              btnContinue.removeEventListner(MouseEvent.CLICK, advance);
    Thanks! Brian

  • Disabled combo boxes don't display properly after loading a movie.

    Hi,
    I have a main movie that contains some combo boxes. Some of them may be disabled.
    By pressing a button I load another movie using loadMovie. The loaded movie also contains combo boxes.
    When the button is pressed, the clip that shows the combo boxes is removed from the stage and the loaded movie is displayed. By pressing another button, the loaded movie is unloaded and the clip with the combo boxes is displayed again.
    Well, once the other movie has been loaded, when I go back to the clip with combo boxes, the disabled combo boxes have a small gray button covering the black down arrow.
    I have determined that so long as the loaded movie contains combo box in the library, the problem occurrs, even if there is no actual instance of it.
    The combo boxes that are not disabled are not affected. The combo boxes are disabled by setting "cb_name.enabled=false".
    If the combo box is enabled, it displays correctly, but if disabled again, it goes wrong again.
    My project is targeting Flash 8, so it uses AS2.
    I'm using Flash CS4.
    This is a very simple example I did to make sure I wasn't doing anything funny:
    Initially:
    After pressing the button:
    After pressing the other button:
    The behaviour in a web browser is the same...
    I hope someone can help me with this. Thanks in advance!

    Thanks for the response.
    The "Load the movie" button:
    on(click)
        _parent.gotoAndStop(2);
    The 2nd frame:
    loadMovie("Test another child.swf",Container);
    stop();
    The "Unload and go back" button:
    on(click)
        unloadMovie(_parent.Container);
        _parent.gotoAndStop(1);
    Container is a movieClip with a dark gray square shape the size of the movie clip that is loaded. It doesn't exist on frame 1, only on frame 2.
    The combo boxes are inside a movie clip, and this is only on the stage on frame 1.
    This and the captures belong to a very simple test I did. If there is a way of posting files, I can post a zip file with the two .fla and the two .swf.

  • ADF Faces showDetailItem seems to "load" child elements twice on tab select

    Problem Summary:
    Child elements of showDetailItem are being loaded/executed twice. The parent of the showDetailItem is a showOneTab, and the child of showDetailItem is an af:objectImage, which calls a servlet I have written that outputs an image.
    The problem I am having is that when I click on a tab (showDetailItem) my servlet is called twice. It is as if the af:objectImage line of my JSP is executed twice.
    I have proven this with breakpoints in the servlet and printing a message to the console. The doGet() method of my servlet is called twice. Using breakpoints in the JSP I see the JSP is executed/read only once.
    Details:
    I am requesting help with this problem as I cannot solve it one my own. I have tried the following, but have had no success.
    1. Searched the web for a similar problem.
    2. Searched this forum for a similar problem.
    3. Consulted the ADF Developer Guide version 10.1.3.0
    4. Upgraded my version of JDeveloper to 10.1.3.2.0, which has ADF Faces (oracle.faces.dt) version 10.1.3.40.66.
    5. Debugging with print statements and stepping through JSP and servlet code.
    6. Created the simplest JSP possible that I could still produce the problem with.
    The Scenario:
    My goal is to use the ADF Faces showOneTab and showDetailItem tags to create two tabbed panels that will contain a blank tab (tab one) and an image (on tab 2).
    I have written a servlet, BrowserImage, which takes and ID as a parameter retrieves a BLOB from view object and then outputs a jpeg image to the browser. This is done by using the af:objectImage tag and specifying my servlet in the source parameter. The image is displayed fine, but I don't want the servlet to be called twice for performance reasons.
    Here is the simplest JSP that contains the problem.
    Note: I tried to simplify even more by calling the servlet in different ways (jsp:include etc..), but was unable to produce the problem. I think it is key that I call the servlet using an ADF Faces tag (af:objectImage).
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces/html" prefix="afh"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces" prefix="af"%>
    <%@ page import="javax.faces.context.FacesContext"%>
    <%@ page import="javax.faces.el.ValueBinding"%>
    <%@ page import="oracle.adf.model.BindingContext"%>
    <%@ page import="oracle.adf.model.binding.DCDataControl"%>
    <%@ page import="oracle.jbo.ApplicationModule"%>
        <%! FacesContext fc = FacesContext.getCurrentInstance(); %>
        <%! ValueBinding vb = fc.getApplication().createValueBinding("#{data}"); %>
        <%! BindingContext bc = (BindingContext)vb.getValue(fc); %>
        <%! DCDataControl dc = bc.findDataControl("AdSearchAppModuleDataControl"); %>
        <%! ApplicationModule am = (ApplicationModule)dc.getDataProvider();%>
        <% session.setAttribute("theAm", am); %>  
    <f:view>
      <afh:html>
        <afh:head title="showOneTest">
          <meta http-equiv="Content-Type"
                content="text/html; charset=windows-1252"/>
        </afh:head>
        <afh:body>
          <af:form>
            <af:showOneTab position="above">
              <af:showDetailItem text="showDetailItem 1">
              </af:showDetailItem>
              <af:showDetailItem text="showDetailItem 2">
                <af:objectImage source="/BrowserImage?imgId=1"/>
              </af:showDetailItem>
            </af:showOneTab>
          </af:form>
        </afh:body>
      </afh:html>
    </f:view>Note: The Java Script code included in the JSP is used to get an application module instance and pass it to my servlet in the session scope, so my servlet can access a view object, which contains the BLOB to output. I thought I should explain this as it may look confusing.
    Any help would be appreciated.
    Thanks,
    Mark

    I don't think adding a flag to my servlet will work. I left out some details in the original posting that will likely make the flag solution unusable.
    It is true that when I click on a tab that my servlet is called twice. My main goal is to ensure that the BrowserImage servlet only called when truly needed. The part I left out of the original posting is that if I click on a tab for the first time I can see my messages in the console indicating it was called twice.
    . BrowserImage severlet called (doGet)
    . BrowserImage servlet called (doGet)
    The key is if I click on the tab again I only see the message appear once.
    . BrowserImage severlet called (doGet)
    At first I thought this was the correct behavior, but I now feel this is wrong as I think the image is being cached locally on the client browser by ADF Faces, so the first call to BrowserImage is not made, but for some reason on the second "load" of the panel the BrowserImage servlet is called.
    To summarize the new details, I still think the showDetailItem is "loading" twice, but BrowserImage is only being called once, because the first loading used a locally cached image. This is my best guess, I did not prove this 100%. I did prove that the image is shown on the page before my servlet outputs it this made me start thinking about the client cache. Also I think it is an ADF Faces specific cache because if I use the "img" tag I don't think caching is used and the image is output by the call to my servlet. I don't want to use img for two reasons, 1 I would d like to use the client cache, 2 the img tag will not stay inside the showDetailItem, showDetail Item needs af: components as children it seems.
    So the reason I feel this problem can't be solved with a flag is because I think the image will be cached on the client side and if the showDetailItem is loaded twice it seems my servlet is called once, but it was not required to be called to render the image. I can't use the concept of checking for the servlet being called by the same session in very quick succession, because the real problem I am trying to solve is the servlet should not be called at all, if the client cache had been used.
    Perhaps there is a way for my servlet to determine if the client cache was used, but I have no idea how.
    I should also point out I am displaying images in a table instead of a showOneTab using the same servlet and technique and the client cache is always used correctly, the BrowserImage is only called if the image is not cached on the client. This is why I think this is a showOneTab problem.
    Sorry for leaving out these details, but I did not want to confuse the original posting with too much info. I figured if the tab was only loaded once, the cached image would be used and all would be good.
    Again if you can provide more help I really appreciate it.

  • Executing Child Taskflow Method from parent taskflow page

    Hi All,
    I have one issue with checking dirty data form Parent Taskflow button to check dirty data update in Child Taskflow page's view Object.
    JDev version: 11.1.1.3
    Scenario :
    Outer Container page has back button which need to check wherethere child taskflow has dirty data update or not. Child Taskflow transaction is always create new transaction and non-shared. But from ControllerContext, the root am service still associated with other viewobjects i.e. is loaded in others tabs in that outer container page, which is also checking dirty data from another tabs' viewobject dirty data checking (I need to avoid this issue that's why not working for me with controller context). I am thining to execute the child taskflow method from parent page on back button to check dirty data update for that tabs' page only. For it, how can we get access child taskflow method from parent page with static region taskflow. Is there any solution to implement like this? thank you so much.
    - Robin

    Hi,
    this should work:
    1. child task flow has input parameter "parentBean" defined.
    2. The child task flow has a managed bean "ChildBean" defined in pageFlowScope with a property "parentBean" with setter/getter.
    3. the parentBean input parameter references (in its value roperty) #{pageFlowScope.childBean.parentBean}
    4. The parent bean is configured on the parent view task flow (viewScope) and passed as a task flow binding input parameter. The parent bean has a boolean property "childFlowTransactionDirty"
    This allows the child bean to invoke the parent bean childFlowTransactionDirty to tell it that the transaction is dirty. On the parent view, you would just check the parentBean state for this property.
    Next is how you set the value on the parentBean from the childTaskFlow. One option is to use a RegionController on the PageDef file of ADF bound views in the child task flow.
    public class MyRegionController implements RegionController {
        public MyRegionController(){
        public boolean refreshRegion(RegionContext regionContext) {      
         int refreshFlag = regionContext.getRefreshFlag();
          //get access to the ChildBean and its parentBean property. Then call
          //ControllerContext .... to check the transaction state
          //update the childFlowTransactionDirty property
          ((DCBindingContainer)regionContext.getRegionBinding()).refresh(refreshFlag);
          return true;
        @Override
        public boolean validateRegion(RegionContext regionContext) {
            regionContext.getRegionBinding().validate();
            return false;
        public boolean isRegionViewable(RegionContext regionContext) {
            return regionContext.getRegionBinding().isViewable();
        @Override
        public String getName() {
            return this.getClass().toString();
    }Next: When users press the back button in the parent view, you call the ParentView bean childFlowTransactionDirty to check the child task flow transaction to be dirty or not
    Frank

  • Movie Controls

    Another newbie here asking for help with creating
    controls for SWF's. I have about 20 flash files that together
    constitute the content for an online course. They are 800X600
    pixels in size. When a user loads the web page containing a SWF, I
    need for them to be able to stop/start/pause/rewind/fast forward
    within that single SWF. A slider would be nice, but not essential.
    Basically, I'm wanting the same controls that are available for a
    FLV. I believe this is what all the others want too. This seems so
    basic I'm shocked that MM/Adobe don't have a ready-made component
    or something. If they do, my searches have not found it.
    I did find an extension that seems to do this, but it comes
    without any directions (flashextensions.com). It's free, but I'd
    gladly pay for some real instruction.
    In my dreams, I want to have a template (Flash or HTML) that
    contains the controls, and I load the SWF's into that template then
    I save as individual files. Is this too much to ask for? Can you
    help me?
    Flash Help and most helper websites provide bits and pieces
    of the whole, but I never seem to be able to grasp that whole, thus
    the pieces don't work when I try them. I've spent two solid days
    searching and following instructions to no avail. Have mercy on
    this fool. OK, no more whining.

    I found the perfect tutorial for placing controls in
    your movies.
    http://www.oman3d.com/tutorials/flash/controller_bc/
    Basic and simple, but useful!!!

  • How to add an item object as a child for a specified parent node in AdvancedDataGrid in Flex?

    Hi all,
              This is the code, to add a object as a child into a specified parent node in AdvancedDataGrid in flex.
    <?xml version="1.0" encoding="utf-8"?><mx:Application
    xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="onCreationComplete()" width="100%" height="100%">
    <mx:Script><![CDATA[
    importmx.controls.Alert; 
    importmx.collections.IHierarchicalCollectionViewCursor; 
    importmx.collections.IHierarchicalCollectionView;  
    importmx.collections.ArrayCollection; [
    Bindable]private var objectAC:ArrayCollection = newArrayCollection(); 
    //This method is used to construct the ArrayCollection 'flatData' 
    private function onCreationComplete():void{
    var objOne:Object = newObject(); objOne.name =
    "Rani"; objOne.city =
    "Chennai";objectAC.addItem(objOne);
    var objTwo:Object = newObject(); objTwo.name =
    "Rani"objTwo.city =
    "Bangalore";objectAC.addItem(objTwo);
    var objThree:Object = newObject(); objThree.name =
    "Raja"; objThree.city =
    "Mumbai";objectAC.addItem(objThree);
    //This method is used to add one object as a child item for the parent node 'Rani' 
    private function addChildItem():void{
    var dp:IHierarchicalCollectionView = groupedADG.dataProvider asIHierarchicalCollectionView;  
    varcurent:IHierarchicalCollectionViewCursor = groupedADG.dataProvider.createCursor();  
    var dummyParentNode:Object = {name:"Rani", city:"New Delhi"};  
    var obj:Object = null; 
    while(curent.current){
    // To get the current node objectobj = curent.current;
    // Add Child item, when depth = 1 and Node name should be "Rani" 
    if (curent.currentDepth == 1 && obj["GroupLabel"] == "Rani"){
    dp.addChild(curent.current, dummyParentNode);
    curent.moveNext();
    groupedADG.dataProvider = dp;
    groupedADG.validateNow();
    groupedADG.dataProvider.refresh();
    ]]>
    </mx:Script> 
    <mx:AdvancedDataGrid id="groupedADG" x="10" y="15" designViewDataType="tree" defaultLeafIcon="{null}" sortExpertMode="true" width="305" > 
    <mx:dataProvider> 
    <mx:GroupingCollection id="gc" source="{objectAC}"> 
    <mx:grouping> 
    <mx:Grouping> 
    <mx:GroupingField name="name"/> 
    </mx:Grouping> 
    </mx:grouping> 
    </mx:GroupingCollection> 
    </mx:dataProvider> 
    <mx:columns> 
    <mx:AdvancedDataGridColumn headerText="Name" dataField="name"/> 
    <mx:AdvancedDataGridColumn headerText="City" dataField="city"/> 
    </mx:columns> 
    </mx:AdvancedDataGrid> 
    <mx:Button x="10" y="179" label="Open the folder 'Rani'. Then Click this Button" width="305" click="addChildItem()" /> 
    </mx:Application> 

    Hi,
    It's not possible to 'append' a StringItem or a TextField (or any other lcdui.Item object) to a Canvas or GameCanvas. You can only draw lines, draw images, draw text, etc etc, on a Canvas screen. So, you can only 'simulate' the look and feel of a TextField (on a Canvas) by painting it and adding source code for command handling (like key presses). However, this will be quite some work!!
    lcdui.Item objects can only be 'appended' to a Form-like Displayable.
    Cheers for now,
    Jasper

  • Movie inside of a loaded external movie

    Hi
    how to control a mc inside a loaded external movie?
    so I have a main.swf, loaded a ex.swf into it by using loadMovie, and inside ex.swf there is a mc called 'mc'
    how do I control 'mc' from main.swf? I tried something like newLoader.mc._x +=1;  ( newLoader is ex.swf), it doesn't work?
    Thanks for reply.

    Hi Ned
    after I read your reply, i went on make a new sample file just to try it out, and it work, then I went back to my file and found out on these code
    var currentObject = new Object;
    currentObject = newLoader.newLoader2.newLoader3;
    var currentObjectColor = new Object;
    currentObjectColor = currentObject;  
    and then I have
    var my_color:Color = new Color(currentObjectColor.mc);
        trace (allowColor);
        my_color.setRGB(this.colorCC);
    for some reason, after I replace currentObjectColor to just currentObject, it work just fine, I don't know if the problem is from putting one object equal another one, but as far as I need this would work for me.
    thanks a lot.

Maybe you are looking for

  • Error 1500 in Adobe Acrobat 9 Pro Install

    I have Windows 8.1, and I am attempting to download Adobe Acrobat 9 Pro from the content disc provided when I purchased Creative Suite 5 some time ago. During installation, I received the Error 1500 message. No existing forum is solving my problem. I

  • How to use user defined function in select query using Toplink

    Hi Friends I am little bit of new in Toplink stuff... so please help me... I have to database functions 1. encrypt and 2. decrypt. I want to exceute the following sql query using toplink select port, database, user_name, decrypt(encrypt('String which

  • Email again

    So....I have not been able to access my email since the so called update occured in late March. I did not use yahoo (that I know of) but signed in through verizon.net. (I foolishly thought that would prevent issues as updates occured). I have changed

  • Never opened iPad with dead pixels

    I got a iPad 3 the day it came out from best buy. I wasn't unboxed for about a month after being purchased and when I turned it on, there were more than 3 dead pixels. Also one of the led backlights are blue when they should be white.  Is this a manu

  • Question about host identifier definition

    Hi, I've created a webgate and define the "Preferred HTTP Host" as the hostname where the web app is deployed. It seems ok that the webgate will protect the URL containing the hostname. But after I've authenticated, when I change the hostname to the