ExternalInterface: Type? String, object and any types?

Hello dear guys,

I want to know ExternalInterface - just, I have same problem with string or array - if I like it.

But I work with AS3 with-Javascript block like Api Libraries Facebook thing.

I just know same functions for Boolean and object...

The code is MyLibrary.as

package...

{

to import flash.external.ExternalInterface;

public class MyLibraray

{

/**

* MyLibrary output

*/

private static var _exit:Object;

Public Shared function Exit (): void

{

try {}

{if (ExternalInterface.available)}

_exit(2) = ExternalInterface.call("saveglobalscore",score) (jsBirdge.script ());

_exit(2) = ExternalInterface.call("saveglobalscore",score) ("JSL.jsExit"); //

}

} catch (error: Error) {}

}


}

}

And jsBirdge.as <-c' block with Javascript in XML Format and the Format of Doement as a Version of Javascript in Actionscript

package...

{

to import flash.external.ExternalInterface;

public class jsBirdge

{

private static var NS:String = "JSL";

public static void script (): String

{

try {}

{if (ExternalInterface.available)}

ExternalInterface.call("saveglobalscore",score) (script_js);

ExternalInterface.call("saveglobalscore",score) ("JSL.setSWFObject", ExternalInterface.objectID);

}

} catch (error: Error) {}

return NS;

}

script_js:XML = private static const

< script >

<! [CDATA]

function () {}

curwin var = Titanium.UI.currentWindow;

JSL = {}

setSWFObjectID: function {(swfObjectID)

JSL.swfObjectID = swfObjectID;

},

/ * Functions * /.

jsExit: function() {}

Titanium.Exit ();

}

};

}

[]] >

< /script >;

}

}

How ExternalInterace works with the current type?

If I use call custom such as exit to titanium Desktop ExternalInterface will verify current type - as the type exit() function = Titanium.exit (); as the Type "String".

Or another example: file and the FileStream file system types as an object, is it good?

Or Booleam example true or false as the type Booleam. ...

It is posskible that externalInterface works very well with any types/functions?

I've been tested with ExternalInterface and Javascript = bulk IT works fine... Look out! http://developer.Appcelerator.com/question/135288/how-do-you-know-Flash-and-titanium

But I hate disturbated function of communication as external GWT / fscommand...

I want to only use AS3 / JS. Just, I missed this fine example, because I remember - where are the examples? I want because you'd think all current result

Thanks I hope because I get nice answer / result to migrate the types / function for externalinterface via inblock: Javascript.

Hello

I've not really understood with your post above. But you can communicate with javascript from flex by the way below.

JavaScript:

function CallMe()

{

Alert ("Call Me");

}

function CallMeWithArg (value)

{

Alert ("this is your value:" + value);

}

Action Script:

ExternaInterface.call ('CallMe'); without argument.

ExternaInterface.call ('CallMeWithArg', 'HelloWorld'); with the argument.

Tags: Flex

