My .as class does not work in flex project

I have a .as file extended Sprite and restores Visual elements on the screen

the package of actions {}

import flash.display.Sprite;

SerializableAttribute public class Monaction extends Sprite {}
public void Monaction () {}

}

}
}

I am trying to enter it in a Flex project, to add these shapes to my stage.

I created a package called actions carried out under the programme of the CBC and saved the .as file.

Because it restores Visual elements, I thought that I could wrap as a UI component and add it to the stage. So I created a new MyUIComp.as .as file that basically looks like this:

the package of actions {}

import of actionscript. Monaction;
Import mx.core.UIComponent;

SerializableAttribute public class MyUIComp extends UIComponent {}


private var myAction:MyAction;

public void MyUIComp() {}

Monaction = new MyAction();

}

}
}

in my main mxml I add then to a UIComponent like this

< mx:UIComponent id = "actionLocation" / >

and in the script section, wiring, it:

private function init (): void {}
var actionToStage:MyUIComp = new MyUIComp();
actionLocation.addChild (actionToStage);

}

I don't get any errors, but nothing appears on the scene either.

Can someone be kind enough to tell me what I might have done wrong. I'm kinda new, so maybe I'm missing something obvious.

Thank you

David

P.S. Ideally I would not create a class wrapper MyUIComp to make my class to extend UIComponent. I would use the original class as follows:

import flash.display.Sprite;

Import mx.core.UIComponent;

SerializableAttribute public class Monaction extends Sprite UIComponent {}

}

but this double extends doesn't seem to work

In your custom UIComponent class, your never added your Monaction instance. Try this for the MyUIComp constructor:

public void MyUIComp() {}

Monaction = new MyAction();

this.addChild (myAction);

}

If this post answers your question or assistance, please mark it as such.

Greg Lafrance - Flex 2 and 3 certified ACE

www.ChikaraDev.com

Flex / development, training, AIR and Support Services

Tags: Flex

