Integrating Flash with Lectora 2006

Dear all,
Does anyone know how I can create a variable in Flash AS 2.0
that can communicate with a SCORM wrapped Lectora course on an LMS
(the Flash movie would be within the course as an external HTML
object)?
Also, how do I do the reverse and create a varible in Lectora
(i.e. QuestionPoints) and be able to write to and increment its
value from within the embedded Flash movie?
Much appreciated.
Ant.

Flash is proprietary technology and they don't play nice with others. Same reason why you can't load an MSWord doc in a Java GUI. If Flash WAS an open technology, then perhaps someone would/could build a plugin or some way to do it.

Similar Messages

  • Integrating flash with swings

    Hi,
    Im looking to integrate flash with swings. This is for a desktop application, not a web based application. I was looking for some help on this, if someone could help me with it.
    Regards,
    Ghost Rider

    Flash is proprietary technology and they don't play nice with others. Same reason why you can't load an MSWord doc in a Java GUI. If Flash WAS an open technology, then perhaps someone would/could build a plugin or some way to do it.

  • Need help integrating flash with asp

    i am creating a dynamic site that pulls all of its content
    from and access database. i would like to make the entire page in
    flash. i have never used flash to pull any content from a datbase
    before. does any one know how to do this ? or know of a good
    tutorial? i can only seem to find tutorials for flash 8 or flash 5,
    nothing for mx2004.
    it seems like every thing i try doesnt work and no one knows
    how to help me.
    feeling very discouraged,
    -furley

    Flash has nothing to do with getting data from an Access
    database.
    You need to focus on either ASP or ASP.Net, a scripting
    language for the
    server script either JScript or VBScript, middleware usually
    ADO or ADO.Net
    and finally SQL. All of these items go together in a server
    side script that
    could work with non-Flash or Flash client interfaces. You
    should find many
    tutorials on the internet with these items as it has been
    done for nearly a
    decade.
    You also can use ColdFusion.
    For Flash, you need to learn LoadVars Actionscript class if
    you plan to
    communicate data in the URL Variables format or XML
    Actionscript class if
    you want to use XML data format. It will not really matter to
    Flash what is
    on the server side as it will only be sending and receiving
    data in either
    of those two data formats (URL Variables or XML).
    If you want to look at some Using VBScript, ASP, ADO and an
    OLEDB Connection
    examples I use for seminars in Web database you can take a
    look here:
    http://www.hosfordusa.com/ClickSystems/courses/webdb/.
    However they lack
    Flash example but would work "as is" with a Flash example.
    Once you look at some of those options, you can then form
    more specific
    questions for this forum and especially with using the
    LoadVars and XML
    Actionscript classes or the XML connector Flash component.
    Lon Hosford
    www.lonhosford.com
    Flash, Actionscript and Flash Media Server examples:
    http://flashexamples.hosfordusa.com
    May many happy bits flow your way!
    "professorfurley" <[email protected]> wrote
    in message
    news:[email protected]...
    i am creating a dynamic site that pulls all of its content
    from and access
    database. i would like to make the entire page in flash. i
    have never used
    flash to pull any content from a datbase before. does any one
    know how to do
    this ? or know of a good tutorial? i can only seem to find
    tutorials for
    flash
    8 or flash 5, nothing for mx2004.
    it seems like every thing i try doesnt work and no one knows
    how to help
    me.
    feeling very discouraged,
    -furley

  • Integrating flash with java

    i have a form made with flash, and form handlers made with java. So how can i make it work. i have couple java packages that make the calculations from the values given in flash form.any good websites that have info about java and flash?

    hey, try getting both communicated with XML

  • Integrating Flash With Captivate 4

    I wonder if anyone can help me. I have searched the net and these forums but I can't seem to find any answers to my problems. I am attempting to create a quiz in Flash and put it into Captivate, (using the course builder section, I have the e-learning package). I can do this but the quiz just seems to play through and not stop. Does anyone know how to do this correctly? Is there anything I should add into the scripting? And should this be done in Flash or Captivate? Would greatly appreciate any help.
    Also is Flash the best way to try to modify or enhance Captivate? The person I'm creating this for wants something like a Raptivity Quiz in a Captivate program. So far I seem unable to create anything in Flash that will work correctly in Captivate. Again I'd be greatful if anyone could shed any light.

    Hi there
    Sure, lots of folks here create Flash Widgets and Gizmos and use them with Captivate. So it does actually work. Likely you just need to figure out the relationship. (I'm not a Flash savvy person, so I don't mix the two)
    Question here though. Captivate has its own quizzing built into the product. Why Flash? Does it do quizzing better? Or was this just someone's requirement without having any knowledge Captivate does quizzing?
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Integrating Flash With Java Game

    hi guys,
    i'm doing the final touch up for my RPG, i plan to put flash animation as intro before my game starts, is it possible to call .swf file directly from java itself, how am i gonna make it possible??Please advice~
    Thanks~

    here's that dhtml trick I was telling you about:
    <html>
    <head>
    <title>Example</title>
    <style type="text/css"><!--
         #tagArea {
              font: 10pt tahoma,verdana,serif;
    --></style>
    <script language="javascript"><!--
         /* edit the next two variables to your swf/applet tags
         * after trying this example out
         var swfTag = "[your swf tag here] pretend this is a <a href=\"javascript:flipTags();\">link</a> in your swf object";
         var appletTag = "[your applet tag here]";
         var swf = true;
         /* when this gets called, the switch of tags is made */
         function flipTags() {
              var tagArea = document.getElementById("tagArea");
              if (swf) tagArea.innerHTML = appletTag;
              else tagArea.innerHTML = swfTag;
              swf = !swf;
    //--></script>
    </head>
    <body>
    <div id="tagArea">
    <script language="javascript"><!--
         document.write(swfTag);
    //--></script>
    </div>
    </body>
    </html>if you're too lazy to slap all that into an html file, go ahead and jsut view it here :P

  • Integrating Flash into Dreamweaver

    Hello All,
    I am a newbie and just finished a Flash class. However we
    didn't hardly talk at all about integrating Flash with Dreamweaver.
    What I want to do is create an intro page that has Flash and
    then you have to click on a Button to go into the main site. I
    understand a little of Behaviors and Actionscripting so thought
    that I would do the GetURL Behavior (going off memory here) to get
    me from the Intro page to the main Dreamweaver site.
    Question is... do I export an SWF file, put that in a
    index.html page for the Intro page and then link to the main
    Dreamweaver site but have the main site not an "Index" file but
    another name...maybe main.html.
    Is this what people do? Or do they take the generated .html
    file from Flash (its published) and just use that as their intro.
    Naming it index.html. And then linking to another *.html created
    with Dreamweaver but that is not saved as index.html.
    Also, how often are people doing a PURE Flash website and not
    mixing the Flash and Dreamweaver together? Just curious.
    Thanks for clarifying.
    Computerkitten

    Hmm... looks ok to me. You should be able to place it in a
    folder without
    problem. I'd try using SWFObject to put the Flash on the page
    though - that
    _might_ fix your problem. Odd one.
    http://blog.deconcept.com/swfobject/
    Dave -
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • Integrating Flash CS3 with XML

    Hello, I done a tutorial from learnflash.com on Integrating
    Flash CS3 with XML, and I can't figure out why when the file is
    published the scrollbar component doesn't work.

    Yep, big difference. Flash CS3 is the earlier version of
    Flash, so you can't open CS4 files in CS3. You are probably
    confusing CS3 with AS3, which is supported by both versions of
    Flash CS#.

  • Advice on integrating Flash and HTML

    I have googled and researched this topic on the web.
    Integrating Flash and HTML seems like a popular topic but much of
    the information is dated (using FS commands or solutions based on
    2000-2004 coding and/or hacks) I am using Flash CS3 and Dreamweaver
    CS3. I can use Actionscript 2 or Actionscript 3. Here is my goal
    I want to use a Flash navigation in the top third of my page
    and have it control and load new HTML pages in the bottom two
    thirds of the page. Some of these html pages use SPRY code but most
    are simple HTML pages. I prefer Flash over CSS because I have more
    control and predictability. What I have found so far is three
    different solutions.
    1.HTML Framesets. This seems like a really good idea but I
    thought using framesets was a fading technique and should be
    avoided. Is this true?
    2. Using the ExternalInterface class to communicate between
    Javascript and Actionscript. This also seemed like a good idea but
    it is not clear to me how to implement. Do I combine this with
    innerHTML or some type of AJAX technique.
    3. Keep everything in Flash and load different swfs into main
    Flash page. I like this idea the best and it would work for most
    pages but I still like html pages when there is alot of text or I
    want to use SPRY techniques.
    When I have posted elsewhere I get references to articles
    telling me why Flash is bad or framesets are bad or innerHTML is
    not standard HTML. The only thing I am sure about is that most
    people are pretty passionate about defending their own way of doing
    things. I am hoping someone can provide some solid information
    about what is possible and how to implement a solution.

    It works when you put it online... :)1

  • Stop and Play All Child MovieClips in Flash with Actionscript 3.0

    I am stuck with the ActionScript here. I have a very complex animated flash movie for eLearning. These contain around 10 to 15 frames. In each frame I am having multiple movie clip symbols. The animation has been created using a blend of scripting and also normal flash animation.
    Now I want to create pause and play functionality for the entire movie. I was able to create the pause function but when i try to play the movie it behaves very strange.
    I was able to develop the pause functionality by refering to the below mentioned links:
    http://www.unfocus.com/2009/12/07/stop-all-child-movieclips-in-flash-with-actionscript-3-0 /
    http://www.curiousfind.com/blog/174
    Any help in this regard is highly appreciated as i am approaching a deadline.
    I am pasting the code below:
    import flash.display.MovieClip;
    import flash.display.DisplayObjectContainer;
    import flash.utils.Timer;
    import flash.events.TimerEvent;
    import fl.transitions.*;
    import fl.transitions.Tween;
    import fl.transitions.easing.*;
    import fl.transitions.TweenEvent;
    import flash.events.Event;
    import flash.events.MouseEvent;
    stop();
    // function to stop all movieclips
    function stopAll(content:DisplayObjectContainer):void
        if (content is MovieClip)
            (content as MovieClip).stop();
        if (content.numChildren)
            var child:DisplayObjectContainer;
            for (var i:int, n:int = content.numChildren; i < n; ++i)
                if (content.getChildAt(i) is DisplayObjectContainer)
                    child = content.getChildAt(i) as DisplayObjectContainer;
                    if (child.numChildren)
                        stopAll(child);
                    else if (child is MovieClip)
                        (child as MovieClip).stop();
    // function to play all movieclips
    function playAll(content:DisplayObjectContainer):void
        if (content is MovieClip)
            var movieClip:MovieClip = content as MovieClip;
            if (movieClip.currentFrame < movieClip.totalFrames) // if the main timeline has reached the end, don't play it
       movieClip.gotoAndPlay(currentFrame);
        if (content.numChildren)
            var child:DisplayObjectContainer;
            var n:int = content.numChildren;
            for (var i:int = 0; i < n; i++)
                if (content.getChildAt(i) is DisplayObjectContainer)
                    child = content.getChildAt(i) as DisplayObjectContainer;
                    if (child.numChildren)
                        playAll(child);
                    else if (child is MovieClip)
                        var childMovieClip:MovieClip = child as MovieClip;
                        if (childMovieClip.currentFrame < childMovieClip.totalFrames)
          //childMovieClip.play();
          childMovieClip.play();
    function resetMovieClip(movieClip:MovieClip):MovieClip
        var sourceClass:Class = movieClip.constructor;
        var resetMovieClip:MovieClip = new sourceClass();
        return resetMovieClip;
    pauseBtn.addEventListener(MouseEvent.CLICK, onClickStop_1);
    function onClickStop_1(evt:MouseEvent):void
    MovieClip(root).stopAll(this);
    myTimer.stop();
    playBtn.addEventListener(MouseEvent.CLICK, onClickPlay_1);
    function onClickPlay_1(evt:MouseEvent):void
    MovieClip(root).playAll(this);
    myTimer.start();
    Other code which helps in animating the movie and other functionalities are as pasted below:
    stage.addEventListener(Event.RESIZE, mascot);
    function mascot():void {
    // Defining variables
    var mc1:MovieClip = this.mascotAni;
    var sw:Number = stage.stageWidth;
    var sh:Number = stage.stageHeight;
    // resizing movieclip
    mc1.width = sw/3;
    mc1.height = sh/3;
    // positioning mc
    mc1.x = (stage.stageWidth/2)-(mc1.width/2);
    mc1.y = (stage.stageHeight/2)-(mc1.height/2);
    // keeps the mc1 proportional
    mc1.scaleX <= mc1.scaleY ? (mc1.scaleX = mc1.scaleY) : (mc1.scaleY = mc1.scaleX);
    stage.removeEventListener(Event.RESIZE, mascot);
    mascot();
    this.mascotAni.y = 100;
    function mascotReset():void
    // Defining variables
    var mc1:MovieClip = this.mascotAni;
    stage.removeEventListener(Event.RESIZE, mascot);
    mc1.width = 113.45;
    mc1.height = 153.85;
    mc1.x = (stage.stageWidth/2)-(mc1.width/2);
    mc1.y = (stage.stageHeight/2)-(mc1.height/2);
    // keeps the mc1 proportional
    mc1.scaleX <= mc1.scaleY ? (mc1.scaleX = mc1.scaleY) : (mc1.scaleY = mc1.scaleX);
    var interval:int;
    var myTimer:Timer;
    // function to pause timeline
    function pauseClips(secs:int, myClip:MovieClip):void
    interval = secs;
    myTimer = new Timer(interval*1000,0);
    myTimer.addEventListener(TimerEvent.TIMER, goNextFrm);
    myTimer.start();
    function goNextFrm(evt:TimerEvent):void
      myTimer.reset();
      myClip.nextFrame();
      myTimer.removeEventListener(TimerEvent.TIMER, goNextFrm);
    // function to pause timeline on a particular label
    function pauseClipsLabel(secs:int, myClip:MovieClip, myLabel:String):void
    interval = secs;
    myTimer = new Timer(interval*1000,0);
    myTimer.addEventListener(TimerEvent.TIMER, goNextFrm);
    myTimer.start();
    function goNextFrm(evt:TimerEvent):void
      myClip.gotoAndStop(myLabel);
      myTimer.removeEventListener(TimerEvent.TIMER, goNextFrm);
    MovieClip(root).pauseClips(4.5, this);
    // function to fade clips
    function fadeClips(target_mc:MovieClip, next_mc:MovieClip, from:Number, to:Number):void
    var fadeTW:Tween = new Tween(target_mc, "alpha", Strong.easeInOut, from, to, 0.5, true);
    fadeTW.addEventListener(TweenEvent.MOTION_FINISH, fadeFinish);
    function fadeFinish(evt:TweenEvent):void
      next_mc.nextFrame();
      fadeTW.removeEventListener(TweenEvent.MOTION_FINISH, fadeFinish);
    // function to fade clips with speed
    function fadeClipsSpeed(target_mc:MovieClip, next_mc:MovieClip, from:Number, to:Number, speed:int):void
    var fadeTW:Tween = new Tween(target_mc, "alpha", Strong.easeInOut, from, to, speed, true);
    fadeTW.addEventListener(TweenEvent.MOTION_FINISH, fadeFinish);
    function fadeFinish(evt:TweenEvent):void
      next_mc.nextFrame();
      fadeTW.removeEventListener(TweenEvent.MOTION_FINISH, fadeFinish);
    // function to show screen transitions
    function screenFx(target_mc:MovieClip, next_mc:MovieClip):void
    //var tweenTW:Tween = new Tween(target_mc,"alpha",Strong.easeInOut,0,1,1.2,true);
    var tranFx:TransitionManager = new TransitionManager(target_mc);
    tranFx.startTransition({type:Iris, direction:Transition.OUT, duration:1.2, easing:Strong.easeOut, startPoint:5, shape:Iris.CIRCLE});
    tranFx.addEventListener("allTransitionsOutDone",doneTrans);
    function doneTrans(evt:Event):void
      next_mc.nextFrame();
      tranFx.removeEventListener("allTransitionsOutDone",doneTrans);
    // function to show screen transitions inverse
    function screenFxInv(target_mc:MovieClip, next_mc:MovieClip):void
    var tweenTW:Tween = new Tween(target_mc,"alpha",Strong.easeInOut,0,1,1.2,true);
    var tranFx:TransitionManager = new TransitionManager(target_mc);
    tranFx.startTransition({type:Iris, direction:Transition.IN, duration:2, easing:Strong.easeOut, startPoint:5, shape:Iris.SQUARE});
    tranFx.addEventListener("allTransitionsInDone",doneTrans);
    function doneTrans(evt:Event):void
      next_mc.nextFrame();
      tranFx.removeEventListener("allTransitionsInDone",doneTrans);
    // function to zoom in
    function zoomFx(target_mc:MovieClip):void
    //var tweenTW:Tween = new Tween(target_mc,"alpha",Strong.easeInOut,0,1,1.2,true);
    var tranFx:TransitionManager = new TransitionManager(target_mc);
    tranFx.startTransition({type:Zoom, direction:Transition.IN, duration:3, easing:Strong.easeOut});
    //tranFx.addEventListener("allTransitionsInDone",doneTrans);
    /*function doneTrans(evt:Event):void
      next_mc.nextFrame();
    // Blinds Fx
    function wipeFx(target_mc:MovieClip):void
    var tranFx:TransitionManager = new TransitionManager(target_mc);
    tranFx.startTransition({type:Wipe, direction:Transition.IN, duration:3, easing:Strong.easeOut, startPoint:9});
    // Blinds Fx Center
    function fadePixelFx(target_mc:MovieClip):void
    var tranFx:TransitionManager = new TransitionManager(target_mc);
    tranFx.startTransition({type:Fade, direction:Transition.IN, duration:1, easing:Strong.easeOut});
    tranFx.startTransition({type:PixelDissolve, direction:Transition.IN, duration:1, easing:Strong.easeOut, xSections:100, ySections:100});

    This movie is an animated movie from the start to end. I mean to say that though it stops at certain keyframes in the timeline it stops for only a certain time and then moves on to the next animation sequence.
    Its not an application where the user can interact.
    On clicking the play button i want the movie to play normally as it was playing before. If the user has not clicked on the pause button it would anyhow play from start to finish.
    Is there anyway where i could send in the fla file?

  • Is Boot Camp 4.0 (OSX Lion) compatible with a 2006 iMac?

    Just made a clean install of OSX Lion and am trying to install Windows XP using Boot Camp. When I try to download Windows Support Software I get, "Can't install Windows Support Software because it is not currently available from the Software Update".
    Is Boot Camp 4.0 not compatible with my 2006 (White) iMac? If not, can I install an older version of Boot Camp, is there another workaround or do I have to return to Snow Leopard?

    Lion's Boot Camp Assistant will download Boot Camp 4, which does not support Windows XP.
    Assuming your Mac came with Leopard, you will instead use the Boot Camp drivers from the disk that came with your Mac.  Partition your disk using the Boot Camp Assistant or whatever partitioning utility you want.  Insert the Windows disk and reboot while holding down the Option key, then select the Windows disk.  Install Windows XP as normal.  When Windows install is finished, insert the OSX disk that came with your Mac and install the Boot Camp drivers.

  • ALE/IDOC and RFC/BAPI Integration Scenarios with SAP DS for ESA v3

    Hi,
    we are planning two PoCs of Integration Plattforms. One of our major requirement set is SAP Integration into our existing SOA.
    Because we also have R/3 4.7 Systems in production, we are planning to test ALE/IDOC and RFC/BAPI Integration scenarios with these Integration Plattforms.
    My question is:
    We are looking for are smart solution to get a SAP Test Environment, where we can test ALE/IDOC und RFC/BAPI Integration scenarios.
    It is possible to do this with SAP DS for ESA v3 or shall we better use IDES for that purpose?
    Best regards,
    Steven

    Hi Abhishek,
      This is our scenario. We are doing an integration of SAP HR r/3 system with the CRM system. We need housing information details of the employees which we have in custom infotype 9310 in SAP HR system and we need those details in the CRM system. So am planning out for an ALE/IDOC approach for the integration and gonna  maintain the 9310 details in a custom table. In the CRM system, we gonna build a BOL layer for accessing the 9310 details. Also i'm preparing a HLD for this process. I wanna read and go through few same HLD's before i submit my proposal to my client. Please suggest me and help me out.
    Thanks in advance.
    Regards,
    Arunmozhi.

  • Problem in starting Integration service with DAC 11g

    Hi friends,
    Im @ the step of registering integration service and the repository service in DAC 11g. I can start the Repository service well in DAC, but facing issue in starting integration service with DAC, while trying to test connection im getting a message like
    Failure connecting to BIA_IS!
    Im not sure the reason to this problem in DAC. I have also setted the necessary environment variables like INFA_HOME and INFA_DOMAINS_FILE referring the domains.infa file like
    INFA_DOMAINS_FILE = C:\Informatica\9.1.0\domains.infa
    Also checked with the dac_env file which has the below contents
    REM -----------------------------------------------------
    REM
    REM ENVIRONMENT VARIABLES THAT YOU MAY NEED TO SET FOR
    REM  PROPER INFORMATICA 8.x or 9.x HANDSHAKE.
    REM
    REM INFORMATICA_SERVER_LOCATION denotes installation of
    REM Informatica components. Example:
    REM C:\Informatica\PowerCenter9.1
    REM
    REM DOMAINS.INFA_FILE_LOCATION denotes the location
    REM (including name) of domains.infa file
    REM
    REM Please make sure to set correct values for variables
    REM mentioned above
    REM
    REM -----------------------------------------------------
    set INFORMATICA_SERVER_LOCATION="C:\Informatica\9.1.0"
    set DOMAINS_INFA_FILE_LOCATION=C:\Informatica\9.1.0\domains.infa
    set INFA_CMD_STYLE=8
    set PATH=C:\Informatica\9.1.0\server\bin;%PATH%
    set INFA_DOMAINS_FILE=%DOMAINS_INFA_FILE_LOCATION%
    What could be the problem and where to check with the logfile related to the integration service failure in DAC.
    Thanks in advance.
    Regards,
    Saro

    Hi guys,
    The issue is sorted out. The below are the two precautions to be considered.
    *) Make sure of INFA_HOME/Server/bin exist @ the end in the PATH variable.
    *) For each and every change in the PATH variable, it is better to restart the services(both infa and DAC) then and there for the changes to take effect.
    Regards,
    Saro

  • Integrating FTP with JDeveloper

    Can anyone help me with integrating FTP with JDeveloper (10.1.3)
    I am developing jsp pages for a web site. the website runs on a Sun Solaris UNIX server.
    At present i develop my jsp pages in JDeveloper and save then to a file on my PC. I then have to use an external tool (Ultraedit) to FTP them to my webserver for testing.
    I have seen in this forum that there is something called 'ant' which will allow you to FTP direct from JDeveloper. I know zero about 'ant' and after spending a couple of hours trawling arround the web i'm still no wiser.
    Can someone give me a hands held, idiot friendly explanation of what i have to do to integrate FTP?
    john

    Here is a basic explanation of the FTP task in ANT.
    You can just create a new Ant build file in your project, add this task with the correct parameters and then right-click run on the build file.
    Another options is to use JDeveloper to create standard WAR file for deployment and then passing it to the server to deploy.

  • Help:How to publish a Flash with full screen HTML

    Please, guys, be kind enough to teach me how to publish a
    Flash with full screen size in HTML. I have tried to search the
    board, but so far no luck.
    Originally, I want my .SWF to keep changing its background.
    The solution I got was placing colored stage-sized rectangles on
    the bottom layer. Then I don't want the viewers to see the HTML
    area where I cannot seem to control smooth color changes.
    So, after I construct a Flash file with backdrop-color
    changing by the method I mentioned above, how do I publish it with
    full screen mode in HTML, as you can see
    here? Help!
    Thanks in advance, guys.

    Here's an AS2 and a AS3 version I got from David Stiller
    2 small details you have to add 1 in publish settings set Dimensions to percent 100 100
    and in the html set <style>body {margin: 0; padding: 0}</style>
    // AS2
    import flash.display.BitmapData;
    Stage.align = "TL";
    Stage.scaleMode = "noScale";
    var tile:BitmapData = BitmapData.loadBitmap("tile");
    function fillBG():Void {
      beginBitmapFill(tile);
      moveTo(0, 0);
      lineTo(Stage.width, 0);
      lineTo(Stage.width, Stage.height);
      lineTo(0, Stage.height);
      lineTo(0, 0);
      endFill();
    fillBG();
    var listener:Object = new Object();
    listener.onResize = fillBG;
    Stage.addListener(listener);
    // AS3
    stage.align = StageAlign.TOP_LEFT;
    stage.scaleMode = StageScaleMode.NO_SCALE;
    var bmp:Tile = new Tile(50, 50);
    var tile:BitmapData = new BitmapData(50, 50);
    tile.draw(bmp);
    function fillBG(evt:Event = null):void {
      graphics.beginBitmapFill(tile);
      graphics.moveTo(0, 0);
      graphics.lineTo(stage.stageWidth, 0);
      graphics.lineTo(stage.stageWidth, stage.stageHeight);
      graphics.lineTo(0, stage.stageHeight);
      graphics.lineTo(0, 0);
      graphics.endFill();
    fillBG();
    stage.addEventListener(Event.RESIZE, fillBG);
    David Stiller
    Co-author, ActionScript 3.0 Quick Reference Guide
    http://tinyurl.com/dpsAS3QuickReferenceGuide
    "Luck is the residue of good design."

Maybe you are looking for