AS3 and ColfFusion 8

I am confused and need some guidence and help. How do I make
a Flash CS4 movie interface with ColdFusion 8? In AS2 you used to
invoke some web services. Does that still work? is there a better
way? Thanks for any help on this.

use a urlloader instance to load and execute cf files.

Similar Messages

  • AS3 and XML, HELP!

    Hi
    I have no idea where to post this, so pls forgive me if im in the wrong place, but I have an Assessment due tomorrow, I'm only 4 weeks knew to AS3 and Flash, and confused as, so pls forgive me if i also look silly asking this question.
    The issue is loading data from an XML file and having it present in a Flash website. Its a book review thing (i've altered the XML and AS3 for posting here so please bare that in mind), so the XML looks a little like this
    <books>
        <book>
            <bookName>The Monsters</bookName>
            <genres>
                <genre>Thriller</genre>
                <genre>Crime</genre>
                <genre>Comedy</genre>
            </genres>
            <description>about the mummies.</description>
            <image>mummies.jpg</image>
            <reviews>
                <review>
                    <date>16/07/2011</date>
                    <name>unnamed</name>
                    <info>
                        <rating>5</rating>
                        <why>blah blah</why>
                        <theGood>it was good...</theGood>
                        <the Bad>it was bad…</theBad>
                    </info>
                </review>
            </reviews>
        </book>
    <books>
    but each Book has multiple reviews, i've just shown you one. Anyway, i need to present this information in 3 dynamic text fields when a book is selected in my ComboBox… after a lot of trouble i got the basics of it. So in the Genre box the genres will display, and in the Description box the description will display, and in the Review box i can get all the information, but only with all the tags. I need it to display without any tags, it would be wonderful if i could figure out how i could put date, name etc in front of that information as well, but I cant even begin to figure that one out.  For the life of me i cannot figure it out. below is the code I have so far:
    //Load XML
    var booksXML:XML = new XML();
    var loader:URLLoader = new URLLoader();
    var request:URLRequest = new URLRequest("gigGuide.xml");
    loader.addEventListener(Event.COMPLETE,loaderOnComplete);
    loader.load(request);
    function loaderOnComplete(event:Event):void
       booksXML = new XML(event.target.data);
       var books:Array = new Array({label:"Select a Book"});
       for each (var book:XML in booksXML.band)
          books.push({label:book.bookName.toString(), data:book.description.toXMLString(),
                     infoLocal:book.genres.genre.toString(), infoDate:book.reviews.review.toString(),
                     infoImage:book.image});
       bandCB.dataProvider = new DataProvider(bands);
    //ComboBox changeable
    bookCB.addEventListener(Event.CHANGE, changeHandler2);
    function changeHandler2(event:Event):void
       genre_txt.text = ComboBox(event.target).selectedItem.infoLocal;
       description_txt.text = ComboBox(event.target).selectedItem.data;
       reviews_txt.text = ComboBox(event.target).selectedItem.infoDate;
       empty_mc.tex = ComboBox(event.target).selectedItem.infoImage; //doesn't work
    any help would be greatly appreciated, and the image doesn't work, i've already faced facts that im not going to get that one to work
    Thank you in advance

    From what I can see you have a few problems. In your loaderOnComplete you set the data provider with 'bands' but create a variable called 'books'.
    Also, you want to be using the XMLList object to parse your data out. It's much simpler.
    Have a look at the following:
    var booksXML:XML;
    function loaderOnComplete(e:Event):void
              booksXML = new XML(e.target.data);
              var books:XMLList = booksXML.book;
              trace(books[0].bookName);
              var bookReviews:XMLList = books[0].reviews.review;
              trace(bookReviews[0].name);
    trace(bookReviews[0].date);
    First we get all the book xml objects in an XML List - the trace traces book number 0's name - The Monsters.
    Next, you can get all the reviews for a book in another XML List. Here we use the first book - book[0] and trace out the review's name and date.
    You can iterate through an XMLList as it has a length() method - (not a length property)
    Also, loading an image for a book would be easy - you just grab the image property of the current book and then use a Loader to load it.
    trace(books[0].image);

  • AS3 and ability to handle dragout events

    I'm making the switch to AS3 and am working on a new flash
    game for work that will be written in AS3.
    I'm adding the event handling to some buttons but am running
    across some issues.
    since the onDragOut event has been replaced with the generic
    MOUSE_OUT event, how do you guys suggest handling instances where
    the user presses a button, roll out of the button and doesn't
    release the mouse, and then roll back over the button?
    Here is the code I am using to create the event handling for
    buttons:
    btn_path.buttonMode = true;
    rollOverHandler = function() {
    btn_path.gotoAndStop('over');
    rollOutHandler = function() {
    btn_path.gotoAndStop('out');
    mouseDownHandler = function() {
    btn_path.gotoAndStop('down');
    mouseUpHandler = function() {
    btn_path.gotoAndStop('over');
    btn_path.addEventListener(MouseEvent.MOUSE_OVER,rollOverHandler);
    btn_path.addEventListener(MouseEvent.MOUSE_OUT,rollOutHandler);
    btn_path.addEventListener(MouseEvent.MOUSE_DOWN,mouseDownHandler);
    btn_path.addEventListener(MouseEvent.MOUSE_UP,mouseUpHandler);
    Do you guys know of any other solution or workaround because
    as the code currently is, if a user rolls out after pressing the
    button (not releasing), when they roll back over, they go to the
    over state instead of the down state.
    I've tried adding flags to know when a button was pressed,
    etc.; however that gets ugly and problematic.
    I'd like to know how you guys implement your buttons events
    and what you do for the events.
    I'm currently using movieclips for my buttons.

    Either you use TVIEW or TIVEW2 there is a field called <b>CLICK</b> you can fill this with the event name. (e.g mynodeclick')
    if you have this property filled in , after the tree is rendered you can click on the node which will generate server event which you can capture oninputprocessing.
    DATA: event      TYPE REF TO if_htmlb_data .
    DATA: tree_event TYPE REF TO  cl_htmlb_event_tree.
    event = cl_htmlb_manager=>get_event( request ).
    if event->event_name = htmlb_events=>tree.
    CLEAR : tree_event .
        tree_event ?= event.
    MOVE: tree_event->node . " This is the current node clicked
    endif .
    Also check out the following weblog .
    /people/durairaj.athavanraja/blog/2004/11/21/bsphow-to-build-performance-efficient-dynamic-htmlbtree
    Regards
    Raja

  • Distinguish between pure AS3 and Flex project

    Hey,
    how can I distinguish if I am compiling currently an AS3 or a Flex project (mxml vs. pure as)?
    I acutally want to look something up in the "evaluate" method of a GenerativeFirstPassEvaluator before doing the processing. So I need to know it there.
    Any help is much appreciated.
    Best,
    Joa

    MXML is converted to AS3 code as part of the compilation process, then the AS3 is compiled normally like the rest of the project. I don’t think that GFPE is run over anything but an AS3 tree. There
    may be a way to figure out where the original source came from, e.g. .mxml or .as file, but you’d have to interactively debug and scan the data structures — I don’t know off hand.
     - Jono
    From: Joa Ebert <[email protected]>
    Reply-To: <[email protected]>
    Date: Mon, 31 Mar 2008 05:40:13 -0700
    To: <[email protected]>
    Subject: Distinguish between pure AS3 and Flex project
    A new discussion was started by Joa Ebert in
    Developers --
      Distinguish between pure AS3 and Flex project
    Hey,
    how can I distinguish if I am compiling currently an AS3 or a Flex project (mxml vs. pure as)?
    I acutally want to look something up in the "evaluate" method of a GenerativeFirstPassEvaluator before doing the processing. So I need to know it there.
    Any help is much appreciated.
    Best,
    Joa
    View/reply at Distinguish between pure AS3 and Flex project
    <http://www.adobeforums.com/webx?13@@.59b4da24>
    Replies by email are OK.
    Use the unsubscribe
    <http://www.adobeforums.com/webx?280@@.59b4da24!folder=.3c060fa3>  form to cancel your email subscription.

  • How do I upload an image using as3 and display it without a server?

    Is it possible to upload an image using as3 and flash player 9 and then display it in a movie clip without server side assistance?
    thanks,
    JB

    Hi,
    Check out the links..
    I hope it will helps u.
    http://labs.findsubstance.com/2008/04/03/as3-upload-encode-images/
    http://flexscript.wordpress.com/2009/01/12/uploading-an-image-into-flash-without-server-si de-script-using-flash-player-10/
    Saransoft

  • Converting code from as2 to as3 and getting errors

    I am trying to get a counter that I found in as2 to work in as3 but I am getting errors when I publish.
    Here is my code:
    stop();
    var currSlide;
    addEventListener(Event.ENTER_FRAME, onEnterFrame);
    function onEnterFrame(evt:Event):void
    currSlide = root.rdinfoCurrentSlide +1;
    this.curSlide_txt.text = currSlide;
    this.totSlide_txt.text = root.rdinfoSlideCount;
    any suggestions?

    no code should be attached to objects.
    most of that looks like it's useless or worse than useless.   in particular, everything in the enterframe loop looks like it serves no purpose and repeatedly does useless things.  if it is doing something useful, it doesn't need to be done in a loop.
    and setting the rgb of a color instance does nothing useful.
    the only thing useful is setting brushColor when that brush movieclip is clicked.
    so, if you have a movieclip with class = "brush" in your library, you can use:
    var brushColor:uint;
    var blackBrush:brush=new brush();
    blackBrush.col = 0x000000;
    addChild(blackBrush);
    blackBrush.addEventListener(MouseEvent.CLICK,clickF);
    function clickF(e:MouseEvent):void{
    brushColor = MovieClip(e.currentTarget).col

  • Flash CS5 AS3 and image uploading

    hay guys and girls, i am making a fully flash website and have come across a few problems.
    I need to make a way for a loged in user to upload pictures straight to my site. Currently im using a simple xml doc to load my pictures into my photo gallery. so i need 2 things, a way to load images straight into the folder with all the other pictures, secondly a way to automaticly edit the xml to include the new images added, (also i would need to set the weight and hight of the image, n ofcourse of to pic to reject is - but thats not as important)
    Thanks for all advice
    Steve

    To upload images to a folder on the server you need to look into using the FileReference class.  You should be able to find a tutorial via Google using terms like "AS3 FileReference upload tutorial".

  • AS3 and 508 Compliance?

    Hi,
    When setting up Flash content to be 508 compliant, has anyone encountered any issues in tabbing through the buttons? It seems that the buttons' descriptions aren't being picked up by the screen reader.
    Thanks,
    Dan

    I've done (partial) 508 compliance with AS3 on a couple projects this year and last year. In the end, we decided to make the Flash version of the project "half-way" 508 compliant (which isn't really 508 compliant then, is it?) - we only focussed on tab navigation, not the screen reader. We then provided an HTML, text-only version for those who prefer the nice and simple HTML screen reader experience. I got lucky here and wasn't forced to figure out a way of dealing with full Flash + screen reader technology (but it would have been a great learning experience).
    Like you, Dan, I also expereinced lots of inconsitency with what a screen reader reads when I was trying & testing things in AS3. For example, there are two ways to set up the accessible name & description for a button - via the Accessibility panel, or via AS3 code. Either way you choose, it's done - easy to do...at least as far as preping your Flash file. However, regardless of a developer doing things perfect there, we have two other levels of inconsistency: the screen reader being used, and the browser being used. I can't remember the combinations of things, but sometimes I'd get a screen reader to read the name of a tabbed-to button, other times nothing would get read. Frustrating, indeed. It's not that I programmed Flash incorrectly...it's that the technology isn't standard or consistent enough. But, then again, my experience was somewhat limited.
    I don't have any answers for you, sadly, and can only to say "test, test, test", and search the heck out of it online. Luckily for us developers, the two top PC-based screen readers are avilalbe as free demos (though they only run for a limited time before you must restart your computer, which you may already be familiar with): Windows Eyes, and JAWS. A company in the UK also has one called Thunder that is totally free, but also behaves differently.When testing with a screen reader, it's also really important to learn each one's various keyboard shortcuts.
    Also, if possible, working with a user who DEPENDS on screen readers for their daily lifestyle gets you the most feedback. I never got to do this, but felt that learning how a person uses a screen reader, like JAWS, and how they use the shortcuts, would provide a lot of insight.
    In a nuthsell, I was only able to get complete control over a somewhat complex interface via tabbing. But I wasn't able to "conquer" the screen reader experience with AS3.
    Things really get hairy when you want to update just one portion of a  screeen, and have that new content - and only that - read via the screen  reader. Any asynchronously updated screen type of experience has these problems, though - Flash isn't totally alone. AJAX and other HTML/JavaScript experiences can also be limited, or be challenging for developers.

  • AS3 and Timeline

    envrionment: FlashPro CS6 (12.0.0.481) on Windows 7
    This might be a bit of a newbie question, but I am struggling to understand how I can more efficiently load and display external swf to the stage without using the timeline.
    I have created 4 external swfs that load dynamic data from XML, assignes them to variables and then displays the data.
    (RMStats.swf)
    var xmlData:XML = new XML();
    var theURL_ur:URLRequest = new URLRequest("RMStats.xml");
    var loader_ul:URLLoader = new URLLoader(theURL_ur);
    loader_ul.addEventListener("complete", fileLoaded);
    function fileLoaded(e:Event):void
       xmlData = XML(loader_ul.data);
       RMDates_txt.text = xmlData.Dates;
       RMLostTime_txt.text = xmlData.LostTime;
       RMModifiedWork_txt.text = xmlData.ModifiedWork;
       RMMedicalAid_txt.text = xmlData.MedicalAid;
       RMFirstAid_txt.text = xmlData.FirstAid;
       RMIncidents_txt.text = xmlData.Incidents;
    then I created a swf to load each of the individual swfs in sequence,
    (movie.swf)
    var myLoader:Loader = new Loader();
    var url:URLRequest = new URLRequest("RMStats.swf");
    myLoader.load(url);
    addChild(myLoader);
    but I find it cumbersome that the only way I can find to sequence the swfs is to create a timeline and call each from the actionscript at the beginning.
    I looked for code snippets from others that have done this but couldn't find anything specific.
    Is there any way to create one AS3 procedure that loads each external swf, waits the equivalivent of the time on the time line and then loops to the next?
    In essence, can I replace the timeline with AS3?
    example
    var myLoader:Loader = new Loader();
    var url:URLRequest = new URLRequest("RMCurrent.swf");
    myLoader.load(url);
    addChild(myLoader);
    wait(60):
    var my2ndLoader:Loader = new Loader();
    var url2:URLRequest = new URLRequest("RMPrevious.swf");
    my2ndLoader.load(url2);
    addChild(my2ndLoader);
    wait(60):
    etc
    I would probably create an array of the swf and call them in a loop if i could.

    you can either use a callback function in the last frame of your external swfs (that triggers the load and/or display of the next swf) or use an enterframe loop that repeatedly checks the currentFrame of the current swf and triggers the load/display of the next swf when currentFrame==totalFrames of the current swf.

  • Global vars in as3 and code run order

    two questions:
    1)how can i declare a global variable in as3, like in as2 i
    could write for example :
    _global.variableName = "variableValue"
    and then access the var from anywhere.
    2)how can i tell a part of the code from the root to run only
    after the code ran in all the other movieclips when the swf loads?
    thx

    As far as the first irem goes... AS3 does not support the
    _global reference. Just Google "AS3 _global" and you can probably
    find a few options. Here's one result:
    http://www.websitemediaplayers.com/blog/global-variables-as3/

  • HELP: Problem using AS3 and CF-Flash Remoting CFC

    I am trying to use CF flash remoting from an AS3 Class using
    the NetConnection class. The approach I am using is directly from
    "ActionScript 3.0 Cookbook" by Joey Lott et. al.
    I am using a totally standard default install of CF, Flex and
    SQL server on Windows 2003 R2.
    When I do a CF Flash remoting call using,
    _netConnection = new NetConnection();
    _netConnection.connect('
    http://pordev2.wcrt.xeroxlabs.com:8500/flashservices/gateway/');
    _netResponder = new Responder(onGotData, onGotError);
    _netConnection.call("porTechDB.PorComponents.ProjValuationRemote.getProjValuationData",
    _netResponder, 1, strtest);
    all seems OK. The CFC returns the integer and string just
    fine.
    HOWEVER, when I also add an associative array, "aa", to the
    string of arguments, I get an error...
    _netConnection.call("porTechDB.PorComponents.ProjValuationRemote.getProjValuationData",
    _netResponder, 1, strtest, aa);
    returns the error: "Unknown object type tag (17)"
    The same error is also returned if "aa" is an XML variable
    instead of an associative array.
    So:
    a) Is this a bug?
    b) Is there an AS3 specific gateway I should have referenced?
    c) Is Flash Remoting not yet supported in AS3?
    Thanks you for your time,
    Ned
    =================================================================
    Here is my test code:
    <cfcomponent displayname="ProjValuationRemote"
    hint="Returns an array of Project Header, Valuation and supporting
    data recordsets">
    <cffunction access="remote" name="getProjValuationData"
    output="false" returntype="String">
    <cfargument name="test1" type="numeric" required="no"
    default=1>
    <cfargument name="test2" type="string" required="no"
    default = "a default string">
    <cfargument name="AA" type="Struct" required="no">
    <cfset testReturn = #test2# & ": TESTING -- This is
    the return integer: " & #test1#>
    <cfreturn testReturn>
    </cffunction>
    </cfcomponent>
    public function requestVRD():void {
    var strtest:String = "Simple test string";
    var aa:Object = new Object();
    aa.curDataSet = 86;
    aa.curYear = 2007;
    _netConnection = new NetConnection();
    _netConnection.connect('
    http://pordev2.wcrt.xeroxlabs.com:8500/flashservices/gateway/');
    _netResponder = new Responder(onGotData, onGotError);
    _netConnection.call("porTechDB.PorComponents.ProjValuationRemote.getProjValuationData",
    _netResponder, 1, strtest);
    private function onGotData(re:String):void {
    // arVRD = re;
    trace(re);
    returnString = re;
    trace("got remote data response");
    private function onGotError(error:Object):void {
    trace("Executing the gotProjectData_Fault: " +
    error.description);
    trace("Executing the gotProjectData_Fault -- no detail");
    // setErrorAlert();
    This works as expected producing the following trace:
    Simple test string: TESTING -- This is the return integer: 1
    Replacing the remote with the following, which adds an array
    to the parameter list...
    _netConnection.call("porTechDB.PorComponents.ProjValuationRemote.getProjValuationData",
    _netResponder, 1, strtest, aa);
    Produces the following error:
    Executing the gotProjectData_Fault: Unknown object type tag
    (17)

    I didn't think so,
    We are putting together ads with alot of images with that 40k limit
    so the images don't look great.
    I was trying to find the best way to work with the images, while keeping it as simple as possible.
    Oh.... your right I was hoping to slowly introduce my associates into AS3, I thought If this could be done
    It woud be a great tool to introduce them to, but no
    Thank you for your time and feedback

  • As3 and label childs

    hi, how to make what every child could have its own tag, but not the last one in xml?
    here is my code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Module xmlns:mx="http://www.adobe.com/2006/mxml"
    xmlns:tagfiles="*"
    layout="absolute" width="630" height="400" backgroundColor="#000000"
    creationComplete="init();">
    <mx:Style>
    @font-face {
    src:url("fonts/TAHOMA.TTF");
    fontFamily: Tahoma;
    fontWeight: normal;
    advancedAntiAliasing: true;
    .Labelrec
    font-family: Tahoma;
    fontSize:11;
    fontThickness: 200;
    ScrollBar
                    thumbSkin: Embed(source="img/scrool_thumb.png", scaleGridLeft="1", scaleGridTop="10", scaleGridRight="14", scaleGridBottom="43");
                    trackSkin: Embed(source="img/scroll_track.png", scaleGridLeft="1", scaleGridTop="22", scaleGridRight="16", scaleGridBottom="153");  
                    upArrowSkin: Embed(source="img/arrow_up.png");
                    downArrowSkin: Embed(source="img/arrow_down.png");
    </mx:Style>
    <mx:Fade alphaFrom="0" alphaTo="1" id="fin" />
    <mx:Script>
    <![CDATA[
    import mx.controls.*;
    import flash.events.Event;
    import flash.net.URLLoader;
    import mx.core.UIComponent;
    import mx.rpc.events.ResultEvent;
    import mx.rpc.http.HTTPService;
    import flash.events.MouseEvent;
    private var _node:Object;
    private var myXML:XML;
    private var myLoader:URLLoader;
    private var keyword:String;
    private var masyvas:Array;
    private var bb:VBox;
    private var holder:UIComponent;
    //private var _node:Object;
    public function init():void {
    fin.play([can]);
    fin.play([myVBox]);
    goTagGo();
    public function goTagGo():void {
    var service : HTTPService = new HTTPService();
    service.url = 'data/projektai.php';
           service.addEventListener(ResultEvent.RESULT, xmlLoaded);
          service.send();
    public function xmlLoaded(e:Event):void {
    trace("xml loaded");
    var result:* = HTTPService(e.target).lastResult;
    for each (var tag:Object in result.tags.tag )  {
    var mc = gimdom(tag);
    public function gimdom(node:Object):void {
    _node=node;
    var myButton:Label = new Label();
                myButton.htmlText = "<font color=\"#ae917c\">" + node.name + "</font>" +
                " <font color=\"#a0a0a0\">" + node.text + "</font>";
    myButton.mouseChildren = false;
    myButton.buttonMode = true;
    myButton.useHandCursor = true;
    myButton.width=500;
    myButton.id=node.idd;
    myVBox.addChild(myButton);
    keyword=node.name;
                this.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
    public function mouseUpHandler( e:MouseEvent ):void {
    Alert.show(this._node.text);
    public function mouse():void {
    Alert.show(this._node.text);
    ]]>
    </mx:Script>
       <mx:Canvas id="can" width="99.9%" height="100%" horizontalScrollPolicy="off">
       <mx:VBox id="myVBox" width="100%" height="100%" verticalScrollPolicy="off" y="5" x="5">
       </mx:VBox>
       </mx:Canvas>
    </mx:Module>
    function  "public function mouseUpHandler( e:MouseEvent ):void {
    Alert.show(this._node.text);
    }" gets last xlm tag

    Here's a copy/paste text that you can massage into your own
    personal style (maybe make it shorter, I'm too verbose), until
    people get used to the change :
    "That is an actionscript 3 related question, and this forum's
    focus is on actionscript 1 and 2.
    We now have separate forums for actionscript 1/2 (combined)
    topics and for actionscript 3 topics.
    What you should do:
    Please edit your post in this forum (so people know it has
    been re-posted) and re-post the question in the as3 forum, here:
    http://www.adobe.com/cfusion/webforums/forum/categories.cfm?catid=665
    Why?: By doing this, you will get:
    a) the attention of people more focused on your actionscript
    3 issue and
    b) it will help others looking for the answer to the same
    problem in the future as they will be more likely to find it as it
    will be in the correct place.
    Thanks, :-)"

  • AS3 and Java Servlets

    Hey guys, I was recently able to get AS3.0 to connect to a
    MySQL database using PHP. However, my employer decided that he
    wants me to use a Java Servlet for the communications rather than
    PHP. I have written the servlets and they are all working properly,
    however, I can't get flash to run them properly in the application.
    When running the servlet I get an error stating "Error opening URL"
    Are there any specific changes that I need to change in my code so
    that I am able to communicate with a servlet? I am posting this in
    the hopes there is an easy solution, or if there is a tutorial
    anyone could provide. If need be, I can post my code.
    Thanks!

    I don't know anything about the server code itself, but is it
    still running on the same domain as the swf? Otherwise you would
    need to look at crossdomain.xml permissions.

  • AS3 and Accessibility

    Hi,
    I'm experiencing a strange problem with Flash and accessibility where I disable a button yet it still appears to be active to a screen reader. Usually the MSAA state should be set to 'unavailable' for disabled buttons. Is there any way to manually set the state from AS3? The only solution I can think of is to hide the button from the screen reader however I don't think that this is very good practice.
    It seems that Adobe still have a bit of work to do for developers to build accessible content.

    This is a bit more completed:
    //IMPORT
    import flash.accessibility.AccessibilityProperties;
    //APPLY ACCESSIBILITY
    movieClip.accessibilityProperties = new AccessibilityProperties();
    //what screen reader reads plus the word “button” (watch out for it saying “button button”)
    movieClip.accessibilityProperties.name = link 1 '
    //enabled
    movieClip.accessibilityProperties.silent = false;
    movieClip.tabEnabled = true;
    //disabled
    movieClip.accessibilityProperties.silent = true;
    movieClip.tabEnabled = false;

  • Size of sprite different in AS3 and Flash

    When i do a Select All of my symbol in Flash I get a height
    (lets say 300x300). Even if there are multiple items, it groups
    them together to give me the total size.
    In AS3 I never get the same size. I have tried calling
    getRect(), width/height, etc... I get a different size, it's close
    but still invalid, sometimes smaller, sometimes larger.
    To replicate this:
    1. Create a new sprite with some text, add some paint
    brushes, etc..
    2. Add the sprite to the stage and notice its width and
    height
    3. Give the sprite an instance name (in this case I called it
    "block")
    4. Add a document main source file and add the following code
    to the constructor (from the bottom of the script)
    You will see that the size the code tells you and the size
    the flash editor gives are different. Is this a bug?

    1) yes the sprite is on the stage. It is accessible by AS3
    just the size is wrong.
    2) no, the sprite is not always a whole pixel, sometimes the
    size in Flash may be 300.50 x 210.90 etc..

Maybe you are looking for

  • Inserting Record In same table through triggers.

    Hi, I've a table cus_mst ( cus_div_cd vachar2(1), cus_cd varchar2(5), cus_nm varchar2(100) ) Records are inserted in this table through forms ... We need to automatically insert a record with a diff div_cd for any record inserted in the table . If di

  • How can I remove apps from iPhone.

    I downloaded free apps, but I want to remove them now.

  • Email in Mavericks OS

    When writing an email in Mavericks OS, when editing text, placing the cursor is off back several characters... example, if I type "Dear sir or madam...", and place my cursor in front of the "s" in sir... it begins typing several characters away. Just

  • Golden gate missing checkpoint table

    Hello gurus, I am trying to implement live replication with Golden Gate but I can't create the checkpoint table. GGSCI () 26> ADD CHECKPOINTTABLE ERROR: Missing checkpoint table specification. GGSCI (q) 27> ADD REPLICAT rep1, EXTTRAIL /t01/software/g

  • Checking enhancement package

    Gurus, How to check if enhancement package 3 is installed for the ECC6 installation? How to check which functionalities are activated and which ones are not? Thanks,