Envoyer signal quand codeur à une certaine position

Bonjour,
Je travaille actuellement sur un projet avec un moteur, piloté par Labview, j'ai réalisé un programme qui fonctionne très bien.
Ce moteur dispose d'un codeur incrémental. Je veux, à l'aide de ce codeur, envoyer un signal à un shutter, pour que celui ci s'ouvre 1 fois par cycle (exemple à chaque fois qu'il passe à la position x).
Je dispose d'une carte PCI-6320e. A l'aide des exemplles, je parviens à lire une position, ça va de 0 à n à chaque tour de boucle (n varie en fonction de la vitesse de rotation de mon moteur), mais je sais qu'à chaque tour je passe par un pseudo 0 (la valeur n'est pas forcément lue, puisque j'ai un timer, relatif à la commande de mon moteur.
Comment puis-je faire pour dire "quand tu es à la valeur x"?
Je ne sais pas si c'est très clair, mais en tout cas c'est assez urgent.
Merci d'avance.

merci pour cette réponse, mais le problème est que j'ai un timer, lié à l'utilisation de mon moteur, et je ne lis donc pas toutes les valeurs, donc si je fixe ma consigne à 0, mais que ça tombe un tour où le 0 n'est pas lu par exemple, le signal ne sera pas envoyé.
en fait mon problème est comment à partir de la courbe par exemple, ou du tableau, quand je repars à 0 (mais pas forcément exactement à 0 donc), dire que le signal peut être envoyé (sans qu'il y ait trop de décalage d'un tour à l'autre)

Similar Messages

  • Utl_file how to start reading from a certain position?

    Hi all,
    i'm currently using utl_file to read a text file and import to db. i have managed to do it. however i would like to avoid reading the first line as it is the header. i would also like to avoid the last line as it is the footer.
    how do i use the function of get line to start reading at a certain position? i am also able to get the length but i do not know how to make it start reading from a certain position.
    the length of the first line will always be 9 and length for the last line would be 51.
    here's my code so far:
    set serveroutput on
    declare
    vSFile   utl_file.file_type;
    vNewLine VARCHAR2(4000);
    file_name VARCHAR2(200) := 'read.txt';
    v_exist     BOOLEAN;
    v_length number;
    blocksize   NUMBER;
    temp_value varchar2 (4000);
    BEGIN
      vSFile := utl_file.fopen('MYDIR', file_name,'r');
      IF utl_file.is_open(vSFile) THEN
        LOOP
          BEGIN
            utl_file.get_line(vSFile, vNewLine);
            IF vNewLine IS NULL THEN
              EXIT;
            END IF;
          EXCEPTION
            WHEN NO_DATA_FOUND THEN
              EXIT;
          END;
        END LOOP;
        UTL_FILE.FGETATTR('MYDIR',file_name,v_exist,v_length,blocksize);
        dbms_output.put_line(v_length);
        COMMIT;
      END IF;
      utl_file.fclose(vSFile);
    END read_demo;

    Hi,
    utl_file has an fseek procedure for moving the file pointer around in a file, either absolute or relative number of bytes.
    It's in the documentation, I'm surprised you didn't see it there when you looked before going to the hassle of asking us a question.
    Andre

  • HT204266 Why does only one headphone work when i listen to music? I have to hold the base of the cord in a certain position for it to work, it does this with all headphones i try, what do i do?

    Why does only one headphone work when i listen to music? I have to hold the base of the cord in a certain position for it to work, it does this with all headphones i try, what do i have to do?

    You can try cleaning the headphone jack. However, I suspect that th headphone jack needs replacement.
    Apple will only exchange your iPod for a refurbished one for this price.
    Apple - Support - iPod - Repair pricing
    A third-party place like the following is less expensive. Google for more places.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens

  • Insert XML String into XML file at a certain position

    Hello,
    I have this xml string:
    <jdbc-driver-params>
    <url>jdbc:oracle:thin:@localhost:1521:mydb</url>
    <driver-name>oracle.jdbc.OracleDriver</driver-name>
    <properties>
    <property>
    <name>user</name>
    <value>myuser</value>
    </property>
    </properties>
    <password-encrypted>myuser</password-encrypted>
    </jdbc-driver-params>and i need to insert it into an xml file at a certain position (as child for a node)
    The xml file looks like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <jdbc-data-source xmlns="http://www.bea.com/ns/weblogic/90"
        xmlns:sec="http://www.bea.com/ns/weblogic/90/security"
        xmlns:wls="http://www.bea.com/ns/weblogic/90/security/wls"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/ns/weblogic/920 http://www.bea.com/ns/weblogic/920.xsd">
        <name>myDB</name>
        <jdbc-data-source-params>
            <global-transactions-protocol>OnePhaseCommit</global-transactions-protocol>
        </jdbc-data-source-params>
    </jdbc-data-source>And this is how I would like to get it in the end:
    <?xml version='1.0' encoding='UTF-8'?>
    <jdbc-data-source xmlns="http://www.bea.com/ns/weblogic/90" xmlns:sec="http://www.bea.com/ns/weblogic/90/security" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wls="http://www.bea.com/ns/weblogic/90/security/wls" xsi:schemaLocation="http://www.bea.com/ns/weblogic/920 http://www.bea.com/ns/weblogic/920.xsd">
      <name>mydb</name>
      <jdbc-driver-params>
        <url>jdbc:oracle:thin:@localhost:1521:myDB</url>
        <driver-name>oracle.jdbc.OracleDriver</driver-name>
        <properties>
          <property>
            <name>user</name>
            <value>myuser</value>
          </property>
        </properties>
        <password-encrypted>myuser</password-encrypted>
      </jdbc-driver-params>
      <jdbc-connection-pool-params>
        <test-table-name>SQL SELECT 1 FROM DUAL</test-table-name>
      </jdbc-connection-pool-params>
      <jdbc-data-source-params>
        <global-transactions-protocol>OnePhaseCommit</global-transactions-protocol>
      </jdbc-data-source-params>
    </jdbc-data-source>So, I obtain the node for the given xml string, the jdbc-data-source node from the xml file and i attempt the appendChild. The problem is that nothing really gets inserted into the xml file.
    Someone, any idea?
    My code:
    try
                   DOMParser parser = new DOMParser();
                   parser.parse(xmlFileName);
                   Document doc = parser.getDocument(); // the document we will insert node into
                   Node root = doc.getElementsByTagName("jdbc-data-source").item(0);
                   //get XML string node
                   DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
                   DocumentBuilder db = factory.newDocumentBuilder();
                   InputSource inStream = new InputSource();
                   inStream.setCharacterStream(new StringReader(xmlString));
                   Document doc4XMLString = db.parse(inStream);
                   Node rootXMLString = doc4XMLString.getElementsByTagName("jdbc-driver-params").item(0);
                   root.appendChild(doc.importNode(rootXMLString, true));
                   return true;
              catch (Exception e)
                   e.printStackTrace();
              }Thanks,
    johnny
    Edited by: smeag0l on Aug 6, 2008 5:08 PM
    Edited by: smeag0l on Aug 6, 2008 5:43 PM

    Well, you helped me again :-) Thank you very much!
    Here is how the code should look:
                            DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
                   DocumentBuilder db4XMLFile = factory.newDocumentBuilder();
                   Document doc4XMLFile = db4XMLFile.parse(xmlFileName);
                   Node root4XMLFile = doc4XMLFile.getElementsByTagName(rootNodeName).item(0);
                   DocumentBuilder db4XMLString = factory.newDocumentBuilder();
                   InputSource inStream = new InputSource();
                   inStream.setCharacterStream(new StringReader(xmlString));
                   Document doc4XMLString = db4XMLString.parse(inStream);
                   Node root4XMLString = doc4XMLString.getElementsByTagName(xmlStringNodeName).item(0);
                   root4XMLFile.appendChild(doc4XMLFile.importNode(root4XMLString, true));
                   File file = new File(xmlFileName);
                            Result result = new StreamResult(file.toURI().getPath());
                   Source source = new DOMSource(doc4XMLFile);
                   Transformer xformer = TransformerFactory.newInstance().newTransformer();
                      xformer.transform(source, result);

  • ArrayList adding at certain position

    I have defined my arrayList as following
    List  myList = new ArrayList();I want to insert a data at a certain position of the above list and this is what i did.
    String str = "abc";
    myList.add(5,str);the above gives me outofbound exception because the size of myList is 0.
    As a solution what i found was
    for(int i = o; i <5; i++){
    String tempStr= null;
    myList.add(i,tempStr);
    myList.add(5,str);Is there any other way of achieveing the same result, much simpler way.
    I have a situation, where the size of my list will be fix, but when i add data
    to it i want to add it at a certain position(less than the length of arrayList)
    , even though the length of the arrayList is less that that position.

    Why? If the size is fixed (seems that way) he's
    better off with an array. No need to check ifit's
    big enough already, no need to add nullelements.
    I agree!
    > AOL!
    BRRRRRRING!!!!!! YIP YIP YIP!!!

  • Envoyer un signal trigger sur une caméra déclenché lui-même par un premier signal (via carte PCIe-6321)

    Bonjour à tous,
    Voici mon problème :
    Concrètement je reçois un signal externe TTL à 10Hz , je dois capter une image d'un phénomène qui intervient quelques centaines de µs après le signal 10Hz (mais je ne sais pas exactement quand). J'ai un trigger disponible en entrée de la caméra très précis.
    Je dois pouvoir ajuster ce délai pour caler correctement la prise de l'image sur le phénomène à observer. Après plusieurs essais mon idée était de passer par l'intermédiaire de la carte DAQ PCIe-6321 que j'ai à disposition sur mon système.
    En fait je voudrais pouvoir synchroniser une sortie TTL de la carte sur le signal 10 Hz et ensuite pouvoir ajuster la fréquence de mon signal DO qui est envoyé sur la caméra.
    Je ne pense pas que ce soit compliqué à faire avec le DAQ c'est un peu fait pour ça aussi mais je me perd un peu dans les différentes fonctions, et je voudrais éviter de faire tout ça par soft avec tempo etc...
    Merci d'avance pour vos réponse.

    Doublon
    Paolo_P
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    Travaux Pratiques d'initiation à LabVIEW et à la mesure
    Du 2 au 23 octobre, partout en France

  • Peut-on se servir de l'écran du iphone 4 comme moniteur, est-ce que l'on peut entré un signal provenant d'une caméra Gopro ( un live feed)

    Est-ce que l'on peut se servir du iphone 4 comme écran moniteur. J,ai une caméra Gopro et est-ce que je pourrait entré un Live Feed et me servir de mon écran comme moniteur.
    Merci!
    Alain Turcotte

    Your initial post deals with the iPhone warranty.  Forum participants have no control over Apple warranties.
    You then relate a problem with your cursor which you state that could not be resolved by the Apple genius bar.  If they cannot solve it, certainly forum participants are not likely to succeed either.
    Then you bring up an issue that of an appointment, whether it took place or not, with Apple.  We cannot intervene or assist you in that issue because we are not Apple employees.  We are Apple customers just like you.
    All I can advise you is to escalate your issues to the higher levels of Apple management.  We are not in a position to assist you.
    Ciao.

  • Envoie de commande vers une sonde à l'aide d'une carte NI PCMCIA-485/2

    Bonjour,  Je suis actuellement en stage pour finir mon projet de fin d'études, et mon sujet de stage et de faire l'acquisition de données d'une sonde à partir d'une carte d'acquisition NI PCMCIA-485/2 à l'aide du logiciel Labview. Je ne suis que débutant dans cette matière de programmation. J'utilise la version Labview 2009.
     Pour se faire, je dois utiliser des commandes de formats (n)Byte de type de données U8/U16. Dans le protocole de ma sonde, les commandes à envoyer sont sous la forme Hexa.
     Je me suis inspiré des exemples E/S matérielles -> Série pour élaborer ma configuration de la carte série ainsi que de l'envoie/réception de commande.
     Je n'ai pas trouvé d'autres moyens pour envoyer ma commande (en Hexa) que de l'écrire dans un tableau d'octets non signés et de la transformer en chaîne.
     Jusque là, ça me parraissait assez bon.
     Mais une fois que j'exécute mon programme, j'ai au bout de 10s environ, un message d'erreur : "-1073807339 " / "Hex 0xBFFF0015" m'indiquant que le délai d'attente (Timeout) a expiré avant que l'opération ne soit achevée. ( Visa Read )
     J'ai pensé que cette erreur venait de ma constante que j'avais gardé par défaut sur l'exemple, mais même en la modifiant je me retrouve devant cette erreur. Et qui plus est, je n'ai pas de réception de réponse sur le Visa Read.
     Je ne comprends pas d'où vient mon erreur. Si ce n'est qu'elle intervient au moment du Visa Read.
     Je vous joinds mon vi pour que mieux contextualiser ma démarche.
     Si quelqu'un a une idée, je suis preneur
     Bonne journée,
     Sma.
    Résolu !
    Accéder à la solution.
    Pièces jointes :
    Config_RS485.vi ‏17 KB

    Bonjour Sma_31 et bienvenue sur le forum National Instruments,
    L'erreur rencontrée est assez classique. 
    Voici ce qui se passe : dans la configuration actuelle, le nombre d'octets à lire ( 12 par défaut dans le VI en pièce jointe) est supérieur au nombre d'octets physiquement disponibles (à un moment ou à un autre).
    D'où l'origine du timeout.
    Voici la démarche à suivre pour éviter ce comportement :
    http://digital.ni.com/public.nsf/allkb/874B379E24C0A0D686256FCF007A6EA0
    ps: en fonction de votre instrument/sonde, il peut être utile d'insérer une temporisation entre le write et le read afin de "laisser du temps" entre la commande et la récupération des infos. 
    Je vous invite également à consulter les exemples (accessibles via Aide -> Exemples sous LabVIEW), qui vous guideront et vous apporteront beaucoup d'idées et de conseils pour le développement de votre application (dont les exemples de communication VISA).
    Cordialement, 
    Alexandre D.
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    >> Les présentations NIDays 2010 déjà disponibles au téléchargement !

  • Need help with control system that reduces a flat output signal every time a certain input exceeds given value

    I'm having difficulty setting up a closed loop control system that reduces one of my voltage outputs (connected to a high voltage system) by 30% every time a measured voltage exceeds a certain threshold value.  I'm using a USB 6229 DAQ.  I've been trying to create a waveform that looks like a DC signal, but the only waveforms that I can seem to manipulate while my VI is running are the stock waveform types.  Also, I've tried to use a formula node or conditional structure to update the output value every time the measured voltage exceeds a given value, but everything I do reinitializes the output value every time it runs or won't store the previous signal value.  I'm using LabVIEW 8.6 and don't have the PID or similar express VI's.  I've attached the mess I've got working right now.  Can anyone help?  I'm really stuck!
    Thanks! 
    Attachments:
    HiV step down.vi ‏40 KB
    output control.vi ‏100 KB

    I'm sorry it's such a mess; I'm still pretty new at this.  These are both little driver programs for a larger overall control program. 
    Output control is meant to send a flat signal to the DAQ whose value can be manipulated while the VI is running.  I have the second activated segment merely to check the values being output.  I didn't realize I attached a version with a meaningless control...I had a control where the user would put in the stating voltage (the high voltage source has a 1V-100V setting for external control).  I've attached this slightly different but equally dysfunctional version.  Ideally, I would have liked something like the analog signal generator vi to come with an input wiring for offset on the DC signal.  Most of the code was diabled because it is copied from an example; it is largely rubbish.  I initially used the DAQ Assistant, but when things weren't working out I switched to putting in each step manually to try to troubleshoot.
    As far as HiV step down is concerned, I've tried something different with a nested case structure (if that's the right terminology?), and I've attached that file.  I think this problem has been solved, but you never know!
    Attachments:
    output control slightly different.vi ‏100 KB
    HiV step down w case structures.vi ‏44 KB

  • Bonjour, j'ai une application avec un DAQmx à une certaine adresse et je lance une seconde application de lecture analogique 'ai le retout Erreur -50103 probleme réservation. Comment partager l'information via la même adresse IP ?

    Schema explicatif :
    PC --> process 1 --> Daqmx ( input analogique )
          --> process 2 -->lecture analogique sur Daqmx du process 1
    J'ai regardé sur le forum l'erreur -50103, avec une boucle while , ne marche pas dans mon application .
    Y a t il une fonction multitache sur le Daqmx, je cherche .
    Résolu !
    Accéder à la solution.

    Bonjour PARKER_LA,
    Pourriez-vous être plus précis sur le matériel et logiciel que vous utilisez ?
    Quand vous utilisez le terme "DAQmx", voulez-vous parler du matériel d'acquisition Compact DAQ (cDAQ) ? S'agit-il d'un châssis avec plusieurs modules ?
    Pouvez-vous poster votre code ?
    Cordialement,
    Isabelle G.
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    Été de LabVIEW 2014
    12 présentations en ligne, du 30 juin au 18 juillet

  • How can I replace a certain position of a String?

    How can I do this?
    I have this string: "Hello World"
    Now I want it to have: "Hello Warld"
    I already know the position of the char to be replaced.

    Try StringBuilder/StringBuffer. You can set a character at a certain location.

  • Report region to display at a certain position

    I have many regions in a report page, they are all in Report Template Body 3 position. I use column# to arrange the display order.
    Regions that have data will always display first, those that do not have data are conditioned to not display. I may end up region displays at different position depends on how many regions have data. for example:
    if I have 2 regions that have data, it shows: --------region1--------- (many spaces in between)----------region2----------
    I want no matter how many regions I have data: --------region1-------------------region2----------
    Sort of those display regions should be all next to each other. How do I control that display position?
    Thanks,
    Yivon
    Edited by: YivonH on Sep 5, 2008 9:19 AM

    Thanks for the replies. I really appreciate!!!
    The link examples seem to have predefined set of regions, mine is more dynamic -- Not knowing how many region will display.
    A hint I got from the links is: Get the display position, with width and height, from the previous region and set the position for the next region with the same width and height.
    Can anyone show me how to do that? I am a newbie to the web programming...
    Thanks again,
    Yivon

  • Getting one character at a certain position from a string array

    Hi, i'm new at learning java, but have strong experience at C++ and asm. How would i get one character at a certain positon from a string array.
    for example:
    String Phrases[] = {"To be or not to be, that is the question","The Simpsons","The Mole","Terminator three rise of the machines","The matrix"};
    that is my string array above.
    lets say i wanted to get the first character from the first element of the array which is "T", how would i get this

    ok well that didn't work, but i found getChars function can do what i want. One problem, how do i check the contents of char array defined as char Inchar[];

  • Registered schema lost one byte of Chinese character at certain position

    Hello all,
    I registered a schema as below. When viewing the registered schema in the Enterprise Manager, I found a byte was lost for the Chinese character at the position of byte 4200 ( or 0x1068 ).
    before registration:
    22 B2 FA C6 B7 CA FD C1 BF B5 A5 CE BB 22 20 ; "产品数量单位"
    after registration:
    22 B2 FA C6 B7 FD C1 BF B5 A5 CE 3F 20 ; "产品康ノ?
    My database (9.2.0.1 & 9.2.0.3) has the character set of SIMPLIFIED CHINESE_CHINA.ZHS16GBK.
    Connect test/test;
    DECLARE
    samplexmldoc clob := '<?xml version="1.0" encoding="GB2312"?>
    <xs:schema xmlns:xdb="http://xmlns.oracle.com/xdb" xmlns:xs="http://www.w3.org/2001/XMLSchema">
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <!--This is a test This is a test This is a test -->
         <xs:element name="产品目录">
              <xs:complexType xdb:SQLType="ST产品目录">
                   <xs:sequence>
                        <xs:element ref="第一种产品目录"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="第一种产品目录">
              <xs:complexType xdb:SQLType="ST第一种产品目录">
                   <xs:sequence>
                        <xs:element name="产品分类名称" type="xs:string"/>
                        <xs:element name="产品分类概况" type="xs:string"/>
                        <xs:element name="产品数量单位" type="xs:string"/>
                        <xs:element name="产品存放总分布图" type="xs:anyURI"/>
                        <xs:element name="产品样本" type="xs:anyURI"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
    </xs:schema>
    BEGIN
    dbms_xmlschema.registerSchema('http://www.antu.com.cn/metaxml.xsd',samplexmldoc,True,True,False,FALSE);
    End;
    Because we have to generate schemas by program, it's not acceptable to adjust the schema text manually.
    What shall I do? Thanks for any help.
    Chen Hui

    Please open a tar with your local support organization...
    Chen
    Please excuse me if I ask some basic questions here, I've no previous experience working with documents containing Chinese Character sets.
    I assume that if I look at your post with my Brower character set to simplifiedChinese.GB2312 I will see the schema document posted correctly..
    Can you test wether or not this problem occurs if the document is encoded in UTF8 and loaded into an AL32UTf8 database. Also, do you see , rather than GB2312. Also are the characters still missing if you view it from SQL*PLUS...

  • Fluid Layout - stop changing resize position when movieclip is at certain position

    Hello. I have been trying things out for hours, and I still can't get it.
    I am following this Fluid Layout tutorial: http://active.tutsplus.com/tutorials/web-design/build-a-fluid-website-layout/
    I added a Menu_mc on my stage. Initially, this should be at the center of the stage and when I click on it, it will tween on the upper left corner of the browser. However, when I resize the browser, the Menu_mc goes back to the center of the screen.
    I have tried separating a different actionscript file where it is specifically for initialization of the object and another one for resizing. And then when I call it on my main AS file it goes like this:
    // Add the symbols to stage
                 var Menu_mc = new Menu_MC();
                 addChild(Menu_mc);
                 // Apply the alignment to the middle
                 var Menu_InitParam = {
                     x:0.53,
                     y:0.35,
                     offsetX: -Menu_mc.width/2,
                     offsetY: -Menu_mc.height/2
                 new InitFluidObject(Menu_mc,Menu_InitParam);
                 var Menu_ResizeParam = {
                     x:Menu_mc.x,
                     y:Menu_mc.y,
                     offsetX: -Menu_mc.width/2,
                     offsetY: -Menu_mc.height/2
                 new FluidObject(Menu_mc,Menu_ResizeParam);
    But it seems futile. Could anyone please help? Thanks a lot!

    Do you have any useful resources that I could perhaps check out? Haven't explored ANY javascript before =)

Maybe you are looking for

  • Get file name/path of current .cfm file...

    i am going to make a "tracking" script for a website.  my idea is to add a <CFINCLUDE> to every .cfm file on the server (right at the end, so it would be easier to remove when im done), and have the script that is included add a record to a database

  • IDS 5.0 SP2 + Solaris 8 password problem

    Iplanet version : iDS 5.0 SP2 + Solaris 8 Password: user must change password after reset : yes user may change password : yes allow changes in 0 days keep password history : yes remeber 6 password Password expires after 90 days send warning 7 days b

  • Custom infotype with table

    Hi Guyz, i have to create a custom infotype with a table in it.i have created the PS structure (PM01)with fields a,b,c,d,e. i gave the infotype charac, techn attr, activated the PA table and P structure . In the lay out editor i created a table and p

  • Role and synonym issue

    Hi friends i create one role CREATE ROLE UPDATE_ROLE; we have three schema(a,b,c) three schema depend to all three schema but unique objects . i create public synonym CREATE OR REPLACE PUBLIC SYNONYM CTL_RC_PROCESS FOR a.CTL_RC_PROCESS; CREATE OR REP

  • My tv does not have a HDMI port, but my cable digital box does can that work?

    So my tv is a LCD Monitor and it does not have a HDMI entrance, but I am using a a digital box for my cable which does have a HDMI cable. Is there a chance by connecting it to the digital box I can get it to work. If not, what are my options to make