Getting Bitmap object at runtime

When you load an external SWF at runtime and instantiate a symbol that contains a Bitmap object in the .fla file the type of the Bitmap is actually Shape at runtime. Without exporting the object for ActionScript is there any way to get the actual Bitmap object without using bitmapData.draw on a new object?
Where I am going with this is I would like to use the object where a Bitmap type is needed without creating a new bitmap object for memory reasons but it seems like Flash turns this into a generic Shape object at some point.

After doing some research it seems like I am basically stuck unless I give it a linkage name in the library which is not an option because this is a .swf that is going to be loading dynamically on an iOS device.
Oh well =/

Similar Messages

  • How do I create multiple objects during runtime?

    I don't know how to create multiple objects during runtime, here's my problem:
    I get a String as input. Then I create an object called newobject. I put the object in a hashtable with the above string as key.
    Then comes the problem, in order to create a new object, I have to rerun the same class, which uses the same name (newobject) to create a 2nd object. Now my hashtable doesn't reference to my 1st object anymore...
    Is there anyway I can fill up the hashtable with different objects, and make each key point to each object it was supposed to?
    For those who want to see a bit of the program:
    public class PlayBalloon{
    public Hashtable ht = new Hashtable();
    for(){
    Balloon pB = newBalloon;
    newBalloon=new Balloon(pB);
    ht.put("Some input from user", newBalloon);
    for(){
    ht.get(s).draw;<= s=string, draw=own meth. in Balloon
    }

    I think i can see the problem that you are having. You have, in effect, duplicate keys in your hashtable - ie, two strings used as keys with the same name.
    The way that a hashtable works is as follows...
    When you ask for a value that is mapped to a key it will go through the table and return the first occurence it finds of the key you asked for. It does this by using the equals() method of whatever object the key is (in your case it is a String).
    If you cant use different Strings for your keys in your hashtable then i would consider writing an ObjectNameKey class which contains the String value that you are trying to put in the hashtable and an occurrence number/index or something to make it unique. Remember to override the equals method in your ObjectNameKey object or else the hash lookup will not work. For example
    class ObjectNameKey {
        private String name;
        private int occurence;
        public ObjectNameKey(String name, int occ) {
            this.name = name;
            this.occurence = occ;
        public String getName() {
            return name;
        public String getOccur() {
            return occurence;
        public boolean equals(Object o) {
            if (!(o instanceof ObjectNameKey)) {
                return false;
            ObjectNameKey onk = (ObjectNameKey)o;
            if (onk.getName().equals(name) && onk.getOccur() == occurence) return true;
            return false;

  • Populating a authorisation object at runtime...

    Hi,
    how to populate a authorisation object at runtime? is it possible to have a variable etc that can be populated a runtime?
    I have a object zsales_off which has different values for different users. i need to create separate roles just to have different values for sales office for different users. i would like to avoid this by having a single role with the zsales_off getting populated at runtime.
    Details steps with code will be appreciated.
    thank you.

    Hello AHP,
    i am not still very clear about the detailed steps to be carried out as i am a novice in abap.
    i have created the authorisation variable and am using it in the query. if i manually assign values for sales office in the role, it is working fine.
    i want to assign values at run time. i am confused with the process as such.
    few doubts like:
    1> the variable should be of "authorisation" processing type or "customer exit" processing type.
    2>what to use I_step=0 or I_step =1? how to use? where to use?
    3>to write a abap code or use a func module, which one? how to use.
    any example(like in my case different sales office values for diffrent users) with DETAILED STEPS & CODE would be appreciated.
    also i need to have multiple single values for each user(but not interval).
    Please help.

  • Rendering the PDF page to Bitmap object using Acrobat SDK DrawEx() or CopyToClipboard()

    I am trying to find whether each page in PDF document is color or monochrome.
    For doing this I am rendering the PDF page to Bitmap object using Acrobat SDK DrawEx() or CopyToClipboard()
    Once after rendering the PDF page, I am using GetPixel() to read each pixel value to decide about color or Monochrome.
    Problem:
    When I read the pixel to decide about the page color or monochorme, in some XP machines it is showing the PDF page as color and in some PC it is showing it as Monochrome.  Color quality in both the system is kept as 32 Bit.
    After this I tried copying the PDF page directly into clipboard and then take the clipboard image to decide about color and monochorme, but even this also behaves in the similar way.
    Question:
    Why rendering the PDF page to Bitmap object using DrawEx() or CopyToClipboard() is behaving differently in each machines.
    If required I will send my sample project.
    With regards,
    Rajeshrv.

    In SDK documentation, there is no methods are defined for getting the color of the page.  In color spaces and color values, we can set the color for drawing operations. A method AVPageViewSetColor is used for setting the color. 
    But there is no methods defined for getting the color in the page.  Please let me know , is there any alternative way.
    Thanks in advance.

  • Crystal Reports 10 and OLE Bitmap Objects

    Greetings, all!
    I need some help in getting a Bitmap Image file (BMP) to dynamically display on a Crystal form. We have it currently running as an OLE object inserted into the form. The actual image displayed can vary, so immediately prior to running the form, the desired image file is copied to a specific location with a specific name. This works great... until we implemented the solution on our client's system. That is our problem.
    Rather than than refreshing the BMP image at run time, the form displays the last image it was able to successfully load. When I open the form in Crystal Reports, it displays the "Updating ActiveX options" message along with the progress bar, but then puts up the message, "Some links could not be updated because their sources are presently unavailable." When I try to verify the file path and file name of the OLE object within Crystal, it says that the object is invalid.
    Here are some environment details.
    1. The version is "Crystal Reports 10 for Sage" (version 10.0.5.820). This is because the Crystal software is bundled with the accounting application software, Sage MAS 500 version 7.05.18.0.
    2. My operating system is Microsoft Windows 2000, 5.00.2195, Service Pack 4. The configuration runs great here.
    3. The client's operating system is Microsoft Windows Server 2003, Standard Edition, Service Pack 2. This is where it does not work.
    Here is what I have tried so far:
    1. I referenced the following forum thread...
    OLE Linked Object
    ... and tried updating the registry as it describes. This did not work.
    2. I referenced the following forum thread...
    Re: OLE object problem
    ...but I did not have a clear understanding of what it was explaining. I was uncertain about the reference of setting mspaint.exe as an OLE Automation server, etc.
    That's it. Any help you can provide is greatly appreciated. The client's software and operating system are pretty much fixed, so I'm afraid I won't be able to oblige any suggestings to upgrade these. If you need any additional information, I will be more than happy to provide it.
    Thanks in advance!
    Jimmy Thomas, Engineer
    Blytheco LLC

    This issue has been resolved. We found that when the customer ran the statement on a client workstation rather than on the server, the OLE bitmap objects refreshed as expected. I am therefore closing this issue.
    Jimmy Thomas
    Blytheco LLC
    Edited by: Jimmy Thomas, Blytheco on Dec 7, 2009 6:49 PM

  • Line Chart: It is possible to get the object reference from a flash chart

    Hi Folks,
    hope you feel well ...
    I wan't to get the Object Reference from a Chart Flash Object using javascript in the HTML Header of a Apex Page.
    It's long time ago with Oracle/Java and so my skills are really shity :-)
    The Functionbody works, but the following error occurs: chart.refresh is not a function
    It is necessary to CAST it ? with the Class AnyChart.js ?
    After 5 hours i give up ^^ is this kind of object handling possible ? THX4HELP@ll
    Apex Page HTML Header
    <script type="text/javascript">
    function hideSID2()
    var chart = document.getElementById("*c7067437546726610*");
    chart.refresh();
    </script>
    HTML File at runtime:
    <div class="rc-body"><div class="rc-body-r"><div class="rc-content-main"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
    width="1400"
    height="600"
    id="c7067437546726610"
    align="top"> ...

    If you are using adobe Flex Builder to develop SWF, please be sure using ExternalInterface class to expose the refresh() method.
    then you can should be able to call this method in Javascript.

  • Technical Help: Get linked Objects to CASE

    Hi forum,
    during runntime of CRM IC webclient I have the GUID of the Case.
    My requirement: Read all linked objects to this Case/Case GUID. If a linked object (e.g. internal task) is open, the agent should not be able to close the case -> Raise Error message in Case Creation/Changing ICWC.
    So: Can anybody help me with the question, how to get all linked objects during runtime, which are assigned to the Case? Function Modul? Method of a class?
    Thank you very much for your help.
    Thorsten

    Dear Shamiso
    If your model not released yet you can delete the linked objects form the record model but if the record model status set to released you will only be able to flag it as deleted and you will not see it any more in the case
    Regards
    Khaled Fahim

  • Getting value type at runtime

    Hello everyone,
    I am using Scanner to get tokens from a buffer. I need to know the type (class) of the value returned. Instead of using "if" statement and hasNext?() for each possible type, is there a method that just return the type. Something like:
    Class c = get(String s);So, if s is "Address", c would be set to String.class. If s is "true", c would be set to Boolean.class... etc
    Thank you

    Yeh, I just saw your other post:
    http://forum.java.sun.com/thread.jspa?threadID=783200
    The two topics are different but related. The topic, you refer to, are taking about getting a value. In that topic I need a method like:
    Object o = String.toObject (String s, Class c);However, the topic "Getting value type at runtime" are taking about getting a type. In this topic I need a method like:
    Class c = string.getClass();to return the type this string represents.

  • Creating View Objects at Runtime for Validation

    In Oracle® Application Development Framework
    Developer’s Guide For Forms/4GL Developers tutorial there is a topic about Creating View Objects at Runtime for Validation.
    Is there any sample code available for this topic?
    Please help
    Regards
    S Karar

    I have created a helper method . The code is given below
    protected ViewObject getValidationVO(String viewObjectDefName) {
    // Create a new name for the VO instance being used for validation
    String name = "Validation_" + viewObjectDefName.replace('.', '_');
    // Try to see if an instance of this name already exists
    ViewObject vo = getDBTransaction().getRootApplicationModule().findViewObject(name);
    // If it doesn't already exist, create it using the definition name
    if (vo == null) {
    vo = getDBTransaction().getRootApplicationModule().createViewObject(name,viewObjectDefName);
    return vo;
    // Validation_bc4j_project of type ApplicationModule not found
    and created a validation method.
    The code inside validation method is given below.
    public boolean validateAvgMr(Number data) {
    String batch_catg = getQuality();
    // Get the view object instance for validation
    ViewObject vo = getValidationVO("bc4j_project.v_sqc0150");
    if (getTestStage()=="DOLLOP" && getQuality()=="DECO")
    // Set it's bind variables (which it will typically have!)
    vo.setNamedWhereClauseParam("batch_catg","DECO");
    vo.executeQuery();
    Number dol_mr_lcl=(Number)vo.first().getAttribute("DolMrLclStd");
    setStdMrLcl(dol_mr_lcl);
    return true;
    return true;
    I have checked the validation view and it is returing value with the same bind variable value but is not returning any value when using inside this method validation.
    I have checked several times but can't find the fault in the code.
    Please help

  • Naming Objects at runtime

    Hi all!
    I want to make instances of a class in a for loop then naming them for example something+i. so you would get somethig1, something2 and so on..
    or even maybe naming them after a string provided by the user.
    googlet it and found a previous posted thread where the replyes was that you couldnt do thi. I think it was missinterpiated a little. I know this is possible have seen it done at one time..
    Any tips would be greatly apriciated :)
    regeards
    Pelle

    Well, I am making the new object at runtime. So why
    shouldn it be possible to name it to?1) Objects do not have names.
    2) Variable names are determined at compile time.
    This is so because this is how the Java Language spec defines the language to work.
    http://java.sun.com/docs/books/jls/third_edition/html/j3TOC.html

  • Identify objects at runtime

    Is there a way to identify objects on a form at runtime other than items in blocks?
    For instance, I want to identify frames on a canvas, boilerplate (text labels), tabbed canvases, etc. at runtime without actually naming them - as in getting the names/ids programatically through maybe get_canvas_property() or get_form_property.

    You can use FIND_* built-ins for canvases and Windows - you can't address boilerplat objects at runtime.

  • Getting Color object from String

    hi
    i need to get a Color object from a string provided at runtime.ie for the string "RED" i need to get a object of Color.RED.I have already tried to use decode() from Color class but it throws numberformat exception,can someone guide me.

    Color.decode(String) will decode octal and hexidecimal representations of colors e.g.
    Color poo = Color.decode("0x215DB8"); // hex description of color
    works.
    If you want to use RED, BLUE ... read them at run into a String or whatever and then test this String to get what color the user wanted e.g.
    read from text file at run time that button colour should be ORANGE.
    In your code, put
    String colourStr; // read what colour the user specified into this var
    Color their_color = null;
    if(colour.equals("ORANGE"))
    their_color = new Color(Color.orange);
    else if(colour.equals("BLACK"))
    // you can guess what goes here.. and so on.
    It often nice to make them specify the hex value of the colour because there are more of these than the predefined colours (shock horror).
    Anyway,
    seeya, Edd.

  • Every time I try to open itunes I get a message saying "runtime error. An application has made an attempt to load the C runtime library incorrectly. I have already un- and re-installed it, but i get the same message as before. How do i fix this?

    every time I try to open itunes I get a message saying "runtime error. An application has made an attempt to load the C runtime library incorrectly. I have already un- and re-installed it, but i get the same message as before. How do i fix this? I don't want to lose my music and would at least want to save that.

    Follow the instructions of tt2 given in https://discussions.apple.com/thread/5822086 and note to run as admin

  • How to create a text object at runtime?

    Hi,
    I am using crystal reports for visual studio 2010 and using c# to programming.
    I need to create  a text object in a specific section like section 2. and also I need to control the text object's position and text.
    I tried to move a object like:
    reportDocument1.ReportDefinition.Sections[j].ReportObjects<i>.Left = 0x8760;
    but object's position doesn't change at all.
    How can I do these (create a text object and change a object postion)?
    Thanks

    Hi Don,
    Thank you.
    I have downloaded a RAS ( report application Server ) sample.
    The sample uses the Business Objects Enterprise XI release 2. I am using win 7 and crystal reports for vs2010. Can I use this version of crystal reports to create  a text object at runtime? If not, what is the lowest version I have to purchase to achieve what I want?
    Basicly I need following capabilities at runtime:
    1) craete text objects, line objects, image objects.
    2) change text object, line object and image object positions, sizes, values of text object. If can I like to be able to change font as well.
    3) supress objects, sections. 
    4) change section's height

  • Custom Annotation :: inject object at runtime

    I would like develop a custom annotation to inject object at runtime. The annotation will work as follows
    1. develop ValidatorClass annotation on type.
    2. If annotated on a type object will be created at runtime and injected to the object. e.g. in class A it will inject validatorimpl object to vald object/
    Please let me know how to implement that.
    package com.debopam.validate
    public interface validator{
    public String validate();
    package com.debopam.validate
    public class validatorimpl implements validator{
    public String validate(){
       return "true";
    pckage com.debopam
    public class A{
    @ValidatorClass(name="com.debopam.validate.validatorimpl")
    validator vald;
    }

    yogeshd,
    It might be that the .class file for the annotation that you are compiling against is the one you have given us the source code for above, but when you run the program, the class file for the annotation is not the same, and is one that was compiled before you added the static field.
    This can happen if your classpath is wrong. (and would explain why the problem only occurs sometimes - because it is only failing when the classpath is wrong).
    If you run the following program with the Fully qualified name of your annotation as the argument, and with the same classpath as you run your program, it can tell you where it is finding the annotation class file. Check that this is the same one that you are compiling to.
    class WhereLoaded {
        public static void main(String[] args) {
            Class theClass=null;
            if(args.length > 0) {
                try {
                    theClass=Class.forName(args[0]);
                } catch (Exception e) {
                    e.printStackTrace();
                    theClass=Object.class;
            } else {
                System.out.println(
                    "The first argument should be a fully qualified class name," +
                    " using java.lang.Object instead"
                theClass=Object.class;
            String name=theClass.getName();
            name=name.substring(name.lastIndexOf(".")+1) + ".class";
            System.out.println(name + " loaded from " + theClass.getResource(name));
    }regards
    Bruce

Maybe you are looking for

  • Jabber for MAC 9.2.1 doesn't use jabber-config.xml

    Hi all, I'm deployng jabber for mac 9.2.1 with on premises  IM&Presence (9.1) and CUCM (9.1) All works fine (jabber for windows, for tablet and Ipad). The only issue seem to be with Jabber for MAC. The search in corporate Directory fail. Below you co

  • Problem with reseting my security question

    Hi, Recently  i want purchase cash from racing rivals, the saddest thing i forrgot my security answer,and  i went to reset my security question but i was unable to reset..so please help me out,the info from customer care doesnt help me.Thank you

  • Oracle Interconnect in 11g?

    Hello guys, I have few questions on Oracle Interconnect. 1. Is Interconnect part of Oracle 11g SOA Suite? 2. How Oracle Interconnect is different from Oracle BPEL/ESB? 3. How easy (Design,development effort) is it to migrate from Oracle Interconnect

  • Built-in for D2K like Java TAPI

    Hi, Is there any built-in for D2K like Java TAPI to track telephone call. Take care, Tarek

  • QuickTime 7.3 \ Vista - MOV files gives display driver error

    I am running: Vista Ultimate QuickTime 7.3 QuicktimePlayer 7.3 Intel(R) 82945G Express Chipset Family Driver Date: 8/24/2007 Version: 7.14.10.1322 When playing .MOV file, as soon as the movie starts, the entire screen goes black with the following er