Similar Questions

  • addChild does not work in flex...

    Hey,.

    When I create a display object then do: addChild (display_object) in the < fx:script > section a mxml file, adobe air showed an error message:

    Error: addChild() is not available in this category. Instead, use addElement(), or change the skin, if you have a.

    And I tried to use addElement and I get this:

    Implicit coercion of a value of type flash.display:Shape to an unrelated type mx.core:IVisualElement.

    Any ideas?

    Thank you

    Chris

    It is not that it does not work in Flex 4 +.  It does not work in classes that implement IVisualElementContainer.  You can only add an IVisualElements to an IVisualElementContainer.  This is similar to how you might only add IUIComponents containers in Flex 3.x.

    UIComponent is an IVisualObject, so if you want to do things the way you should have them in Flex 3 to add a shape, you can wrap in a UIComponent.  However, Flex 4 offers some pretty cool improvements, if you use the spark (e.g. Rect or Ellipse) primitives.  If she can put them all in a DisplayObjectContainer, it will be, which helps the CPU usage.  See http://help.adobe.com/en_US/flex/using/WSda78ed3a750d6b8fee1b36612357de97a3-8000.html for more details.

    HTH;

    Amy

  • TextArea auto resizing does not work from flex 4.6

    Hello

    before flex 4.6 on air mobile for android, if the height is not specified in a s:TextArea, auto sizing textArea, since flex 4.6 does not work.

    Thank you.

    Try switching it back on the TextAreaSkin instead of the StageTextAreaSkin.   StageText allows you to get a native text input, but there are limits to the way he plays with the rest of the display list.

  • Locales for Spanish does not work in flex plugin

    I use the parameter following the compiler flex with Flex builder 3 and it works very well in local Spanish support.

    -local = en_US, es_US

    But the same setting does not work in eclipse installed with plugin flex4 running on flex SDK 3.5. I'm unable to build the project with this setting. If I remove es) WE then, it works very well.

    Here's my setting of the compiler

    -local = en_US, es_US-allow-source-path-to overlap = true - source-path = locale / {local}

    I've never used Eclipse for flex development, but yes it sounds like you are configuring the sdk ok.

    It fails to build, but gives no error, very weird

  • Why the camera StatusEvent method does not work in Flex 4.6 Desktop Application?

    Hello

    I have a simple Desktop Application (in collaboration with adobe AIR) that retrieves the web camera, adds two EventListener (activity and event status) and starts the preview.

    The event activity method works correctly while the status event method to notify that the correct connection is never thrown.

    Here is the method to initialize and start the webcam.

    private function videoDisplay_creationComplete():void 
    {
              camera = Camera.getCamera();
              camera.setMode(320,240,15,false);
              camera.setKeyFrameInterval (4);
              camera.setQuality (0,100);
    
    
              videoDisplay.attachCamera(camera);
    
    
              if (camera) 
              {
                        camera.addEventListener(ActivityEvent.ACTIVITY, camera_activity);
                        camera.addEventListener(StatusEvent.STATUS, camera_status);
              } 
              else 
                        textArea.text += "Nessuna camera disponibile.";
    }
    
    //Listener chiamato quando il video o il microfono vengono attivati/disattivati
    private function camera_activity(evt:ActivityEvent):void 
    {
              var str:String = "[{0}] activating:{1}\n";
    
              textArea.text += StringUtil.substitute(str,
                        evt.type,
                        evt.activating);
    }
    
    
    //Listener chiamato quando lo stato della webcam cambia
    private function camera_status(evt:StatusEvent):void 
    {
              var str:String = "[{0}] code:'{1}', level:'{2}'\n";
    
              textArea.text += StringUtil.substitute(str,
                        evt.type,
                        evt.code,
                        evt.level);
    
              switch (evt.code) 
              {
                        case "Camera.Muted":
                                  Alert.show("User denied access to camera.");
                                  break;
                        case "Camera.Unmuted":
                                  Alert.show("User allowed access to camera.");
                                  break;
              }
    }
    
    
    

    Thanks in advance.

    Greetings

    I think that if you already allowed access to the camera (for example the Flah Player asks you anymomre to allow) you wil get event direct activity instead of the status event.

    The status event is absolutely necessary if you get the triggering event. You can check current FPS the camera and if is > 0 for an interval of shor your camera works very well.

    C

  • Captivate 6 - Advanced action does not work in the project?

    Hello

    I use 6 Captivate. In my project I have a common slide2 which is called when clicking on the two different buttons (C1 and C2). Slide 2 contains several objects, saying Text1, text 2, 1 button, and Button2.

    Slide 5 I have a C1, I defined the on success action: execute advanced actions

    Script: If CPIntoCurrent Slide is equal to 5

    Action:

    Go to slide 2

    See the Text1

    See the Button1

    Hide Text2

    See the Button2

    Similar action has been set to C2 (slide 8) redirecting to slide 2 showing the Text2 and Button2, hiding other objects.

    These scripts where works fine, until I installed a patch on the adobe site. The patch was intended to display the video correctly in the PDF when selected the option display the table of contents.

    But unfortunately he's completely unbalanced the script of existing projects. I also tried to uninstall completely and fresh install Adobe Captivate, but not luck .

    Help, please.

    @Rod and with a concern for users of later versions (I'm not sure 6, this version did more) 6.

    It is perfectly possible to show/hide objects of an 'Advanced' action (not with a simple gesture) that is running on another slide of the slide corresponding to the object. I am certain about it for versions 7 and 8. I have not been much about 6 blogging and was bit sloppy on this release to keep track of all the changes. If you don't believe me (what happens in these forums), CP8 users take a look at the example file Cloudair included with this release: the action advanced in the first slide shows/hides objects anywhere in the file based on the information of the new cpInfoGeoLocation of system variables.

    Rod, I see you post this comment often, I just wanted to add these details. As I explained that I don't know when this change occurred (6.1 is my suspicion, but cannot test). In CP5 you could hide objects that have been timed for the rest of the project on a slide different than its original location. Since 5.5, you might also show this type of object.

    Lieve

  • BlackBerry Q10 timer does not work for a project of 10 Q Lable in Blackberry

    Hi all

    I'm just a new Black Berry Q 10 and just beginner. I get some helpful solutions here to correct my mistakes. I am very grateful for this site and its members.

    In my application, I would like to add a timer to a lable. for every second, I want to Christophe Lable value. Here is my code Qml and timer.

    // Default empty project template
    import bb.cascades 1.0
    import CustomTimer 1.0
    // creates one page with a label
    Page {
        Container {
            id:root
            layout: DockLayout {}
            property int f: 10
            Label {
                id: timerLabel
                text: qsTr("Hello World")
                textStyle.base: SystemDefaults.TextStyles.BigText
                verticalAlignment: VerticalAlignment.Center
                horizontalAlignment: HorizontalAlignment.Center
    
            }
            Timer {
                id: lightTimer
                // Specify a timeout interval of 1 second
                interval: 1000
                onTimeout: {
                    root.f -= 1;
                    timerLabel.text = "Timer:"+root.f;
                    lightTimer.start();
                    if(root.f<0){
                        lightTimer.stop();
                    }
                    } // end of onTimeout signal handler
            } // end of Timer
    
        }
    }
    
    #include 
    #include "timer.hpp"
    
    Timer::Timer(QObject* parent)
         : bb::cascades::CustomControl(),
         _timer(new QTimer(this))
    {
        Q_UNUSED(parent);
        connect(_timer, SIGNAL(timeout()), this, SIGNAL(timeout()));
        setVisible(false);
    }
    
    bool Timer::isActive()
    {
        return _timer->isActive();
    }
    
    int Timer::interval()
    {
        return _timer->interval();
    }
    
    void Timer::setInterval(int m_sec)
    {
        // If the timer already has the specified interval, do nothing
        if (_timer->interval() == m_sec)
            return;
    
        // Otherwise, set the interval of the timer and emit the
        // intervalChanged() signal
        _timer->setInterval(m_sec);
        emit intervalChanged();
    }
    
    void Timer::start()
    {
        // If the timer has already been started, do nothing
        if (_timer->isActive())
            return;
    
        // Otherwise, start the timer and emit the activeChanged()
        // signal
        _timer->start();
        emit activeChanged();
    }
    
    void Timer::stop()
    {
        // If the timer has already been stopped, do nothing
        if (!_timer->isActive())
            return;
    
        // Otherwise, stop the timer and emit the activeChanged()
        // signal
        _timer->stop();
        emit activeChanged();
    }
    
    #ifndef TIMER_HPP_
    #define TIMER_HPP_
    
    #include 
    #include 
    
    class QTimer;
    
    class Timer : public bb::cascades::CustomControl
    {
        Q_OBJECT
    
        Q_PROPERTY(bool active READ isActive NOTIFY activeChanged)
        Q_PROPERTY(int interval READ interval WRITE setInterval
                   NOTIFY intervalChanged)
    
    public:
        explicit Timer(QObject* parent = 0);
    
        bool isActive();
        void setInterval(int m_sec);
        int interval();
    
    public
    
    slots:
        void start();
        void stop();
    
    signals:
        void timeout();
        void intervalChanged();
        void activeChanged();
    
    private:
        QTimer* _timer;
    };
    
    #endif /* TIMER_HPP_ */
    

    and I sign up time as follws custome...

    Registering the custome timer
    qmlRegisterType("CustomTimer", 1, 0, "Timer");
        // create scene document from main.qml asset
        // set parent to created document to ensure it exists for the whole application lifetime
        QmlDocument *qml = QmlDocument::create("asset:///main.qml").parent(this);
    

    where I'm wrong... I'm just Hello world but Timer shows no lable value. Please help me!

    Hello

    It was my mistake in looking at timer in Qml. The good way to start is given below.

    Already... .i was

      Timer {
                id: lightTimer
                // Specify a timeout interval of 1 second
                interval: 1000
                onTimeout: {
                    root.f -= 1;
                    timerLabel.text = "Timer:"+root.f;
                    lightTimer.start();
                    if(root.f<0){
                        lightTimer.stop();
                    }
                   } // end of onTimeout signal handler
            } // end of Timer
    

    but now to hide a bad start timer and start in the right way

    Timer {
                id: lightTimer
                // Specify a timeout interval of 1 second
                interval: 1000
                onTimeout: {
                    root.f -= 1;
                    timerLabel.text = "Timer:"+root.f;
    //                lightTimer.start();
    //                if(root.f<0){
    //                    lightTimer.stop();
    //                }
                   } // end of onTimeout signal handler
            } // end of Timer
    
        }
        onCreationCompleted: {
            lightTimer.start();
        }
    

    Thank you!!!

  • "For more specific class" does not not on sbRIO 9636

    The application that I am forcing me to programmatically access arbitrary components of a nested group. Currently, I am doing the browsing the cluster using his property [] node recursively controls. Currently, my accessor VI to accomplish this works very well on a normal PC but does not work on my target in real time, a sbRIO 9636.

    After some research, I determined that the function "To more specific class" does not work on my target in real time. I have attached a code base that shows the heart of the problem. It works fine on a PC but will return an error 53 when running on my target in real time.

    A few questions:

    (1) is 'To more specific class' supported on the sbRIO 9636 or not?
    (2) if it is supported, what am I doing wrong?

    (3) if it is not taken in charge, what are other methods for access by the arbitrary elements of a nested cluster program?
    (4) if it is not supported, why LabVIEW allows me to place the feature even when the sbRIO 9636 is explicitly selected as my goal in my LabVIEW project? It seems prudent to restrict its use, if it is not supported. My day job has been effectively wasted because of this problem.

    For reference, here's a few previous discussions

    http://forums.NI.com/T5/real-time-measurement-and/modifing-cluster-component-properties-on-sbRIO-No-...

    http://forums.NI.com/T5/real-time-measurement-and/quot-Manager-call-not-supported-quot-when-typecast...

    Thank you
    JAnthony

    The other posts are correct, because it is currently not possible to use the function on a real-time target. This is a known issue and is being investigated for correction, but currently there is no work around. It is available on the pallets that this behavior is not intentional and should work.

    You have described your application requires that recursively through a table and access to specific data. Does this mean that the Data Structure might be different when the vi is run and you need to adapt to a changing data type? If this isn't the case, then all you need to do is to get the value of the reference and then ungroup the cluster as needed then store the changed values to the same reference.

    If you're going to have to settle you will encounter difficulties to be determined pragmatically you should do but I have a suggestion. Create a cluster with an enum and a Variant. You can use the enumeration to set the type of the variant in question. He chooses the type to convert the variant according to the code. It is a similar structure, like messages in queue manager and his messages that happening except that you will be passing a reference to this group that has both the message and the payload in one. The reference could be used to get the value and then the code must only be written to accept the Cluster of Enum and variant you can then convert the variant to the appropriate type for later use. For best performance, you also use in Place of the Structure element.

    It's only a means potentially accomplish what you want. If you describe your program and needs more in depth, we are able to offer a more suitable solution for your application that does what you need. I wish you a nice day!

  • BitmapData.Draw () does not work with crossdomain images

    We develop a gallery of dynamic moving images using Flash 8 & AS2, for which images are called from another area. I used the Reflection class (in which bitmapdata.draw () of works) to achieve reflections. It works fine when the images are called from the same domain. But when the images are called from another area, the Reflection class does not work because bitmapdata.draw () does not work on images of crossdomain due to security sandbox. Although the images are appearing. I would be very grateful if anyone can answer, because I tried this for the last few days with little success.

    There is some information at the bottom of this page:

    http://livedocs.Adobe.com/Flash/8/main/00001950.html

    And here
    http://flashforever.homeip.net/blog/?p=4#comment-31

  • First elements 11 trial does not work

    Downloaded trial version, but it won't work. Have you tried the chat pod help without success. From the opening screen Organizer works and works ok. Video editor does not work for existing projects or new projects. The mobile bar Scrolls for about 120 seconds, then stops and nothing happens. Thinking about buying this program but want to trial first. Any help please.

    Still trying to get this program to work... Do not know if this will raise any more light on the subject, there is an Adobe file with a single folder inside - Adobe Prime Minister 11 items in the program files folder.

    There is a folder of Adobe with Photoshop elements 11, Player 10 and 11 drive, flash drive, organizing of 11 items, five records in the ProgramFiles (x 86) folder.

    If I understand the x 86 file is those that run 32-bit. As the organizer and the elements work well I tried to copy the elements of Prime Minister in the x 86 with lime as a long shot, but again, it didn't work.

    In Task Manager processes QT32 SERVER. EXE appears briefly and then disappears when you try to open the video editor.

  • Class Timer does not work

    I needed a periodic showStatus funcation and read the setInterval docs where he suggests to use the Timer class instead.

    I gave it a try, it won't work. However, setInterval works

    Compiled with flex sdk "Version 3.3.0 build 4852.

    The player comments send me to http://www.Adobe.com/software/Flash/about/ which indicates that "you have the version installed in 10,0,32,18"

    Here is the code with setInterval enabeld (works) just comment this line and uncomment the section that uses a top clock to test the other case.

    package
    {
    import flash.display.Sprite;
    import flash.text.TextField;
    import flash.utils.setInterval;
    import flash.utils.Timer;
    import flash.events.TimerEvent;
    import flash.events.Event;

    SerializableAttribute public class Main extends Sprite
    {
    private var statusLine:TextField;
    private var statusText:String = "";
    private var statusTimer:Timer;
    private var timerStep:Number = 100;
    private var elapsedTime:Number = 0;

    public void Main()
    {
    statusLine = new TextField();
    statusLine.width = 400;
    statusLine.height = 400;
    statusLine.multiline = true;
    statusLine.wordWrap = true;
    statusLine.text = "start";
    addChild (statusLine);

    NOTE: Adobe livedocs for setInterval says:
    "Instead of using the setInterval() method, consider creating
    a Timer object, with the specified interval... »
    statusTimer = new Timer(timerStep,0);
    statusTimer.addEventListener ("timer", showStatus); A single sample it shows this way
    statusTimer.addEventListener (TimerEvent.TIMER, showStatus); The other sample reads
    statusTimer.start ();

    except that it does not work! stick with setInterval() for now
    setInterval (showStatus, timerStep);
    }

    private void showStatus (): void
    {
    var txt:String = "";

    elapsedTime += timerStep;

    txt += ">" + Math.round(elapsedTime/100)/10 + "."; "

    statusLine.text = txt;
    }
    }
    }

    Hello

    Once again, check the following Code. his work

    package {}

    import flash.display.Sprite;

    import flash.events.TimerEvent;

    import flash.text.TextField;

    import flash.utils.Timer;

    SerializableAttribute public class TestTimer extends Sprite

    {

    private var statusLine:TextField;

    private var statusText:String = "";

    private var statusTimer:Timer;

    private var timerStep:Number = 100;

    private var elapsedTime:Number = 0;

    private var count: int = 0;

    public void TestTimer()

    {

    statusLine = new TextField();

    statusLine.width = 400;

    statusLine.height = 400;

    statusLine.multiline = true;

    statusLine.wordWrap = true;

    statusLine.text = "start";

    addChild (statusLine);

    statusTimer = new Timer (100);

    statusTimer.addEventListener (TimerEvent.TIMER, fireTimer);

    statusTimer.start ();

    }

    private void fireTimer(event:TimerEvent):void

    {

    statusLine.text = "timer"+ counter fired;

    counter ++;

    }

    }

    }

  • 16 GB class 6 SDHC SD Card does not work with Camelio H20

    Can anyone help?

    I recently bought the camcorder above. I bought a 16 GB memory card class 6 SDHC separately.

    The map seems to work fine on my PC as a memory device.
    However, I can't work on the camcorder.
    I formatted the card on the PC and the camera but still does not work.

    I read that I might need to partition map. However, the user manual made no mention of this.
    The manual States that and SDHC card up to 32 GB can be used.

    I would appreciate any suggestions or comments!

    Thank you

    Kevin Bray

    Hello

    > I formatted the card on the PC and the camera but still does not work.
    If you have formatted it in camcorder, then the SD card has been recognized in camcorder is it normal?

    So what exactly do you mean by + I can't make it work on the camcorder? +

  • Demarshalling xml with the automatically generated class JAXB2.0 file does not work in jdeveloper 11.1.1.9

    I'm trying to familiarize themselves with JAXB in jdeveloper. I am facing some problems. There are a few test cases for which he works, for others it is not.

    Case 1:

    XML file is created manually. Respective java class to xmlelements is created manually. There is no ObjectFactory.java or jaxb.properties. Demarshalling this XML file works fine.

    Case 2:

    XML file is not created manually. All the respective java classes including ObjectFactory.java and jaxb.properties are generated using the widget ' JAXB 2.0 content XML Schema model "jdeveloper. I deleted ObjectFactory.java, jaxb.properties, and package - info.java. Demarshalling xml with this class file works fine.


    Case 3:

    Even in case 2, but this time I do not delete or change whatever it is generated and used as it is. It does not work. Get the following error.

    Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
    javax.xml.bind.UnmarshalException
     - with linked exception:
    [Exception [EclipseLink-25008] (Eclipse Persistence Services - 2.3.1.v20111018-r10243): org.eclipse.persistence.exceptions.XMLMarshalException
    Exception Description: A descriptor with default root element rss was not found in the project]
      at org.eclipse.persistence.jaxb.JAXBUnmarshaller.handleXMLMarshalException(JAXBUnmarshaller.java:816)
      at org.eclipse.persistence.jaxb.JAXBUnmarshaller.unmarshal(JAXBUnmarshaller.java:109)
      at com.example.jaxbintro.JAXBExampleClass.main(JAXBExampleClass.java:36)
    Caused by: Exception [EclipseLink-25008] (Eclipse Persistence Services - 2.3.1.v20111018-r10243): org.eclipse.persistence.exceptions.XMLMarshalException
    Exception Description: A descriptor with default root element rss was not found in the project
      at org.eclipse.persistence.exceptions.XMLMarshalException.noDescriptorWithMatchingRootElement(XMLMarshalException.java:129)
      at org.eclipse.persistence.internal.oxm.record.SAXUnmarshallerHandler.startElement(SAXUnmarshallerHandler.java:208)
      at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1598)
      at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:455)
      at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:401)
      at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:239)
      at org.eclipse.persistence.internal.oxm.record.XMLReader.parse(XMLReader.java:157)
      at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.unmarshal(SAXUnmarshaller.java:688)
      at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.unmarshal(SAXUnmarshaller.java:271)
      at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.unmarshal(SAXUnmarshaller.java:258)
      at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.unmarshal(SAXUnmarshaller.java:218)
      at org.eclipse.persistence.oxm.XMLUnmarshaller.unmarshal(XMLUnmarshaller.java:306)
      at org.eclipse.persistence.jaxb.JAXBUnmarshaller.unmarshal(JAXBUnmarshaller.java:106)
      ... 1 more
    

    The project is included in the annex to this issue. It is ready for use. More information in the commentary to the java code. The main class is JAXBExampleClass.java.

    What is the problem with case 3?

    OK, I've been messing around with codes generated a bit and found the solution. The problem is that the value of the XmlSchema namespace had error in package - info.java class. There is no specified XmlSchema namespace in the XML file. Thus, the given value in the package - info.java was wrong.

    @javax.xml.bind.annotation.XmlSchema (namespace = "http://www.example.org", value / / wrong, set it to an empty string or that of your xml file, if it has any)

    elementFormDefault =

    javax.xml.bind.annotation.XmlNsForm.QUALIFIED)

    package com.example.jaxbintro.xmlerror;

    After you set the namespace to the empty string, since my xml file do not have one, code ran very well.

    @javax.xml.bind.annotation.XmlSchema (namespace = "",)

    elementFormDefault =

    javax.xml.bind.annotation.XmlNsForm.QUALIFIED)

    package com.example.jaxbintro.xmlerror;

    The file package - info.java can also be removed and it will work. For more details on the package and XmlSchema annotated level, what information on the package class is for, be found in the following link.

    https://JAXB.Java.NET/NoNAV/jaxb20-FCS/docs/API/javax/xml/bind/annotation/XmlSchema.html

  • [JS, CS4] TextFrame.extractLabel () does not work with the instances of this class

    I have the script, which works very well in CS3. In CS4 (app.version = 6.0.1.532) However, I get an error using extractLabel, after reading a few other a textframe properties:

    frameObject.extractLabel ('name')
    Error: TextFrame.extractLabel () does not work with the instances of this class

    Until the reading of one of the 'normal' properties, such as (frameObject.) content I can call frameObject.extractLabel ('name') without errors, but after "watching" (assign it to a variable in the code, or by getting the value in the javascript console), the content property (or as it seems any normal property) the extractLabel method generates the above error.

    It seems to work to move all frameObject.extractLabel at the beginning of the function calls, but I don't think that I would need to do this.

    It could very well be the case that the label read by extractLabel has no content and never received. Will there be a change in behaviour of CS3 in this sentence? If so, and if this is the reason for the error, is there then a way to determine if the label has been assigned?

    This error is familiar to someone else?

    Best regards

    Andreas

    It works if you use:

    var pgItm = app.activeDocument.textFrames.itemByID(parseInt(myId));
    

    Otherwise, this might work:

    var pgItm = app.activeDocument.pageItems.itemByID(parseInt(myId)).getElements()[0];
    

    Although, generally, itemByID gives you the question no matter what it is as long as there are, so I'm bit puzzled that neither of them will be necessary.

    Dave

  • Calling a Flex action when you display a view html Bridge does not work

    Hello

    I have a second question.

    Our plug-in displays a view of the hosts using the html bridge code.  When our view is active and the user

    call the context menu in the Navigation on the left - and attempts to perform an Action (for example: Host disconnect).

    the container (IFrame) in which appears our point of view, is made to have a bright white background, and the action does not work

    work - no dialog boxes don't start or anything like that.

    Is there anything I can do to prevent this?

    Thanks for some tips more

    Cathy

    Hi Laurent,.

    I made a Plugin Acme - it does nothing except show a label and a text.  Then I added this to my plugin.xml for a host.

    The first photo shows just the plugin at the beginning.  Then I call the contextmenu - and select "Disconnect" - the third watch

    what looks like the view, and it's normal 'disconnect' are you sure... box is not running...

    But I noticed that I use the sdk 6.0ga - so maybe I should try with update 1?

    But for our production, we use the sdk 5.5, because it must operate on 5.5 as well.

    I also tried another host of Actions, such as alarms-> new alarm definition - but that works properly.  I don't know what could be the difference.

Maybe you are looking for