Similar Questions

  • objects and the record type

    Hello experts.

    create type emp2_obj is object
    (
    objno number
    ,
    objname varchar2
    (20),
    objdept number
    );

    create type emp2_objarr is table of emp2_obj;

    and

    type emp2_rec is record
    (
    recno number
    ,
    recname varchar2
    (20),
    recdept number
    );

    create type emp2_recarr is table of emp2_rec ;

    Objects and types of records are created similar and have the same similar object.  Is it only advisable to use registration type if you use a collection in PL/SQL type... Please advice

    user13328581 wrote:

    the only reason why I ask is because he asked during an interview

    -Objects and the types of records are created similar and have the same similar object.  Is it only advisable to use registration type if you use a collection in PL/SQL type... Please advice

    Not at all.  You can use record types used with collection types outside.  They are a group concept.  If you want to group a set of values together (including fields), you can use a record.  It may be convenient.  You can send documents around proc and functions.

    Be aware that the record types are limited to procedures, functions, anonymous blocks and packages (i.e. PL/SQL), while the types of objects are stored in the dictionary of data as a separate Oracle objects (they can also have methods, the records may not).  Object types can be used in SQL, as said sol.beach types of records (outside of the intelligent pipeline situations) is for PL/SQL.

  • moved object and type next to the bottom of preview page do not

    moved object and the type next to the wallpaper preview page cannot see how to change this sitting?

    With no text selected, press w.

  • Problem when I add any object and camera

    Hi all, thanks for helping me with this.


    Here is a link to a video I recorded showing my problem.

    77c8e8bd-51e4 - 42d 7 - 97 d 8 - b918f7d12f84.3gp - Google Drive

    After you run the 3D Tracker and the creation of any object and camera.  The angle of the camera moves as the original video moves as well.  I want the camera to stay still instead of tilt angle of the video.

    Thank you

    Aaron

    Your screenshot is Aussie bad quality that I can't really tell exactly what you're doing, but looks like you're not understanding what the tracker of the camera is, or how it works. First of all, the video layer must be 2D. You have changed the video layer 3D and it would never work. Tracker camera recreates a camera inside the AE that corresponds to circulation, the focal length and the position of the camera to film the scene. Camera Tracker provides a way for you to create a ground plan and original that align to a starting point in 3D space of AE so the global center of the model is aligned with a geometry in the plan. Camera Tracker of the AE does not match lens distortion, so if you keep track of the shooting was shot with a lens wide angle and there is a lot of distortion so you must remove this distortion before follow-up or the edges of your 3D objects will drift as the camera moves unless they are located in the center of the photo that is free from distortion.

    I don't know what you're trying to accomplish with your shot. Looks like you followed the middle section of the video and the fact that the 3D layer. It would never work. The normal procedure would be to add a camera and a null value or a solid or a text composition. Then the 3D layers will be stick to shooting perfectly if there is no significant lens distortion.

    Please explain in detail exactly what you're trying to do and if you don't ccreencaptures put it on YouTube using full HD will give us something we can see better. It would have helped if there was audio on your video explaining what you were trying to do.

    Please enter Tracker camera find help in the upper right of the AE and study up on the functioning of the tool.

  • Dynamic object and shape layer

    Hey guys,.

    I have two questions, and I would be very happy if you could help me with my problem.

    01. when I copy a form of Illustrator and paste it into Photoshop as a "shape layer", it is sometimes placed on contact information does not match. It is not represented as the 'pixilated Preview' since Illustrator intends:

    Icon_Shape_Layer_Photoshop.png

    But when I use the tool 'transform' to move and type in coordinates equal form, he looks right and he is portrayed as for the 'pixilated Preview' in Illustrator:

    Icon_Shape_Layer_Nice_Photoshop.png

    When I place the same icon as a "smart object", it is always placed right. Is there a solution why?

    02. when I place a symmetrical "shape layer" (like the heart icon) and check the colors with the "Color Picker", a few pixels to the right are (minimal) chromatic values other than the same pixel on the left side. But when I place it as a "smart object" pixels on the right have the same values of color on the left side. Is there a solution for this?

    I really appreciate if someone could explain that to me.

    Thank you very much in advance!

    See you soon

    Thorbman

    What do you proof is anti-aliasing. There is no way to adjust the color. It is supposed to be a mixture of the color of objects, and what is behind it.

  • How to change data objects and update the corresponding task and task forms?

    Hi all

    I modified this thread because I found that I had many questions to ask.

    1.
    I'm quite new to OBPM and would like to know how to change data - for clarity objects add a new attribute "Dependents of the Client" "Customer care" - and therefore update the task that uses the 'customer information' what makes via data binding - I get an error message here - or via the data about the data Task-The chosen tab it does not appear to be linked to my approach in some sort.

    2.
    Will be the task form that I generated earlier in < 1 > update automatically? Is it possible to update manually if the task has been clearly customized?

    3.
    What are the objects of project data? They do not store values in my process. They are for the arguments only - like reusable process?

    Thanks in advance,

    Kind regards

    Yanis

    Hi Yanius,

    (1) assume that you start from scratch. First, you declare your data object structure. To do this, you must go to the BPM project Naviagtor, right-click on 'Catalogue of trades' and create a new Module. Then you can right click on the module you created and select the new object of trade. Add all the attributes you need. It is the same to declare a class in Java. Second, you must declare a variable of the type process you have created: select the process, go to the Structure display (if you don't go and activate it in menu view Jdev-> Structure). Right click on the Process data object and create your variable. It's like setting a variable in Java. In short, answering your question, make the path opposite: find in your process of type "Customer Details", then go to your catalog Business, right click and change the definition to add what you need.

    (2) the human task will not update automatically (annoying). If you change the object itself, so you don't need to change your mappings because actually there the same object you are through the task as in / out argument. There are two things here: the human task and form associated with it (where probably change you the subject i.e. customer details). Go to the form (.jspx) - click on the tab links (by default, you are in the Design). In the links page, there is a link on top: "Page Définition File" (something like proj/pageDef/...xml). Open the XML file and go to the source. There you can add manually now all the attributes you need and that were not available before (i.e. dependent Client). It's a little complicated, but at least you don't have to recreate it. particularly useful if you have already implemented and subsequently form, you need to add more things (business is very good to say otherwise, "I would like to see something else in the form" ;)

    (3) project data objects are visible by all processes that you have in the project rather than the object of process data that are visible only to the method where you set the variable to. This means that you declare an object of data of the project once and then it will be available to all processes. Keep in mind that each process has a copy of it. In other words, it is not like a global variable that everyone sees. If edit you in a single process, other processes will not see the new value.

    I hope that I have answered your questions.
    See you soon,.
    Felipe

  • Question about the scope of the object and memory.

    I created a class that extends Sprite.

    In this class, I have a private type BitmapData var

    I then add the Sprite as a child to another Sprite on the stage.

    Later, I delete the second Sprite (parent) of the scene and I put the variable referring to it to null.

    After the garbage collection (assuming that it happen correctly) there is no trace of the BitmapData?

    No, unless you did something extra.  If you cannot reference your bitmapdata object (and has no listener), he is eligible for gc.

  • Is it possible to reflect objects and text, but keep it readable?

    Hello

    If have a "bubble chart", i.e. an x, a y chart with a lot of data points (which are resized by y). Points range from the upper left corner a nearly linear line up to the lower-right corner. The "bubbles" have a text that describe the data point. (see attached screenshot)bubble_to_be_mirrored.png

    Now I want all of these points based on a horizontal line in the middle of the graph, mirror so that the points range from lower left to upper right. The text next to the bubbles should be obviously still readable.

    I hope and guess, there is a simple solution for it, but have not yet found one.

    Can anyone give me a tip?

    Thank you very much!

    Luftikus,

    If I understand correctly, in the right way, you can:

    0) copy everything and hide the original, perhaps on its own layer.

    (1) with everthing in the selected copy, object > transform > Reflect > portrait to mirror;

    (2) select each individual type/text objects and object > transform > Reflect > vertical, or select all type/text objects and object > transform > transform each > X reflect, in both cases to put end to their.

  • Cursor object and cursor for loop back

    I am beginner in Oracle and the serious database of programming in general. Right now I'm studying the sliders. I more or less understand how works when the cursor returns a record, but I can't understand why this does not work when the cursor return object and I use "cursor for loop.

    Here's the test code:

    CREATE or REPLACE TYPE typ_Test () AS OBJECT
    text VARCHAR2 (50)
    );

    CREATE TABLE t_Test to typ_Test;

    INSERT INTO t_Test VALUES (typ_Test('111'));
    INSERT INTO t_Test VALUES (typ_Test('222'));

    -work, simple loop
    DECLARE
    CURSOR cur IS SELECT VALUE (o) FROM t_Test o;
    typ_Test obj;
    BEGIN
    Heart OPEN;
    LOOP
    Fetch cur INTO obj;
    OUTPUT WHEN heart % NOTFOUND;
    dbms_output.put_line (obj. (Text);
    END LOOP;
    CLOSE cur;
    END;



    -doesn't work, cursor for loop
    DECLARE
    CURSOR cur IS SELECT VALUE (o) FROM t_Test o;
    BEGIN
    FOR news of obj IN LOOP
    dbms_output.put_line (obj. (Text);
    END LOOP;
    END;



    Error report:
    ORA-06550: line 5, column 30:
    PLS-00302: 'TEXT' element must be declared.
    ORA-06550: line 5, column 5:
    PL/SQL: Statement ignored
    06550 00000 - "line %s, column % s:\n%s".
    * Cause: Usually a PL/SQL compilation error.


    EDIT:
    In fact I found no examples on the net of its use "cursor for loop" with cursor that returns the object. Only when the record is returned...

    Published by: user10393567 on February 10, 2009 07:38

    user10393567 wrote:
    Now, in the 'loop' example for what looks "obj" is a folder, not an object, and 'x' is attribute of this recording... But the cursor must return an object, not a record... What Miss me?

    In the FOR loop "obj" is a pointer to the cursor/query, not a subject in its own right. It gives you just a reference in the query.

    So with that you are referring to the query, but then you need to refer to the column in the query that you are interested, so why there need a name (in my case I called it 'x'). 'x' is the object, and then you refer to the attribute of this object "text".

    In the first request that you simply select the value directly object in a variable, so no matter what it's called in the query values are returned by the position that is the first column in the query goes into the first variable in the INTO clause. Once you have that then the variable itself contains the object, and you can just refer to the attribute within that.

    Hope that makes sense.

  • objects and text on the screen appear to be "stretched" horizontally.

    all objects and images on the screen seem to be "stretched" horizontally with all applications and web sites.  A good example is a picture of someone... the normal image is large and thin person... on my screen, they appear to be shorter and wider... lol

    find manual for my screen... it is AOC model 2219V1.  As I have explained, I tried to change the resolution.  When I change the resolution on my side of the computer, then my husbands is affected.   There is something that I realized that I can't re-create or find...  You have any other suggestions... Thanks for your help.   What would happen if I reload windows software... do you think all the settings back to the original settings?  If I reload windows, will I lose the documents and files on my computer?

    I do not see where you said you tried to change the resolution.  You have changed the DPI, but it's different than to change the resolution (although can be connected to ALSO change the resolution.)

    The resolution is not independent - that is when you change the resolution of the screen of the user, it is on this size for all users of the computer.  Your original problem was:

    all objects and images on the screen seem to be "stretched" horizontally with all applications and web sites.  A good example is a picture of someone... the normal image is large and thin person... on my screen, they appear to be shorter and wider... lol

    This means that you are using a large non-ecran on a screen resolution and screen is allowing it to fill the entire screen.

    You say you have the AOC 2219V1 monitor)<-- linked="" to="" there)="" and="" according="" to="" the="" specifications="" on="" that="" web="" page,="" the="" resolution="" you="" want="" to="" set="" the="" monitor="" at="" is:="" 1680="" x="" 1050="" @="">

    So, in your case, if you have the correct driver for your video card installed * and * says video card supports widescreen resolutions (what is a new monitor?) then you should...

    1.

    Open display in Control Panel.

    2.

    On the tab settings in the screen resolution, drag the slider to the right until it shows the parameters of selection to 1680 x 1050, and then click apply.

    3.

    When you are prompted to apply the settings, click OK. Your screen becomes black for a moment.

    4.

    Once your screen resolution changes, you have 15 seconds to confirm the change. Click Yes to confirm the change. Click No or do nothing to return to your previous configuration.

    Now - if you do not have the choice of 1680 x 1050, it is a new monitor and you have the latest driver for your video - card, then probably your video card was not made to support screen widescreen resolutions.

  • How do I do to convert the text of the String object to the Clipboard.

    Hi all, I am a beginner and I have a problem with the method of the Clipboard. I want to put a text string to the Clipboard, but the Clipboard.put method requires an object. What can I do to convert my text from the string object?

    My code below:

    String message = OriginalMessage.getBodyText();
    
                    String[] selections = {"Copy","Cancel"};                            Dialog addDialog = new Dialog("Copy to Clipboard", selections, null, 0, null);                           LabelField field = new LabelField(message);                addDialog.add(field);    
    
                if(addDialog.doModal() == 0) // User selected "Copy".            {
    
                    Clipboard cb = new Clipboard.put(message);
    
                }
    

    Please help me.

    A string is an object in Java.  You can simply call Clipboard.getClipBoard () .put (message);

  • ... is "expected a string object" or "bad parameters."

    When I combine pdf document 'A' (10 pages) with pdf document 'B' (50 pages), I get 1 2 warnings: 'string object expected' or 'bad settings.' The document that results from 'C' is (in this example) 59 pages with lack of page 1 of the document 'B '.

    This suggests that your 'B' file is corrupted and specifically, that corruption is on the first page. There are no that you can do to solve this problem. If you created this document, and you still have the original file that you used to create the PDF file, I re - create the document and see if that fixes the problem. If it is not the case, then the chances are that something you have included on this page is causing this problem (may be for example a corrupted image, or a corrupt police).

  • Duplicate an object and create it move on the stage

    Hello

    I'm having a problem in actionscript 3.0 game development. The game plan is to have planes flying across the screen and the player must shoot by clicking on it. As the player gets more points, it must be of planes flying across the screen. No matter what I try, I can't work. Can anyone offer any coding suggestoins for coding in general and him duplicate the object and spawning it out side of the scene.

    Create the plan as a library item and assign a class name (for example you name Plane).  To create a new instance of it you just use...

    var another_plane:PLane = new Plane();

    addChild (another_plane);

    planes.push (another_plane);

    The last line place the plane newly created in a table that you set above all create so that you have a way to target the various plans which, added to the process (moving, etc) them.  When one of them is no longer at stake, you can remove the table so that it gets not be processed.

  • String equals and == difference...

    Hi all

    According to my understanding is equal to string corresponds to the string value and 'is' corresponds to objects represented on each side of the operator. but I saw a strange behavior while playing with these String API.

    class StringTest1
    {
    Public Shared Sub main (String [] args)
    {
    Ja string = "Ja".
    String's = "go";

    Java2 string = "Java";
    String java1 = ja + is going;
    String java1 = "Java";

    System.out.println ("is equal to:" + (java1.equals (java2)));
    System.out.println ("==:" + (java1 is java2));
    }
    }

    For the code above I get the output as 'true' for the first and 'false' for the second expression. output equal to equal is fair enough, but for the operator "is" its fake giving that according to my thinking should be true as says the chain worn No. TWO CHANNELS WITH SAME VALUES funda.
    Among the 2 variables java2 is a string 'Java' and java1 is the result of the concatenation smthing like 'Ja' + 'goes '.

    I tried to do something like
    System.out.println ("obj1:" + java1.hashCode ());
    System.out.println ("obj1:" + java2.hashCode ());
    BTU that returns the same value.

    Please help me understand how is the expression be false for "is".

    Published by: 807216 on May 10, 2011 02:20

    For comparison, try to "ja" and "goes" final.

    final String ja = "Ja";
    final String va = "va";
    
    String java2 = "Java";
    String java1 = ja + va;
    //String java1 = "Java";
    
    System.out.println("equals: " + (java1.equals(java2)));
    System.out.println("==: " + (java1 == java2));
    

    prints

    equals: true
    ==: true
    

    This is because "ja + is going" is a constant expression and can be evaluated by the compiler.

  • N ° of String objects?

    Class ExampleProgram {}
    Public Shared Sub main (String [] args) {}
    String text = new String ("I'm a simple program");
    System.out.println (Text);
    String Text2 = text.concat)
    ("who uses the classes and objects ');
    System.out.println (text2);
    }
    }





    The Total number of objects String are in this code? explain how if 4 years...

    but I think that it is only a single object in the suite

    1: literal "I am a simple program" (created by literal)
    2: variable containing text "I am a simple program" (created with new String() construct)

    so according to me, need me 3 items... Please explain...

    In this example, there are two String objects. New String() always creates a new object and literals in quotes are also organized in the form of channels created by the compiler.

Maybe you are looking for