Add child loader object dynamically

Hi I wanna add loader object on stage dynamically but showing some error.
function addImage(str:String){
          ld=new Loader()
          ld.load(new URLRequest(str+'.png'))
          ld.contentLoaderInfo.addEventListener(Event.COMPLETE,loadfinish)
function loadfinish(event:Event):void{
          addChild(event.target.data)<<<this is showing error
error is :
ReferenceError: Error #1069: Property data not found on flash.display.LoaderInfo and there is no default value.
          at imagesearch_fla::MainTimeline/loadfinish()

If you look up the Loader class in the help documentation you will see that the error ois telling you what the problem is.  There is no "data" property for the Loader class.  The Loader class, since it deals primarily with visual elements, has a "content" property. 
The URLLoader class has a data property and that is mainly because the URLLoader class is used for data files.

Similar Messages

  • 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

  • How do I do to add and remove Shape3D objects dynamically from TransfGroup?

    Hi, everyone,
    How do I do to add and remove Shape3D objects dynamically from TransformGroup?
    I have added two Shape3D objects in the TransformGroup and I wanted to remove one of it to add another. But, the following exception occurs when I try to use �removeChild� :
    �Exception in thread "AWT-EventQueue-0" javax.media.j3d.RestrictedAccessException: Group: only a BranchGroup node may be removed at javax.media.j3d.Group.removeChild(Group.java:345)�.
    Why can I add Shape3D objects and I can�t remove them? Do I need to add Shape3D object in the BranchGroup and work only with the BranchGroup? If I do, I think this isn�t a good solution for the scene graph, because for each Shape3D object I will always have to use an associated BranchGroup.
    Below, following the code:
    // The constructor �
    Shape3D shapeA = new Shape3D(geometry, appearance);
    shapeA.setCapability(Shape3D.ALLOW_GEOMETRY_READ);
    shapeA.setCapability(Shape3D.ALLOW_GEOMETRY_WRITE);
    shapeA.setCapability(Shape3D.ALLOW_APPEARANCE_READ);
    shapeA.setCapability(Shape3D.ALLOW_APPEARANCE_WRITE);
    Shape3D shapeB = new Shape3D(geometry, appearance);
    shapeB.setCapability(Shape3D.ALLOW_GEOMETRY_READ);
    shapeB.setCapability(Shape3D.ALLOW_GEOMETRY_WRITE);
    shapeB.setCapability(Shape3D.ALLOW_APPEARANCE_READ);
    shapeB.setCapability(Shape3D.ALLOW_APPEARANCE_WRITE);
    BranchGroup bg = new BranchGroup();
    bg.setCapability(ALLOW_CHILDREN_READ);
    bg.setCapability(ALLOW_CHILDREN_WRITE);
    bg.setCapability(ALLOW_CHILDREN_EXTEND);
    TransformGroup tg = new TransformGroup();
    tg.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
    tg.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
    tg.setCapability(TransformGroup.ALLOW_CHILDREN_READ);
    tg.setCapability(TransformGroup.ALLOW_CHILDREN_WRITE);
    bg.addChild(tg);
    tg.addChild(shapeA);
    tg.addChild(shapeB);
    // The method that removes the shapeB and adds a new shapeC �
    Shape3D shapeC = new Shape3D(geometry, appearance);
    shapeC.setCapability(Shape3D.ALLOW_GEOMETRY_READ);
    shapeC.setCapability(Shape3D.ALLOW_GEOMETRY_WRITE);
    shapeC.setCapability(Shape3D.ALLOW_APPEARANCE_READ);
    shapeC.setCapability(Shape3D.ALLOW_APPEARANCE_WRITE);
    tg.removeChild(shapeB);
    tg.addChild(shapeC);Thanks a lot.
    aads

    �Exception in thread "AWT-EventQueue-0"
    javax.media.j3d.RestrictedAccessException: Group:
    only a BranchGroup node may be removed I would think that this would give you your answer -
    Put a branch group between the transform and the shape. Then it can be removed.
    Another thing you could try: This doesn't actually remove the shape, but at least causes it to hide. If you set the capabilities, I think you can write the appearance of the shapes. So, when you want to remove one of them, write an invisible appearance to it.

  • Java FX Script, how to dynamically loadm add, delete document objects ?

    Hi,
    Is it possible to programmatically load the object Hierarchy of a java FX document, to add, delete, update objects proporties or to call function and operations.
    Is it possible to assign 'id' or 'name' to objects, to have later have references on them in the java FX script.
    exemple of object tree to parse :
    -Canvas
    --group
    ---Line
    ---Line
    ---Rect
    ---Button
    ..etc
    thanks for your help
    gel
    Edited by: geldouches on Oct 1, 2007 8:21 AM

    Here is your solution.
    Use an XML parser. Don't forget the dukes!

  • How to create objects dynamically (with dynamic # of parameters)

    I need to create a set of objects based on a definition from an XML file (obtained from the server) and add them to my scene.
    I understand how to create the object using getDefinitionByName (and the limitations regarding classes needing to be referenced to be loaded into the SWF).
    But some objects require parameters for the constructor, and some don't. The XML can easily pass in the required parameter information, but I can't figure out how to create a new object with a dynamic set of arguments (something akin to using the Function.call(obj, argsArray) method.
    For example, I need something like this to work:
    var mc=new (getDefinitionByName(str) as Class).call(thisNewThing, argsArray)
    Currently this is as far as I can get:
    var mc=new (getDefinitionByName(str) as Class)(static, list, of, arguments)
    Thoughts?

    I think what Dave is asking is a bit different.
    He's wanting to know how to invoke the constructor of an object dynamically (when he only knows the # of constructor arguments at runtime).
    This class I know will do it but seems to be a hack:
    http://code.google.com/p/jsinterface/source/browse/trunk/source/core/aw/utils/ClassUtils.a s?spec=svn12&r=12
    See the 'call' method, which first counts the # of arguments then invokes one of 'n' construction methods based on the number of constructor args.
    I've yet to find a clean AS3 way of doing things ala 'call' though.
    -Corey

  • Problem with saving Parent - Child  View Objects in ADF 11g.

    Hi Every one,
    I have a requirment, something like I will be displaying some data on my jsff screen based on one Transient View Object. Whenever user clicks on Save button, I have to do following steps in my AMImpl.
    -> Preapre dynamically Parent View Object Rows based on some logic
    -> Prepare dynamically Child View object Rows and invoke insertRow method on respective child view object.
    When I say commit() First Parent ViewObject data need to be saved and then Child View object data has to be saved. I am having Parent - Child Key relation ship btw these two ViewObjects. Some how I am populating the Parent Primary key in the Child View Object. Please suggest me If there is any other alternative to this.
    Thanks

    I got the solution, Enabling the check box option for Master - Detail Entity association (CompositionAssociation -> Cascade Update Key Attributes) resolved the issue.
    Thanks

  • How to add a checkbox to dynamic itab  so that i can select some records

    How to add a checkbox to dynamic itab  so that i can select some records in the alv and can display them in another alv using a button
    I have requirement where i have to display the dynamic itab records in an alv ....Some records from this alv output has to be selected through checkbox  provided in the first column .( I will get to know the structure of the itab only at runtime ,so iam using dynamic itab)

    Hi,
       I tried and finally i got it , Just try for it.
    type-pools : slis.
    PARAMETERS : p_tab type dd02l-tabname.
    data : ref_tabletype  type REF TO cl_abap_tabledescr,
           ref_rowtype TYPE REF TO cl_abap_structdescr.
    field-symbols  : <lt_table>  type   standard TABLE ,
           <fwa> type any,
           <field> type abap_compdescr.
    data : lt_fcat type lvc_t_fcat,
           ls_fcat type lvc_s_fcat,
           lt_fldcat type SLIS_T_FIELDCAT_ALV,
           ls_fldcat like line of lt_fldcat.
    data : ref_data type REF TO data,
            ref_wa type ref to  data.
    ref_rowtype ?= cl_abap_typedescr=>DESCRIBE_BY_name( p_name = p_tab ).
    TRY.
    CALL METHOD cl_abap_tabledescr=>create
      EXPORTING
        p_line_type  = ref_rowtype
      receiving
        p_result     = ref_tabletype.
    CATCH cx_sy_table_creation .
    write : / 'Object Not Found'.
    ENDTRY.
    *creating object.
    create data ref_data type handle ref_tabletype.
    create data ref_wa type handle ref_rowtype.
    *value assignment.
    ASSIGN ref_data->* to <lt_table>.
    assign ref_wa->* to <fwa>.
    loop at ref_rowtype->components ASSIGNING <field>.
      ls_fcat-fieldname = <field>-name.
      ls_fcat-ref_table = p_tab.
      append ls_fcat to lt_fcat.
    if lt_fldcat[] is  INITIAL.
        ls_fldcat-fieldname = 'CHECKBOX'.
        ls_fldcat-checkbox = 'X'.
        ls_fldcat-edit = 'X'.
        ls_fldcat-seltext_m = 'Checkbox'.
        append ls_fldcat to lt_fldcat.
      endif.
      clear ls_fldcat.
      ls_fldcat-fieldname = <field>-name.
      ls_fldcat-ref_tabname = p_tab.
      append ls_fldcat to lt_fldcat.
    endloop.
    loop at lt_fldcat into ls_fldcat.
      if sy-tabix = 1.
        ls_fldcat-checkbox = 'X'.
        ls_fldcat-edit = 'X'.
    modify lt_fldcat FROM ls_fldcat
        TRANSPORTING checkbox edit.
    endif.
    endloop.
    CALL METHOD cl_alv_table_create=>create_dynamic_table
      EXPORTING
        it_fieldcatalog           = lt_fcat[]
      IMPORTING
        ep_table                  = ref_data.
    assign ref_data->* to <lt_table>.
    select * FROM (p_tab) into table <lt_table>.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
       IT_FIELDCAT                       = lt_fldcat[]
      TABLES
        t_outtab                          = <lt_table>.
    Thanks & Regards,
    Raghunadh .K

  • Applying materials to loaded objects

    Hi,
    I'm trying to develop a program whereby users can change the colour of an object. The object is loaded from a 3ds file. Colour accuracy is important, so I was wondering if anyone had experience with altering the properties of a loaded objects material within java3D, as creating several objects with different materials is unfeasible due to the number of choices potentially available (several thousand).
    Thanks in advance :)

    as far as i know
    when you load an obj you get a branchgroup underneath the branch group you have some geometry.so run trough the enumeration of the branchGroup's child and go down all the branch (depending of the complexity of the object) until you get a shape3d and get the geometry.
    like this it should work
    Scene s1 = null;
    try {
    s1 = f1.load("test.obj");
    } catch (Exception e) {
    System.exit(1);
    BranchGroup bg = s1.getSceneGroup();
    Enumeration enum =bg.getAllChildren();
    then underneath you'll have you shape3d where you can apply your Appearance
    it work like the rest of the graphscene
    cyril

  • Add a data series dynamically in charts

    I am trying to add a data series dynamically in a chart but
    it does not seems to work. Here is the sample code. Any idea?
    var line1:LineSeries=new LineSeries();
    line1.dataProvider=[something];
    line1.displayName="New data";
    chart.secondSeries.push(line1);
    It works if I do the following but I don't want to remove
    other series already there.
    var arr = new Array();
    chart.secondSeries=arr;
    var line1:LineSeries=new LineSeries();
    line1.dataProvider=[something];
    line1.displayName="New data";
    arr.push(line1);

    I see...i don't know why the chart is not refreshing itself
    in the next keyframe after you added another series. You can also
    try to put the statement:
    [myChart.series[(myChart.series as Array).length] = your new
    ColumnSeries object goes here.]
    in a new frame by doing doLater();
    Apparently an asigninment statement on the series array does
    the trick. If you don't like that approach, you can also try to
    invalidate the display object, so that a refresh is forced.
    -george

  • Simple add child issue

    stupidly i try to add child mc "green" to "scroll_mc", but green is not visible.
    package {
              import fl.containers.ScrollPane;
              import fl.controls.ScrollPolicy;
              import flash.desktop.NativeApplication;
              import flash.desktop.SystemIdleMode;
              import flash.display.MovieClip;
              import flash.media.Video;
              import flash.net.NetConnection;
              import flash.net.NetStream;
              import flash.events.MouseEvent;
              import flash.events.NetStatusEvent;
              import fl.controls.List
              import flash.events.Event;
                        public class Main extends MovieClip {
                                  private var song:Array=["lego.flv","hatizmoret.flv","shir_hageshem.flv","ez.flv","tarnegol.flv","se_u gdi.flv","dag.flv","lizard.flv","toy_train_set_qt.flv","hadubim.flv","geveret_shfanfana.fl v",
                                                                                                        "parash_ben_hail.flv","snake.flv","pil_ pilon.flv","cat.flv","gan_shelanu.flv","purrfect_birthday_qt.flv","nadneda.flv","hatul_gan av.flv",
                                                                                                        "yonatan_hakatan.flv","dog.flv","aviron .flv","zipor.flv","hipo.flv","ladod_moshe.flv","shafan.flv","hipushit.flv","achbar.flv","t olaat.flv","zefardea.flv","dov.flv",
                                                                                                        "shaon_ben_hail.flv","kof.flv","hayom_y om_huledet.flv","ima_yekara.flv","oniya.flv","bee_and_flowers_qt.flv ","hasida.flv","ima_avaza.flv","yedidi_tintan.flv","donkey.flv",
                                                                                                        "haoto_shelanu.flv","bimdinat_hagamadim .flv"]
                        public var song_number:String
                        private var netConnection:NetConnection;
                        private var netStream:NetStream;
                        private var video:Video;
                        private var VIDEO_URL:String;
                        public var speed:Number;
      public var speedArray:Array;
      public var prevY:Number;
                        public var DRAG:Number = 20;
                        public var HEIGHT:int = 310;
                        public function Main() {
                                  public var scroll_mc:MovieClip
                                  public var Green:MovieClip=new green()
                                  public var posX:int= 10;
                                  public var posY:int =20;
                                  scroll_mc.addChild(Green)
                                  Green.x=posX
                                  Green.y=posY
                                  trace(Green.x)
                                  scroll_mc.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
                                  NativeApplication.nativeApplication.systemIdleMode = SystemIdleMode.KEEP_AWAKE;
                                  netConnection = new NetConnection();
                                  netConnection.connect(null);
                                  netStream = new NetStream(netConnection);
                                  netStream.client = this;
                                  netStream.addEventListener(NetStatusEvent.NET_STATUS, statusUpdated);
                                  video = new Video();
                                  video.attachNetStream(netStream);
                                  video.width = 480;
                                  video.height = 320;
                                  addChildAt(video, 0);
                        private function  fl_ClickToGoToAndStopAtFrame_2(event:MouseEvent):void
              gotoAndStop(2);
                        function onDown(evt:MouseEvent):void {
                        speedArray = new Array(0,0,0,0,0,0,0,0,0,0);
                        speed = 0;
                        prevY = this.mouseY;
                        stage.addEventListener(Event.ENTER_FRAME, onDownEnter);
                        stage.addEventListener(MouseEvent.MOUSE_UP, onUp);
                        function onDownEnter(evt:Event):void {
                        var sp = this.mouseY - prevY;
                        scroll_mc.y += sp;
                        if (scroll_mc.y < (HEIGHT-scroll_mc.height)) {
                        scroll_mc.y = (HEIGHT-scroll_mc.height);
                        else if (scroll_mc.y > 0) {
                        scroll_mc.y = 0;
                        speedArray.push(sp);
                        speedArray.shift();
                        prevY = this.mouseY;
                        function onUp(evt:MouseEvent):void {
                        stage.removeEventListener(Event.ENTER_FRAME, onDownEnter);
                        stage.removeEventListener(MouseEvent.MOUSE_UP, onUp);
                        speed = 0;
                        for (var i:int = 0; i<speedArray.length; i++) {
                        speed += speedArray[i];
                        speed /= speedArray.length;
                        addEventListener(Event.ENTER_FRAME, onEnter);
                        function onEnter(evt:Event):void {
                        if (Math.abs(speed) < .5) {
                        speed = 0;
                        if (speed < 0) {
                        if (scroll_mc.y > (HEIGHT-scroll_mc.height) - speed) {
                        scroll_mc.y += speed;
                        speed -= speed/DRAG;
                        else {
                        scroll_mc.y = (HEIGHT-scroll_mc.height);
                        speed = 0;
                        else {
                        if (scroll_mc.y < 0-speed) {
                        scroll_mc.y += speed;
                        speed -= speed/DRAG;
                        else {
                        scroll_mc.y = 0;
                        speed = 0;
                        public function itemClick(event:Event):void{
                                  if(event.target.selectedItem.label==" קוביות לי יש"){
                                            gotoAndStop(2)
                                            song_number=song[0]
                                  if(event.target.selectedItem.label=="התזמורת"){
                                            gotoAndStop(2)
                                            song_number=song[1]
                                  if(event.target.selectedItem.label=="שי ר הגשם"){
                                            gotoAndStop(2)
                                            song_number=song[2]
                                  if(event.target.selectedItem.label==" יש לנו תיש "){
                                            gotoAndStop(2)
                                            song_number=song[3]
                                  if(event.target.selectedItem.label==" גברת תרנגולת "){
                                            gotoAndStop(2)
                                            song_number=song[4]
                                  if(event.target.selectedItem.label==" שה וגדי"){
                                            gotoAndStop(2)
                                            song_number=song[5]
                                  if(event.target.selectedItem.label==" דג קטן"){
                                            gotoAndStop(2)
                                            song_number=song[6]
                                  if(event.target.selectedItem.label==" הלטאה"){
                                            gotoAndStop(2)
                                            song_number=song[7]
                                  if(event.target.selectedItem.label==" הנה באה הרכבת"){
                                            gotoAndStop(2)
                                            song_number=song[8]
                                  if(event.target.selectedItem.label=="הדובים"){
                                            gotoAndStop(2)
                                            song_number=song[9]
                                  if(event.target.selectedItem.label==" לשפן יש בית"){
                                            gotoAndStop(2)
                                            song_number=song[10]
                                  if(event.target.selectedItem.label==" רוץ בן סוסי"){
                                            gotoAndStop(2)
                                            song_number=song[11]
                                  if(event.target.selectedItem.label==" הנחש"){
                                            gotoAndStop(2)
                                            song_number=song[12]
                                  /*if(event.target.selectedItem.label==" במדינת הגמדים"){
                                            gotoAndStop(2)
                                            song_number=song[42]
                                  if(event.target.selectedItem.label==" במדינת הגמדים"){
                                            gotoAndStop(2)
                                            song_number=song[42]
                                  if(event.target.selectedItem.label==" במדינת הגמדים"){
                                            gotoAndStop(2)
                                            song_number=song[42]
                                  if(event.target.selectedItem.label==" במדינת הגמדים"){
                                            gotoAndStop(2)
                                            song_number=song[42]
                                  if(event.target.selectedItem.label==" במדינת הגמדים"){
                                            gotoAndStop(2)
                                            song_number=song[42]
                                  if(event.target.selectedItem.label==" במדינת הגמדים"){
                                            gotoAndStop(2)
                                            song_number=song[42]
                                  if(event.target.selectedItem.label==" במדינת הגמדים"){
                                            gotoAndStop(2)
                                            song_number=song[42]
                                  if(event.target.selectedItem.label==" במדינת הגמדים"){
                                            gotoAndStop(2)
                                            song_number=song[42]
                                  if(event.target.selectedItem.label==" במדינת הגמדים"){
                                            gotoAndStop(2)
                                            song_number=song[42]
                                  if(event.target.selectedItem.label==" במדינת הגמדים"){
                                            gotoAndStop(2)
                                            song_number=song[42]
                                  if(event.target.selectedItem.label==" במדינת הגמדים"){
                                            gotoAndStop(2)
                                            song_number=song[42]
                                  if(event.target.selectedItem.label==" במדינת הגמדים"){
                                            gotoAndStop(2)
                                            song_number=song[42]
                                  if(event.target.selectedItem.label==" במדינת הגמדים"){
                                            gotoAndStop(2)
                                            song_number=song[42]
                                  if(event.target.selectedItem.label==" במדינת הגמדים"){
                                            gotoAndStop(2)
                                            song_number=song[42]
                                  if(event.target.selectedItem.label==" במדינת הגמדים"){
                                            gotoAndStop(2)
                                            song_number=song[42]
                                  if(event.target.selectedItem.label==" במדינת הגמדים"){
                                            gotoAndStop(2)
                                            song_number=song[42]
                                  if(event.target.selectedItem.label==" במדינת הגמדים"){
                                            gotoAndStop(2)
                                            song_number=song[42]
                                  if(event.target.selectedItem.label==" במדינת הגמדים"){
                                            gotoAndStop(2)
                                            song_number=song[42]
                                  if(event.target.selectedItem.label==" במדינת הגמדים"){
                                            gotoAndStop(2)
                                            song_number=song[42]
                                  if(event.target.selectedItem.label==" במדינת הגמדים"){
                                            gotoAndStop(2)
                                            song_number=song[42]
                                  if(event.target.selectedItem.label==" במדינת הגמדים"){
                                            gotoAndStop(2)
                                            song_number=song[42]
                                  if(event.target.selectedItem.label==" במדינת הגמדים"){
                                            gotoAndStop(2)
                                            song_number=song[42]
                                  if(event.target.selectedItem.label==" במדינת הגמדים"){
                                            gotoAndStop(2)
                                            song_number=song[42]
                                  if(event.target.selectedItem.label==" במדינת הגמדים"){
                                            gotoAndStop(2)
                                            song_number=song[42]
                                  if(event.target.selectedItem.label==" במדינת הגמדים"){
                                            gotoAndStop(2)
                                            song_number=song[42]
                                  if(event.target.selectedItem.label==" במדינת הגמדים"){
                                            gotoAndStop(2)
                                            song_number=song[42]
                                  if(event.target.selectedItem.label==" במדינת הגמדים"){
                                            gotoAndStop(2)
                                            song_number=song[42]
                                  if(event.target.selectedItem.label==" במדינת הגמדים"){
                                            gotoAndStop(2)
                                            song_number=song[42]
                                  if(event.target.selectedItem.label==" במדינת הגמדים"){
                                            gotoAndStop(2)
                                            song_number=song[42]
                                  setupControls();
                        public function onMetaData(dataObj:Object):void {
                                  ; // Do nothing.
                        public function onXMPData(dataObj:Object):void {
                                  ; // Do nothing.
                        private function statusUpdated(e:NetStatusEvent):void {
                                  if(e.info.code == "NetStream.Play.Stop")
                                            showBtns(["playBtn"]);
                        private function setupControls():void {
                                  controls.playBtn.addEventListener(MouseEvent.MOUSE_UP, playVideo);
                                  controls.restartBtn.addEventListener(MouseEvent.MOUSE_UP, restartVideo);
                                  controls.resumeBtn.addEventListener(MouseEvent.MOUSE_UP, resumeVideo);
                                  stage.addEventListener(MouseEvent.MOUSE_UP, pauseVideo);
                                  showBtns(["playBtn"]);
    private function playVideo(e:MouseEvent):void {
    VIDEO_URL = "http://www.tovale.co.il/ktantanim/"+song_number
    netStream.play(VIDEO_URL);
    hideBtns();
    e.stopPropagation();
    trace(VIDEO_URL)
    trace(song_number)
                        private function pauseVideo(e:MouseEvent):void {
                                  if(controls.visible == false)
                                            netStream.pause();
                                            showBtns(["resumeBtn", "restartBtn"]);
                        private function restartVideo(e:MouseEvent):void {
                                  netStream.seek(0);
                                  netStream.resume();
                                  hideBtns();
                                  e.stopPropagation();
                        private function resumeVideo(e:MouseEvent):void {
                                  netStream.resume();
                                  hideBtns();
                                  e.stopPropagation();
                        private function hideBtns():void {
                                  controls.visible = false;
                                  blocker.visible = false;
                        private function showBtns(btns:Array):void {
                                  controls.visible = true;
                                  blocker.visible = true;
                                  for(var instName:String in controls)
                                            if(btns.indexOf(instName) != -1)
                                                      controls[instName].visible = true;
                                            else
                                                      controls[instName].visible = false;

    You should be declaring your public variables in the public space like the rest... otherwise they only have scope within the function you place them in.
    You declare a scroll_mc but you do not create an instance of it.
    You should explain more about the problem and only include the code that is relevant to it.

  • Dinamically sorting child view object

    Hi
    i have a master-child relationship between 2 view objects displayed in jsff as master form - detail table fashion.
    By default, child is ordered by, for eg.,  attr1.
    There is a button that opens popup with child records which need to be ordered by another attribute (attr2).
    Basically, child view object should be ordered one way when displayed in jsff, and on the other way when displayed in popup.
    What is a best practice to deal with this kind of requirement?
    JDev 11.1.2.3
    Thanks

    Hi,
    You can generate the VOImpl for the ViewObject and create a method, which would take the order by clause. Expose this as client interface and then you can pass respective column name to order by dynamically and execute the method before opening the popup.
    Ex :
        public void setOrderBy(String orderBy){
            this.setOrderByClause(orderBy);
            this.executeQuery();
    -Arun

  • Pre-loading objects and textures

    I have made a java3d applet which starts with swing gui
    then makes a scenegraph, something like this:
    1). I configure/set the
    3DCanvas
    VirtualUniverse,
    Locale
    View BranchGroup ...
    Scene BranchGroup (empty)
    add a behavior to View
    2). The behavior previously added is used to extend the scene and view
    with new BranchGroups, Shape3Ds (some loaded from .obj files) and behaviors (right now, everything gets loaded in the behavior)
    Now my question is, how can I load the .obj files and .jpg texture files
    in the swing part or in part 1.) so that I can put them in the scene from the behavior?
    I was thinking to build another BranchGroup in which I would add all the loaded objects with textures and then give a reference to the behavior which could then just copy the objects in the scene...
    Does this make sense? or is there maybe another way to do it?
    Also is there any easy way to modify the applet loader or make a custom one, so that the user doesn�t see the gray screen with "applet loading"?
    thanks

    If I detach a BranchGroup referenced by a behavior,
    can the behavior still modify or access the BranchGroup????

  • Loader Object throwing #2148

    Hello:
    I have a swf file that I am developing to email to other
    users, basically a standalong swf. The file is created with
    localwithnetwork (using -use-network=false compiler parameter) so
    it has no local file system access. The reason this swf has
    localwithnetwork access is to open the hyperlinks in the swf. There
    are few images stored as bytearrays in the swf which is loaded
    using the Loader object using the following syntax:
    this._loader.loadBytes(cachedImage.getBytes(),new
    LoaderContext(false,ApplicationDomain.currentDomain));
    But now when I open the swf I get the following error :
    SecurityError: Error #2148: SWF file
    file://\\SSRV\Data\tmp\File.swf cannot access local resource
    file://\\SSRV\Data\tmp\File.swf/[[DYNAMIC]]/1. Only
    local-with-filesystem and trusted local SWF files may access local
    resources.
    at flash.display::Loader/get content()
    at
    aclient.core::ImageBytesObject/onLoadComplete()[C:\aclient\core\ImageBytesObject.as:169]
    I am not able to make out what is causing this error as I am
    not loading anything from the file system. Everything that is being
    loaded is from the swf itself and is in memory. So what could be
    causing this error.? If I ignore this error the images do not load
    and it shows a placeholder where the images should have been. I am
    really out of luck here. I have used Security.Allowdomain('*") as
    well but that also does not seems to work? Any help here would be a
    big help.
    Thanks!!

    Thanks Greg. But then how do i instruct the swf to ignore the
    cache image?

  • How to add OLE wordpad objects to a crystal report through VB program

    Can we programmatically add OLE wordpad objects to a crystal report XI r 2. through VB.NET or VB6?
    And is there a way of treating a database binary/blob field as an ole object in CR?

    Hi Mohan,
    Try it in the Designer first. If it works in the designer then it will work in our SDK's but you'll have to use RAS. So when you post your question to the .NET Development - Crystal Reports Forum be sure to specify what version you are using and anything else as far as versions go.
    It may be easier to simply link the OLE Object in the designer, check the help file out on how to.
    Thank you
    Don

  • How to reference the Parent view Object attribute in Child View object

    Hi , I have the requirememt to generate Tree like struture to display Salary from joining date to retirement date in yearly form.I have writtent two Pl/SQL function to return parent node and child nodes(based on selected year).
    1.First function --> Input paramter (employee id, retirement date , joining date) --> return parent node row with start_date and end_date
    2. 2nd function --> input paarmter(employee id, startDate, end_date) --> return child node based on selected parent node i.e. start date and end date
    I have created two ADF view object based on two function return
    Parent Node --> select * from Table( EUPS.FN_GET_CONTR_SAL_BY_YR(employeeId,retirement Date, dateOf joining)) ;
    Child Node --> select * FROM TABLE( EUPS.FN_GET_CONTR_SAL_FOR_YEAR( employeId,startDate, endDate) ) based on selected parent node.
    I am giving binding variable as input for 2nd function (child node) . I don't know how to reference the binding variable value in child view from parent view.
    Like I have to refernce employeId,startDate, endDate values in 2nd function from parent view object. some thing like parentNode.selectedStart_date parentNode.employeeId.
    I know we can achive this writing the code in backing bean.But i want to know how can we refernce parent view object attribute values in child view object using Groovy or otherway?
    I will appreciate your help.
    Thanks

    I have two view com.ContractualSalaryByYearlyView for Parent Node and com.ContractualSalaryByYearlyView for child Node.
    I have created view link(ContractualSalYearlyByYearViewLink) betweem two view by giving common field empId, stDate , endDate.(below is the view link xml file).
    I tried give the binding attribute values using parent object reference like below in com.ContractualSalaryByYearlyView xml file but getting error
    Variable ContractualSalaryByYearlyView not recognized.I think i am using groovy expression.
    Thanks for quick response.
    com.ContractualSalaryByYearlyView xml
    <ViewObject
    <DesignTime>
    <Attr Name="_isExpertMode" Value="true"/>
    </DesignTime>
    <Variable
    Name="empId"
    Kind="where"
    Type="java.lang.Integer">
    <TransientExpression><![CDATA[adf.object.ContractualSalaryByYearlyView.EmpId]]></TransientExpression>
    </Variable>
    ContractualSalYearlyByYearViewLink.xml file
    <ViewLinkDefEnd
    Name="ContractualSalaryByYearlyView"
    Cardinality="1"
    Owner="com.ContractualSalaryByYearlyView"
    Source="true">
    <DesignTime>
    <Attr Name="_finderName" Value="ContractualSalaryByYearlyView"/>
    <Attr Name="_isUpdateable" Value="true"/>
    </DesignTime>
    <AttrArray Name="Attributes">
    <Item
    Value="com.ContractualSalaryByYearlyView.EmpId"/>
    <Item
    Value="com.ContractualSalaryByYearlyView.StDate"/>
    <Item
    Value="com.ContractualSalaryByYearlyView.EndDate"/>
    </AttrArray>
    </ViewLinkDefEnd>
    <ViewLinkDefEnd
    Name="ContractualSalaryForYearView"
    Cardinality="-1"
    Owner="com.ContractualSalaryForYearView">
    <DesignTime>
    <Attr Name="_finderName" Value="ContractualSalaryForYearView"/>
    <Attr Name="_isUpdateable" Value="true"/>
    </DesignTime>
    <AttrArray Name="Attributes">
    <Item
    Value="com.ContractualSalaryForYearView.EmpId"/>
    <Item
    Value="com.ContractualSalaryForYearView.StDate"/>
    <Item
    Value="com.ContractualSalaryForYearView.EndDate"/>
    </AttrArray>
    </ViewLinkDefEnd>

Maybe you are looking for