Code hinting with objects? how do they do it?

Hello,
I am working with Flex Builder and it has a nice code completion and code hint option in it.
If i use the Tweener class you get code hinting of an object.
Example  : Tweener.addTween( { x:100, time:1, transition: "easeOutQuad"} );
Now within the brackets (object) you also get code hinting. I was wondering how to do this too?
Do i need to make a new public object?
public var myObj:Object = new Object();
public var myObj.time = 4;
public var myObj.xPos = 20;
MyCustomClass.customFunction( { ..the myObj properties..   });
Regards,
Chris

thanks for the reply! I did not know with the param options.
That is very nice! And i understand now how it works. The only thing i was wondering is, that
you can see what to enter with param for a function. But not within an object.
For example the caurina tweener.
Tweener.addTween( yourmovie, { x:100, there is no hinting or knowing what properties can be set here ..... } );
function doSomething(argument1:Boolean = true,  myNumber:Number  = 24):void {
doSomething( ..in here you get always code hinting because it are params,  { but not in an object ? } );
Regards,
Chris.

Similar Messages

  • How do I unlock mac? Someone hacked my account and I wiped my device from iCloud, and now I ask for a four digit code ignition Mac. How do they proceed in that way to unlock my Mac?

    How do I unlock mac? Someone hacked my account and I wiped my device from iCloud, and now I ask for a four digit code ignition Mac. How do they proceed in that way to unlock my Mac?

    Settings>general>resets>erase all content and settings.
    That will put it back to its out of the box state. Set it up with your own apple Id.

  • Code hinting with array of elements

    I am having an issue where I can get code hinting on the entire array, but not if a I specify an individual element.
    Example
    var dataFields = new Array();
    var allElems = document.getElementsByTagName("*");
    for (var i = 0; i < allElems.length ; i++) {
            if (allElems[i].className == "classNameofElementIWant") dataFields.push(allElems[i]);
    Above is what I use to get an array populated with a specific element I want to work with.
    I can then get code hinting on dataFields.
    but no code hinting on dataFields[1].
    Obviously this is because the array doesn't have any elements in it until run time after it runs the above code.
    My question:
    Is there a way to tell code hinting to display using an array without the [] subscript specified when it can see that an array has no elements?
    Thank you

    I am having an issue where I can get code hinting on the entire array, but not if a I specify an individual element.
    Example
    var dataFields = new Array();
    var allElems = document.getElementsByTagName("*");
    for (var i = 0; i < allElems.length ; i++) {
            if (allElems[i].className == "classNameofElementIWant") dataFields.push(allElems[i]);
    Above is what I use to get an array populated with a specific element I want to work with.
    I can then get code hinting on dataFields.
    but no code hinting on dataFields[1].
    Obviously this is because the array doesn't have any elements in it until run time after it runs the above code.
    My question:
    Is there a way to tell code hinting to display using an array without the [] subscript specified when it can see that an array has no elements?
    Thank you

  • Queries with parameters - how do they get migrated?

    We are evaluating this migration to move a client off of access and put them into oracle. We use APEX for other things and like it. So, we tried with 3 tables, one query and one report. The tables moved fine, but the query failed. The log showed:
    Failed to Convert View <name> unexpected end of subtree: Line 0 Column 0.
    I began removing things to determine what was causing it. I finally got it to run when I got rid of the functions like iif, int and val. I think these are causing the issue. But, I still couldn't create the view because of the parameter in the query. Access prompts the user for this value before the query is run, but how would this translate to an Oracle view? And how would the report prompt the user for this value in Apex? Does this convert over automatically?
    If I have to rewrite the queries myself, I will. If I do, will that affect importing reports like this into Apex? Any suggestions?
    Thanks, Chris

    Hi Chris,
    Thanks for the updates.
    Currently the Oracle SQL Developer Migration Workbench translator does not support the parsing of the IIF function. I believe there is a bug already logged against this & a fix will be available in a future release of the Workbench.
    You may find it useful to refer to the following threads discussing alternative handling of queries using the IIF function -
    Access Queries with "IIF" function
    msaccess parser error
    As mentioned in the above postings, one option for you is to use a CASE statement, similar to the following:
    SELECT SUM(case when Table1.Week Between 1 And Ending_Week then Table1.Sales else 0 end) TY_Sales_YTD
    FROM Table1 ;
    If you wished to use such a query to display the resulting value on an Oracle APEX page, this could be implemented as follows:
    Note: Assuming that you have migrated the database schema to Oracle & have associated your APEX workspace with that schema.
    1. Create a new blank page in your APEX application. Add a new HTML region to your page.
    2. Create a "Select List with Submit" item and in its "List of Values Query" field enter syntax similar to the following:
    select week d, week r
    from table1
    order by 1
    and set the item name to P1_END_WK. Place the item on your HTML region. This item will act as the parameter in your query.
    3. Create a "Display as Text" item and set its Source region to be of type "SQL Query". Paste the following syntax into the items' source value field:
    SELECT SUM(case when Table1.Week Between 1 And :P1_END_WK then Table1.Sales else 0 end) TY_Sales_YTD
    FROM Table1
    and set the item name to P1_SUM. Place the item on your HTML region. This query will return the result based upon the user's selection of value in the P1_END_WK select list item.
    4. Add a branch to the page, setting it to branch to itself. Basically when the user selects a value from the P1_END_WK select list, this will submit the page. The branch will redirect the page to itself & in turn update the value held in P1_SUM.
    Would this type of implementation work for your application? It's obviously just one option to consider. I hope this helps. If you have any further issues/questions regarding any of the above information or regarding other queries in your MS Access MDB file, please let me know. If you'd like me to take a look at your MDB file, please post your email address so I can contact you directly.
    Regards,
    Hilary
    Message was edited by:
    hfarrell

  • Code hints problem

    Hello, when typing object properties within method arguments
    the code hints disappear.
    How can I make them come back.
    eg. code hints visible up until the point I define the
    ".LINEAR property, Then they are gone.
    philShape2.graphics.beginGradientFill(GradientType.LINEAR,
    Thanks for any help.

    quote:
    Originally posted by:
    eirkeirkeirk
    I just noticed that when authoring an .as file in CS3, I get
    the AS3 code hints, even though I'm writing an AS2 class. Bummer. I
    don't see a way to specify which version class file you are
    authoring. Maybe I missed something??
    Erik
    Here is an example of what I'm talking about. Grabs taken
    while authoring an external class (.as) file in CS3.
    No "method completion" hint like I would get in Studio 8:
    img1
    And I get all the AS3 methods and properties because there is
    apparently no way to tell Flash that I want this .as file to be an
    AS 2.0 class - note the lack of properties like _alpha:
    img2
    So, seriously, am I missing something or did Adobe just make
    Flash CS3 even worse than Studio 8 for authoring AS 2.0 classes?
    Erik

  • Lost code hints

    I Have lost my automatic code hints in some files. They are
    turned on in Preferences but don't come up as I'm keying in code.
    Any help?
    Dee Di

    If you are using Actionscript 3 you should
    1) Use event listeners to detect mouse-down and mouse-up
    events on the movieclip.
    2) Set up functions to drag and drop the movieclip.
    3) In the drop function get the x and y position of the
    movieclip and
    4) trace it out or put the values into dynamic textfields.
    Here's a simple example. The code is on the first frame of
    the timeline
    myMC.addEventListener(MouseEvent.MOUSE_DOWN,
    startDragSquare);
    myMC.addEventListener(MouseEvent.MOUSE_UP, stopDragSquare);
    function startDragSquare(evt:MouseEvent):void
    this.startDrag();
    function stopDragSquare(evt:MouseEvent):void
    this.stopDrag();
    var xpos = this.x;
    var ypos = this.y;
    trace ("X: "+xpos+", Y: "+ypos);
    }

  • How to Code SWFObject with Alternate Content

    I've read umpteen tutorials and articles on embedding Flash
    with alternate content, and they're all too different, confusing,
    and unsuccessful. All I want to do is insert a JPEG to replace my
    Flash movie on non-Flash browsers but have no idea how or where to
    code it. I don't want to get into xml or div IDs (if I don't have
    to)... just a simple-as-possible, idiot-proof solution for a
    beginner like myself.
    Here is my Flash object...
    <td width="400" height="240">
    <object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
    height="240" width="400">
    <param name="movie" value="images/flashintro.swf" />
    <param name="quality" value="best" />
    <param name="play" value="true" />
    <embed height="240" pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    src="images/flashintro.swf" type="application/x-shockwave-flash"
    width="400" quality="best" play="true"></embed>
    </object>
    </td>
    Thanks.

    docmentation:
    http://code.google.com/p/swfobject/
    AIR app that generates it for you:
    http://code.google.com/p/swfobject/downloads/list
    The body code will look like something like this:
    <div id="flashContent">
    <center><p>Please update to the latest version
    of <a href="
    http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"
    target="_blank" title="Flash Player">FLASH</a>, and enable
    <a href="
    http://gsaauctions.gov/brow_details/IE6instr.htm"
    title="Enable Javascript"
    target="_blank">JAVASCRIPT</a><br /> or view site as
    <a
    href="index2.php">HTML</a></p></center></div>
    <script type="text/javascript">
    // <![CDATA[var so = new SWFObject("flash.swf", "mymovie",
    "950", "600", "8", "#FFFFFF");
    so.write("flashContent");
    </script>

  • Bought a new Canon MG7540 printer to replace the old HP A618. When printing vector objects from Illustrator, they look like graphics from dandy (8 bits) ... no smooth, all cubes ... if do raster than print perfectly.  Who knows how to treat it? No well to

    Bought a new Canon MG7540 printer to replace the old HP A618. When printing vector objects from Illustrator, they look like graphics from dandy (8 bits) ... no smooth, all cubes ... if do raster than print perfectly.  Who knows how to treat it? No well to rasterize vector before each printing. OS - MacOs 10.10.

    Have you read the User's Guide for that printer?  Odds are you will get reasonable prints.  However, it is a photographic printer.  That said, it should print excellent quality photographic files.  To get smooth lines in Illustrator, try Preferences > Use Anti-Aliased Artwork.  That will smoothen the output.  If, for some reason, that does not work, try Print > Save As PDF > open PDF in Reader and print from there.  Check the User's Guide for media sizes available for your particular printer.  Setup your artboard to the size page you want the image to print on.  Use View > Show Page Tiling ( to see where the page's printable area lies.  Align the page with the artboard using the Page tool.

  • Hi, I need to activate my Adobe CS3 on a new computer because my old one died and I'm having difficulty. Tried the normal registration way and then logged in with my Adobe ID and can see the software and activation code already registered. How to get it o

    Hi, I need to activate my Adobe CS3 on a new computer because my old one died and I'm having difficulty. Tried the normal registration way and then logged in with my Adobe ID and can see the software and activation code already registered. How to get it on my computer registered?

    If your two activation are in use you need to call Adobe. Install CS3 to to point of activation and call Adobe at that point.  They have help me in cases like your My Disk crashed and I replaced it. Could not deactivate the crash activation.  I done that twice over the years I've been using  PS for around 20 years
    To see your key you need to click on the product in your Adobe products and services page.

  • How to call procedure with Object types in java

    Hi,
    We have procedure declaration as follows
    ===============
    TYPE TEST_TYPE AS OBJECT (NAME VARCHAR2(10));
    TYPE TESTTYPE1 AS object (student1 TESTTYPE,student2 TESTTYPE,student3 TESTTYPE);
    TYPE rect AS OBJECT
    -- The type has 3 attributes.
    length NUMBER,
    width NUMBER,
    area NUMBER,
    -- Define a constructor that has only 2 parameters.
    CONSTRUCTOR FUNCTION rect(length NUMBER, width NUMBER)
    RETURN SELF AS RESULT
    PROCEDURE G(obj1 in TESTTYPE1,obj2 out rect) as
    n1 testtype;
    n2 testtype;
    n3 testtype;
    n4 testtype;
    begin
    obj2 := NEW rect(10,20,200);
    n1 := obj1.student1;
    n2 := obj1.student2;
    n3 := obj1.student3;
    obj2.length :=20;
    end;
    =====================================================
    I am not able to call the procedure in java code as I cannot figure out which out parameter type will it be registered using registeroutparameter. using cursor or struct type fails.
    please let me know how I can pass values from stored procedure with objects to java.

    I'm not sure what you're trying to accomplish with your procedure, but in general, this is an example of how you could use oracle.sql.STRUCT.
    First, prepare your java.sql.CallableStatement using java.sql.CallableStatement cStmt = java.sql.Connection.prepareCall({ call G(?, ?) });
    Note that you don't have to use the OracleCallableStatement. The java.sql.CallableStatement will work just fine.
    For the IN parameter, you need to create three TEST_TYPE objects. Then you need to create one TESTTYPE1 object.
    These will all be instances of oracle.sql.STRUCT.
    To create a oracle.sql.STRUCT object you need a descriptor and a set of attributes. For example, to create a TEST_TYPE object you would do the following
    1. StructDescriptor sd = StructDescriptor.createDescriptor("TEST_TYPE", java.sql.Connection).
    2. Add a VARCHAR2 attribute to an array of attributes (e.g. Object[] attributes = new Object[]{"Student Name"})
    3. oracle.sql.STRUCT struct = new oracle.sql.STRUCT(sd, java.sql.Connection, attributes)
    Then do something similar to create the TESTTYPE1 object, except that the attribute array will contain three instances of TEST_TYPE struct objects.
    To bind the IN parameter you need to use the java.sql.CallableStatement.setObject(1, <Instance of TESTTYPE1 object>).
    To register the OUT parameter, you need to call java.sql.CallableStatement.registerOutParameter(2, oracle.jdbc.OracleTypes.STRUCT, "RECT").
    Then, execute your procedure using cStmt.execute();
    Retrieve your OUT parameter using oracle.sql.STRUCT struct = (oracle.sql.STRUCT)cStmt.getObject(2).
    Once you've done that, to get the values of the attributes of all of your STRUCT objects, you need their descriptors and their metadata.

  • VBScript editor with Intellisense/Code Hinting support for Adobe App

    I am looking for some tool to write my InDesign VBScript files in. I would really like to know if there is any which support Intellisense/Code hinting for Adobe programs (InDesign especialy). Do you have anything to recommend?
    I am quite good at hacking my computer, so no registry change etc. is a problem for me, I just can not find any. I already tried PrimalScript 2009 but it doesn not work.
    What I need is that in following block of code
    Set myInDesign = CreateObject("InDesign.Application.CS4")
    Set myDialog = myInDesign.Dialogs.Add
    I will get list of all methods/properties after I write the dot after "myInDesign" in second line. But it never worked. I even tried to put "InDesign.Application.CS4/C:\ProgramData\Adobe\InDesign\Version 6.0\cs_CZ\Scripting Support\6.0\Resources for Visual Basic.tlb" line into Options>Text editor>Type libraries.
    I am using Windows Vista SP1 and I have Adobe Creative Suite CS4 installed (upgrade from CS3 which was upgraded from CS2)
    Thanks a lot for any help/suggestion, as I start feeling desperate.

    Hi Everyone!
    As I have said, I waited for next service release, which is as of now PrimalScript 2009 version 5.0.614 and I did some testing with it.
    Results:
    WinXP EN Professional
    - Just pointing PrimalScript 2009 to typelib, no creative suite installed, working
    - Installed Creative Suite CS3 Czech (trial mode) - Working, no need to setup anything
    - Installed Creative Suite CS3 + CS4 Czech (trial mode) - Need to point PrimalScript 2009 to correct typelib, then 100% working
    Windows Vista SP1 Ultimate EN (in trial/not activated mode)
    - Just pointing PrimalScript 2009 to typelib, no creative suite installed, working
    - Installed Creative Suite CS3 Czech (trial mode) - Need to point PrimalScript 2009 to correct typelib, then 100% working
    - Installed Creative Suite CS3 + CS4 Czech (trial mode) - Need to point PrimalScript 2009 to correct typelib, then 100% working
    Windows 7
    I am not planning to use Win7 in near future, so I did not not run any test on it.
    Windows Vista SP1 Home Premium Slovak (fully activated)
    - Installed Creative Suite CS3 + CS4 Czech (full mode) - Not working. This is my main machine. It is Creative Suite CS2 upgraded to CS3 then CS4 (it is running for years without reinstall). I use CS3/CS4 side by side for some older projects. There are still references to CS2 in registry. I tried pointing PrimalScript 2009 to correct typelib, but to no avail. My conclussion is that there is someting messed with its config or registry, but I am pretty sure it would run after complete system reinstall.
    Both WinXP EN Pro and Vista SP1 Ultimate EN were clean install into MS Virtual PC 2007, with only Creative Suite and PrimalScript 2009 5.0.614 installed into each machine so I made sure there are no other issues involved.
    As I spend 80% of my time with developement of websites and scripting of MS Office/Creative Suite, I have some virtual machines set up for testing purposes. I will use one of them for development in PrimalScript and move it to main (real) Windows Vista Home Premium Slovak installed once I will decide to completely reinstall it. The need for seting up the typelibray link is no deal for me, as it is working as expected then, and I expect a lot ;-)
    So problem solved, I found o program I will use. There may be others which do better or are cheaper (but I do not know about any) but $299 is not a big issue when I get what I want.
    P.S.: The solution with making VBScript code with VBA declaration (using Dim) is not a solution I like, as I would need to comment it out everytime I run/edit  the script and it would be pain in the *** while debugging it as i would need to do lot of comment/uncomment cycles and i can use my ime better then doing the monkey work as some fo the scripts I write are quite huge and I prefer to build them incrementaly and test/debug a lot.
    I wish to thank everyone for their help and suggestions,
    Matus

  • HT201269 Hi. I have shared an Apple ID with my children for some time.  As they are getting older they do not wnat me seeing all their messages, photos etc so want their own accounts.  How can they access their purchased music and apps on the new account

    Hi. I have shared an Apple ID with my children for some time.  As they are getting older they do not wnat me seeing all their messages, photos etc so want their own accounts.  How can they access their purchased music and apps on the new account please?

    Yes.
    On their iOS devices, under Settings>iTunes & App Store, they should use your Apple ID. When they log into iCloud, iMessage and Facetime, they should use their personal Apple IDs.

  • TS4020 I live in a house with multiple iCloud users.  When they try to turn on "Find my computer"  they get the message that they will have to disable my "find my computer" setting in order to enable theirs.  How can they all be enabled at the same time?

    I live in a house with multiple iCloud users.  When they try to turn on "Find my computer"  they get the message that they will have to disable my "find my computer" setting in order to enable theirs.  How can they all be enabled at the same time?

    Try this support document for information on how to contact Apple and account security. Apple ID: Contacting Apple for help with Apple ID account security

  • I can not join my Apple extreme with the Apple express. I shows a conflict in the network! I've tried everything. How can they join on the same network?

    I can not join my Apple extreme with the Apple express. I shows a conflict in the network! I've tried everything. How can they join on the same network?

    It says that my DHCP has to be changed! How? to what?
    It is 802.11g.express. but is set to default by the computer (Macbook Air).
    The other is 802.11n. (express)
    Extreme is 802.11.g. Is the Main Airport.
    It is on ethernet & wep 128 security.

  • I want to transfer pictures from my iphone 4 to a hardrive, but the problem is i dont know how. Can the genius bar help me with that, and can they possibly do this for me if i bring my iphone and hard drive with me there. Also if there is a cost, how much

    I want to transfer pictures from my iphone 4 to a hardrive, but the problem is i dont know how. Can the genius bar help me with that, and can they possibly do this for me if i bring my iphone and hard drive with me there. Also if there is a cost, how much?

    iOS: Importing personal photos and videos from iOS devices to your computer

Maybe you are looking for

  • Can You Change Your Security Question?????

    Well I just got an Itunes Card for my birthday but, it says i need to enter my security questions answer in order to download the Movie i wanted and i was wondering if i can change the security queswtion?? PLEASE REPLY A.S.A.P!!!!!

  • Swf file not visible in Safari

    I embedded a swf file in a DW for Mac page (CS3) ; created in Flash, not DW -- and it works fine in FF but not in Safari; although other's I created the same way for this same site are working; i"m sure this is something simple here's the page: http:

  • Rearrange Playlists in Mobile App

    When you press "Edit" on the Playlist section of the app, it should pop up the rearrange symbol beside the Offline Sync Button, that way I'm able to rearrange playlists how I like instead of having to do it on my PC.

  • ORacle Weblogic pulgin problem

    eclipse used to have this link (URL) http://download.eclipse.org/releases/ganymed to install Oracle Weblogic ganymede into eclipse through Software Updates and Add-ons which is located in under Help. Now I wanted to install it and I got this message

  • Text ripple effect

    I'm a very new After Effects user, and I'm really just experimenting with the software.  On effect I'd like to attempt is a text effect which simulates a ripple, or at least that's what I think it would be called. Basically, imagine some lettering ly