Line Drawing Script on Stage doesn't work in MovieClip?

I have a little snippet of code that allows the user to create a line with the mouse, and clears the line if they end up touching the hitbox with the mouse, while they're drawing the line. It works fine when it's just thrown onto the main timeline. However, when I try to encapsulate it within a movie clip, it suddenly doesn't work. At all. Are there any suggestions as to why this is happening? Here's the code.
function(){return A.apply(null,[this].concat($A(arguments)))}
var drawing:Boolean;
var my_line:MovieClip = new MovieClip();
this.addChild(my_line);
drawing = false;//to start with
stage.addEventListener(MouseEvent.MOUSE_DOWN, startDrawing);
stage.addEventListener(MouseEvent.MOUSE_MOVE, draw);
stage.addEventListener(MouseEvent.MOUSE_UP, stopDrawing);
function startDrawing(event:MouseEvent):void
//move to the correct starting position for drawing
my_line.graphics.lineStyle(3,0xFF0000);
my_line.graphics.moveTo( mouseX, mouseY);
if (drawBox.hitTestPoint(mouseX,mouseY,true))
  drawing = true;
function draw(event:MouseEvent)
if (drawing)
  my_line.graphics.lineTo(mouseX,mouseY);
  if (oneHitBox.hitTestPoint(mouseX,mouseY,true))
   my_line.graphics.clear();//remove line
function stopDrawing(event:MouseEvent)
drawing = false;
Thanks for any help you can offer!

Oh! Haha, sorry, brainfart. That is all of the code that I use in that particular frame, where I want the user to be able to draw within the confines of the box. The only other code I use are for the drag and drop boxes, meant to be dropped onto a particular area. Those are working just fine, but if you want to see that code too, then:
function(){return A.apply(null,[this].concat($A(arguments)))}
/* Stop at This Frame
The Flash timeline will stop/pause at the frame where you insert this code.
Can also be used to stop/pause the timeline of movieclips.
stop();
/* Drag and Drop
Makes the specified symbol instance moveable with drag and drop.
lunchOff.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag);
function fl_ClickToDrag(event:MouseEvent):void
lunchOff.startDrag();
stage.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop);
function fl_ReleaseToDrop(event:MouseEvent):void
lunchOff.stopDrag();
if (lunchOff.hitTestObject(dropBoxTwo))
  if (offDuty.hitTestObject(dropBoxThree) && onDuty.hitTestObject(dropBoxOne) && lunchOff.hitTestObject(dropBoxTwo))
   gotoAndStop(16);
   stage.focus = aBox;
else
  lunchOff.x = -548.95;
  lunchOff.y = -306.15;
/* Drag and Drop
Makes the specified symbol instance moveable with drag and drop.
offDuty.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag_2);
function fl_ClickToDrag_2(event:MouseEvent):void
offDuty.startDrag();
stage.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop_2);
function fl_ReleaseToDrop_2(event:MouseEvent):void
offDuty.stopDrag();
if (offDuty.hitTestObject(dropBoxThree))
  if (offDuty.hitTestObject(dropBoxThree) && onDuty.hitTestObject(dropBoxOne) && lunchOff.hitTestObject(dropBoxTwo))
   gotoAndStop(16);
   stage.focus = aBox;;
else
  offDuty.x = -557.0;
  offDuty.y = -155.95;
/* Drag and Drop
Makes the specified symbol instance moveable with drag and drop.
onDuty.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag_3);
function fl_ClickToDrag_3(event:MouseEvent):void
onDuty.startDrag();
stage.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop_3);
function fl_ReleaseToDrop_3(event:MouseEvent):void
onDuty.stopDrag();
if (onDuty.hitTestObject(dropBoxOne))
  if (offDuty.hitTestObject(dropBoxThree) && lunchOff.hitTestObject(dropBoxTwo))
   gotoAndStop(16);
   stage.focus = aBox;
else
  onDuty.x = -539.00;
  onDuty.y = 39.45;

Similar Messages

  • Line 6 tone port gx doesn't work properly after updating to mountain lion, i'm hearing artefacts, how is that possible?

    i am using logic 9 and line 6 toneport gx for recording my guitar. on the previous version of OSx everything worked perfect, but now, after updating to mountain lion, i hear noise after i play something. the settings were: input: toneport, output: coreaudio, 44100, buffer 512. now they are the same and i have noise. i've installed the latest drivers for toneport and changed the buffer settings. when the buffer is large, i can play some seconds without the noise but it appears after 15-20 seconds. and when the buffer is small it appears faster. i assume it has to do something with the buffer size but i don't know for sure. any ideas?

    I have the same problem after updating to ML. It's unusuable for recording until it gets sorted out.
    I think it's a problem at the Line 6 end. They are aware of it, and are working on some patch/fix to address the strange artifact sounds, so hopefully it will be ready soon.
    See link - http://line6.com/support/thread/86574

  • Saving scripts into repository doesn't work in UCCX 8.0 Editor

    In UCCX 5 and 7 you could open scripts from repository in Editor running on any machine, and you could save them to repository also. In UCCX 8, I'm only able to open scripts from repository, but not save them, I get an error. TAC claims that this is by design in UCCX 8 with some strange explanation:
    "in the version 7.x  u should be able to save the file directly to the repository as the files path can be mapped directly from your PC but not in version 8.x"
    For some unknown reason this only affects savings scripts, but not opening. I'm trying to get TAC to create a bug.
    Has anyone been able to save scripts in 8.0 editor through repository?

    I experienced this. Check to see when you login to the Editor that you're using the exact case-sensitive version of your username. If you're in the directory as JohnSmith, you can successfully auth as johnsmith but saving scripts to the Repository blows up. If you auth as JohnSmith it works.

  • Small change to script and it doesn't work?

    This is my working script, and it counts the files of the desktop ready to use elsewhere in a larger script,
    It references the desktop.
    (do shell script "ls -F ~/Desktop | grep '/' | cut -d'/' -f1"
    Now  I need it to reference the folders within a different location so I changed it.
    (do shell script "ls -F ~/Pictures/CompletedFolders | grep '/' | cut -d'/' -f1"
    And I then get the error>
    tell application "Finder"
      count every file of folder "BHS_WK3_PSD"
      --> error number -1728 from folder "BHS_WK3_PSD"
    Result:
    error "Finder got an error: Can’t get folder \"BH_WK3_PSD\"." number -1728 from folder "BH_WK3_PSD"
    How is so different?
    set dtF to paragraphs of (do shell script "ls -F ~/Desktop | grep '/' | cut -d'/' -f1")
    set tc to (count dtF)
    set dialogString to ""
    set folderCount to {}
    repeat with i from 1 to tc
              set folderName to item i of dtF --<:  is the folder name, no need to use text item delimiters -->":"
              tell application "Finder"
                        set end of folderCount to {fName:folderName, fCount:count of (files in folder folderName)}
              end tell
    end repeat
    set totalFiles to 0
    repeat with theFolder in folderCount
              set totalFiles to totalFiles + (fCount of theFolder)
              set dialogString to dialogString & return & theFolder's fName & tab & tab & tab & tab & theFolder's fCount
    end repeat

    Hello
    You get the said error because the folder "BHS_WK3_PSD" is not in ~/Desktop but in ~/Pictures/CompletedFolders.
    E.g., the following script returs Finder object representing ~/Desktop/a because Finder assumes folder "a" is in desktop if its container is not specified.
    tell application "Finder"
        folder "a" --> folder "a" of desktop
    end tell
    If you want to get folder "a" in ~/Pictures/CompletedFolders, you'd need to write something like this -
    set dir to (path to pictures folder from user domain as Unicode text) & "CompletedFolders" as alias
    tell application "Finder"
        folder "a" of dir
    end tell
    Thus, as a whole:
    set dir to (path to pictures folder from user domain as Unicode text) & "CompletedFolders" as alias
    set dtF to paragraphs of (do shell script "ls -F " & dir's POSIX path's quoted form & " | grep '/' | cut -d'/' -f1")
    set tc to (count dtF)
    set dialogString to ""
    set folderCount to {}
    repeat with i from 1 to tc
        set folderName to item i of dtF
        tell application "Finder"
            set end of folderCount to {fName:folderName, fCount:count of (files in folder folderName of dir)}
        end tell
    end repeat
    set totalFiles to 0
    repeat with theFolder in folderCount
        set totalFiles to totalFiles + (fCount of theFolder)
        set dialogString to dialogString & return & theFolder's fName & tab & tab & tab & tab & theFolder's fCount
    end repeat
    return folderCount -- # for test
    Hope this helps,
    H

  • Is it a bug - SSIS 2012 ReadOnlyVariables in Script Task doesn't work

    It's very weird when I use the ReadOnlyVariables in SSIS 2012 Script Task, it doesn't work at all!!! And I never notice this change before, but everything in 2008 R2 is fine! Is it a bug in SSIS 2012 ?
    All the variables I set them to "ReadOnlyVariables"
    In scripts - I assigned some values from system variables.
    String PackageName = Dts.Variables["System::PackageName"].Value.ToString();
    DateTime CurrentDate = (DateTime)Dts.Variables["System::StartTime"].Value;
    // User Defined Variables
    Dts.Variables["User::PV_CURRENT_DATE"].Value = CurrentDate;
    Dts.Variables["User::PV_YEAR"].Value = CurrentDate.Year;
    Dts.Variables["User::PV_MONTH"].Value = CurrentDate.Month;
    Dts.Variables["User::PV_DAY"].Value = CurrentDate.Day;
    Dts.Variables["User::PV_PACKAGE_NAME"].Value = PackageName;
    Execute the package, it works !
    The only thing I can make it as SSIS 2008 R2 does is to change the ReadOnly for each variables.
    Then you will get the error.
    Why do we need this feature here but not to use the ReadOnlyVariables in script task ?
    Please vote if it's helpful and mark it as an answer!

    I can reproduce it as well. Feels like a bug...
    Locking the variable for read in code has the same effect:
    public void Main()
    // Lock variable for read
    Dts.VariableDispenser.LockForRead("User::myStringVariable");
    // Create a variables 'container' to store variables
    Variables vars = null;
    // Add variable from the VariableDispenser to the variables 'container'
    Dts.VariableDispenser.GetVariables(ref vars);
    // Now try giving it a new name
    vars["User::myStringVariable"].Value = "new value";
    // Release the locks
    vars.Unlock();
    Dts.TaskResult = (int)ScriptResults.Success;
    For reference:
    https://connect.microsoft.com/SQLServer/Feedback/Details/991697
    Please mark the post as answered if it answers your question | My SSIS Blog:
    http://microsoft-ssis.blogspot.com |
    Twitter

  • Slim doesn't works but LXDE is ok

    Hello (and sorry for my english )
    I installed today arch linux on my laptop. At the beginning, everything was ok, slim  worked fine. After playing with the policykit issue (see "I won the struggle against hal and policykit": http://bbs.archlinux.org/viewtopic.php?id=65070 )and installing the networkmanager (both are working now), slim doesn't works any more - I get a black screen with no mouse and nothing. I think that the problem is slim itself, because if I tipe "startx" from the commandline as normal user (after having killed X as root) lxde starts and everything works. I tried to reinstall slim but it doesn't works.
    I don't know which files to post, so here are two of them
    [swisstux@inspiron ~]$ cat .xinitrc
    exec ck-launch-session startlxde
    [swisstux@inspiron ~]$ cat /etc/rc.conf
    DAEMONS=(syslog-ng polkitparser hal @cpufreq @laptop-mode @networkmanager @crond @alsa @slim)

    it says only this:
    slim: Stale lockfile found, removing it
    it is a bit slow (too slow, on another PC it is 10 times faster), but it works if I start it from the command line. just on boot it doesn't works.
    edit: here is the log of slim starting at boot and at the end the log of slim starting from the shell: http://pastebin.com/m4b6fad81
    second edit: I removed every "@" from the daemon's list in rc.conf and now it works. but it is still really slow
    Last edited by swisstux (2009-04-16 17:53:25)

  • It doesn�t work lazy loading with remote client (toplink)

    I am trying to use lazy loading in a @ManyToOne field but I get an exception. I have been reading in some oracle tutorials that it's necesary use -javaagent:.../lib/toplink-essentials-agent.jar for that it works because this argument activate dynamic weaving in JavaSE. I have put this command line argument javaagent but it doesn't work. Why? Can I have to do another thing? I have done a lot of tests in base to comments read in another forums but I only obtains an exception.
    Caused by: java.io.IOException: Mismatched serialization UIDs
    NOTE: The server use toplink and the remote client query the entitties through a session bean of the server. Besides, I am using Glassfish (Sun application server and toplink).
    Thanks in advance.
    hayken

    At first, thank you for your reply.
    I know that I haven´t explained the problem too well. I have a stateless bean with one remote method that execute a query an returns an entity like this
    @Entity
    public class ModuloEntity extends Serializable
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long idModulo;
    private String nombre;
    @ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="IdProyecto")
    private ProyectoEntity proyecto;
    The remote client invoke this method and in that moment I get this exception.
    21-may-2007 18:55:48 com.sun.corba.ee.impl.encoding.CDRInputStream_1_0 read_value
    ADVERTENCIA: "IOP00810211: (MARSHAL) Exception from readValue on ValueHandler in CDRInputStream"
    org.omg.CORBA.MARSHAL: vmcid: SUN minor code: 211 completed: Maybe
    at com.sun.corba.ee.impl.logging.ORBUtilSystemException.valuehandlerReadException(ORBUtilSystemException.java:7053)
    Caused by: java.io.IOException: Mismatched serialization UIDs : Source (Rep. IDRMI:com.syskonic.gesplan.entities.ModuloEntity:6D06A8C14D488FFF:8E6FC8687EA9E512) = 8E6FC8687EA9E512 whereas Target (Rep. ID RMI:com.syskonic.gesplan.entities.ModuloEntity:1C6925798CDFD3DF:3455DBF4457AE337) = 3455DBF4457AE337
    at com.sun.corba.ee.impl.util.RepositoryId.useFullValueDescription(RepositoryId.java:573)
    If I look the server log, I can see that the call has not been produced, it doesn´t show any exception. It looks that the object managed by the server and the remote client aren´t the same and the corba service doesn´t work when remote client call session method. If I change the ModuloEntity and remove the fetch attribute then all this process executes correctly. The problem is in this attribute.
    NOTE: I am using the javaagent command line argument.
    Hayken

  • On-line Action script course?

    Can anyone recommend an on-line Action script course?
    I’m working on a project where that will require more coding then I am use to dealing with.
    So I need to raise my skill set fast. I’m not sure where to receive the best time and financial investment.
    It would be excellent if I could collaborate with a seasoned professional to learn more.
    If you know of a site or someone on-line please let me know.
    Thank you!

    Have you looked at Lynda.com?   They have a lot of excellent tutorials on Flash and everything else too.  Seems to be well worth the $$.  Otherwise learning through these forums really helps a lot!!

  • Site doesn't work - how to validate javascript for mac?

    hey folks,
    i spent ages for making my new site cross-browser-compatible, only to see safari not working at all.
    http://www.janfrisch.de/
    since the html validates as 4.01 transitional i presume the problem has to be discovered in the javascript section - but where?
    i can't get my hands on a mac, plus i heard the js debugging with safari isn't that easy.
    maybe it's just a really simple solution, like
    "<script type="text/javascript" src="scripts/janfrisch.js"></script>" in header doesn't work with safari or something? i don't have a clue. i'm not a js nor html expert as well.
    would be great if some of you have some helpful information.
    and sorry for my english. =)
    athlon   Windows 2000  

    Hello mablung & Welcome to Apple Discussions
    No problem with your english:-) Not sure if any of this helps, thought i would give it a try.
    http://validator.w3.org/
    I googled js debugging with safari, do any of these help?
    http://simon.incutio.com/archive/2003/12/13/ieGotcha
    http://dojo.jot.com/FAQ
    Any help? I hope so. Good luck
    Eme

  • Merge 2 code and script doesn't work anymore

    I have 2 AS2 codes (I think). One is a carousel gallery script that lets pictures flying in a circle. And the second code is the one that let words fly, downloaden from http://www.levitated.net/daily/levTextSpace.html.
    The scripts work seperatly, but once i merge the codes together the levTextSpace doesn't work anymore. And I can't find where the problem is. Fla file is included.
    Carousel gallery:
    picData = new XML();
    picData.ignoreWhite = true;
    picData.onLoad = loadXML;
    picData.load("md_photos.xml");
    function loadXML() {
         _root.createEmptyMovieClip("thumbnails", 1);
         images = new Array();
         for (i=0; picData.firstChild.childNodes[i].firstChild.nodeValue != undefined; i++) {
              images.push(picData.firstChild.childNodes[i].firstChild.nodeValue);
         thumbnails._x = 750;
         thumbnails._y = 75;
         imageLoading = true;
         numObjects = images.length;
         objectsInScene = new Array();
         focalLength = 750;
         spin = 0;
         _root.thumbnailSize = 350/((numObjects)/9);
         displayPane = function () {
              var angle = this.angle+spin;
              var x = Math.cos(angle)*this.radius;
              var z = Math.sin(angle)*this.radius;
              var y = this.y;
              var scaleRatio = focalLength/(focalLength+z);
              this._x = x*scaleRatio;
              this._y = y*scaleRatio;
              this._xscale = -(this._yscale=100*scaleRatio);
              this._xscale *= Math.sin(angle);
              this.swapDepths(Math.round(-z));
         angleStep = 2*Math.PI/numObjects;
         for (i=0; i<numObjects; i++) {
              thumbnail = thumbnails.createEmptyMovieClip("thumbnail_"+i, i);
              myPic = thumbnail.createEmptyMovieClip("picHolder", 1);
              myPic.loadMovie(images[i]);
              thumbnail.angle = angleStep*i;
              thumbnail.radius = 650;
              thumbnail.x = Math.cos(thumbnail.angle)*thumbnail.radius;
              thumbnail.z = Math.sin(thumbnail.angle)*thumbnail.radius;
              thumbnail.y = 0;
              thumbnail.display = displayPane;
              thumbnail.drawBox(_root.thumbnailSize);
              thumbnail.buttonize(i);
              thumbnail.notLoaded = true;
              objectsInScene.push(thumbnail);
         panCamera = function () {
              spin -= 0.001;
              for (var i = 0; i<objectsInScene.length; i++) {
                   objectsInScene[i].display();
         thumbnails.onEnterFrame = panCamera;
         _root.onEnterFrame = function() {
              for (i=0; i<images.length; i++) {
                   if ((_root.thumbnails["thumbnail_"+i].picHolder.getBytesLoaded()/_root.thumbnails["thumbnail_"+i].picHolder.getBytesTotal() == 1) && _root.thumbnails["thumbnail_"+i].notLoaded) {
                        if (_root.thumbnails["thumbnail_"+i].picHolder._width>=_root.thumbnails["thumbnail_"+i].picHolder._height) {
                             _root.thumbnails["thumbnail_"+i].picHolder._yscale = _root.thumbnails["thumbnail_"+i].picHolder._xscale=(100*(1-(_root.thumbnails["thumbnail_"+i].picHolder._width-_root.thumbnailSize)/(_root.thumbnails["thumbnail_"+i].picHolder._width)));
                             _root.thumbnails["thumbnail_"+i].picHolder._y = (_root.thumbnailSize-_root.thumbnails["thumbnail_"+i].picHolder._height)/2;
                        if (_root.thumbnails["thumbnail_"+i].picHolder._width<=_root.thumbnails["thumbnail_"+i].picHolder._height) {
                             _root.thumbnails["thumbnail_"+i].picHolder._yscale = _root.thumbnails["thumbnail_"+i].picHolder._xscale=(100*(1-(_root.thumbnails["thumbnail_"+i].picHolder._height-_root.thumbnailSize)/(_root.thumbnails["thumbnail_"+i].picHolder._height)));
                             _root.thumbnails["thumbnail_"+i].picHolder._x = (_root.thumbnailSize-_root.thumbnails["thumbnail_"+i].picHolder._width)/2;
                        if (_root.thumbnails["thumbnail_"+i].picHolder._width == _root.thumbnails["thumbnail_"+i].picHolder._height) {
                             _root.thumbnails["thumbnail_"+i].picHolder._yscale = _root.thumbnails["thumbnail_"+i].picHolder._xscale=(100*(1-(_root.thumbnails["thumbnail_"+i].picHolder._width-_root.thumbnailSize)/(_root.thumbnails["thumbnail_"+i].picHolder._width)));
                             _root.thumbnails["thumbnail_"+i].picHolder._x = _root.thumbnails["thumbnail_"+i].picHolder._y=0;
                        _root.thumbnails["thumbnail_"+i].picHolder._alpha = 80;
                        _root.thumbnails["thumbnail_"+i].notLoaded = false;
                   if ((_root.thumbnails["thumbnail_"+i].picHolder.getBytesLoaded()/_root.thumbnails["thumbnail_"+i].picHolder.getBytesTotal()<1)) {
    levTextSpace:
    // register root as environment
    Object.environment = _root;
    // create camera object
    this.cam = {x:0, y:0, z:500, dx:0, dy:0, dz:-500};
    // set environmental constants
    this.fl = 1000;
    // create 'space' to which all words will be attached
    this.createEmptyMovieClip("space", 2);
    // center 'space' on the stage
    space._x = 800;
    space._y = 900;
    // a string of words related to the wind
    this.keywords = "no-nonsense  full-service partner  co-creation  innovation  keep it simple  technical expertise  integral design method  successful products  teamwork  designers engineers  design for (dis)assembly  sustainability  ecological  smart  ideation  feasability study  ergonomic analysis  imagineering  trade off matrix  prototyping  consultancy  technology  problemsolvers  open-minded  multi-disciplinary  imagination  creative minds  passionated  user centered  strategy  added value";
    // convert the string of words into an array of words
    this.wordList = new Array();
    this.wordList = this.keywords.split("  ");
    // create one instance for each word in the list
    for (n=0; n<this.wordList.length; n++) {
        // pick a word from the list
        var word = Object.environment.wordList[n];
        var x = random(600)-(300);
        var y = random(400)-(200);
        var z = random(Object.environment.fl*2)-Object.environment.fl;
        // create an instance of the keyWord object
        nombre = "word"+String(depth++);
        initialization = {txtword: word, x: x, y: y, z: z};
        space.attachMovie("keyWord", nombre, depth, initialization);
        trace(nombre);
    this.onEnterFrame = function() {
        this.cam.dz += 5;
        // move the camera to its destination
        this.cam.x += (this.cam.dx-this.cam.x)/10;
        this.cam.y += (this.cam.dy-this.cam.y)/10;
        this.cam.z += (this.cam.dz-this.cam.z)/30;

    change the highlighted text
    picData = new XML();
    picData.ignoreWhite = true;
    picData.onLoad = loadXML;
    picData.load("md_photos.xml");
    function loadXML() {
         _root.createEmptyMovieClip("thumbnails", 1);
         images = new Array();
         for (i=0; picData.firstChild.childNodes[i].firstChild.nodeValue != undefined; i++) {
              images.push(picData .firstChild.childNodes[i].firstChild.nodeValue);
         thumbnails._x = 750;
         thumbnails._y = 75;
         imageLoading = true;
         numObjects = images.length;
         objectsInScene = new Array();
         focalLength = 750;
         spin = 0;
         _root.thumbnailSize = 350/((numObjects)/9);
         displayPane = function () {
              var angle = this.angle+spin;
              var x = Math.cos(angle)*this.radius;
              var z = Math.sin(angle)*this.radius;
              var y = this.y;
              var scaleRatio = focalLength/(focalLength+z);
              this._x = x*scaleRatio;
              this._y = y*scaleRatio;
              this._xscale = -(this._yscale=100*scaleRatio);
              this._xscale *= Math.sin(angle);
              this.swapDepths(Mat h.round(-z));
         angleStep = 2*Math.PI/numObjects;
         for (i=0; i<numObjects; i++) {
              thumbnail = thumbnails.createEmptyMovieClip("thumbnail_"+i, i);
              myPic = thumbnail.createEmptyMovieClip("picHolder", 1);
              myPic.loadMovie(ima ges[i]);
              thumbnail.angle = angleStep*i;
              thumbnail.radius = 650;
              thumbnail.x = Math.cos(thumbnail.angle)*thumbnail.radius;
              thumbnail.z = Math.sin(thumbnail.angle)*thumbnail.radius;
              thumbnail.y = 0;
              thumbnail.display = displayPane;
              thumbnail.drawBox(_ root.thumbnailSize);
              thumbnail.buttonize (i);
              thumbnail.notLoaded = true;
              objectsInScene.push (thumbnail);
         panCamera = function () {
              spin -= 0.001;
              for (var i = 0; i<objectsInScene.length; i++) {
                 & nbsp; objectsInScene[i].display();
         thumbnails.onEnterFrame = panCamera;
         _root.onEnterFrame = function() {
              for (i=0; i<images.length; i++) {
                 & nbsp; if ((_root.thumbnails["thumbnail_"+i].picHolder.getBytesLoaded()/_root.thumbnails["thumbnail_"+i].picHolder.getBytesTotal() == 1) && _root.thumbnails["thumbnail_"+i].notLoaded) {
                 & nbsp;      if (_root.thumbnails["thumbnail_"+i].picHolder._width>=_root.thumbnails["thumbnail_"+i].picHolder._height) {
                 & nbsp;           _root.thu mbnails["thumbnail_"+i].picHolder._yscale = _root.thumbnails["thumbnail_"+i].picHolder._xscale=(100*(1-(_root.thumbnails["thumbnail_"+i].picHolder._width-_root.thumbnailSize)/(_root.thumbnails["thumbnail_"+i].picHolder._width)));
                 & nbsp;           _root.thu mbnails["thumbnail_"+i].picHolder._y = (_root.thumbnailSize-_root.thumbnails["thumbnail_"+i].picHolder._height)/2;
                 & nbsp;      }
                 & nbsp;      if (_root.thumbnails["thumbnail_"+i].picHolder._width<=_root.thumbnails["thumbnail_"+i].picHolder._height) {
                 & nbsp;           _root.thu mbnails["thumbnail_"+i].picHolder._yscale = _root.thumbnails["thumbnail_"+i].picHolder._xscale=(100*(1-(_root.thumbnails["thumbnail_"+i].picHolder._height-_root.thumbnailSize)/(_root.thumbnails["thumbnail_"+i].picHolder._height)));
                 & nbsp;           _root.thu mbnails["thumbnail_"+i].picHolder._x = (_root.thumbnailSize-_root.thumbnails["thumbnail_"+i].picHolder._width)/2;
                 & nbsp;      }
                 & nbsp;      if (_root.thumbnails["thumbnail_"+i].picHolder._width == _root.thumbnails["thumbnail_"+i].picHolder._height) {
                 & nbsp;           _root.thu mbnails["thumbnail_"+i].picHolder._yscale = _root.thumbnails["thumbnail_"+i].picHolder._xscale=(100*(1-(_root.thumbnails["thumbnail_"+i].picHolder._width-_root.thumbnailSize)/(_root.thumbnails["thumbnail_"+i].picHolder._width)));
                 & nbsp;           _root.thu mbnails["thumbnail_"+i].picHolder._x = _root.thumbnails["thumbnail_"+i].picHolder._y=0;
                 & nbsp;      }
                 & nbsp;      _root.thumbnails["thumbnail_"+i].picHolder._alpha = 80;
                 & nbsp;      _root.thumbnails["thumbnail_"+i].notLoaded = false;
                 & nbsp; }
                 & nbsp; if ((_root.thumbnails["thumbnail_"+i].picHolder.getBytesLoaded()/_root.thumbnails["thumbnail_"+i].picHolder.getBytesTotal()<1)) {
                 & nbsp; }
    levTextSpace:
    // register root as environment
    Object.environment = _root;
    // create camera object
    this.cam = {x:0, y:0, z:500, dx:0, dy:0, dz:-500};
    // set environmental constants
    this.fl = 1000;
    // create 'space' to which all words will be attached
    this.createEmptyMovieClip("space", 2);
    // center 'space' on the stage
    space._x = 800;
    space._y = 900;
    // a string of words related to the wind
    this.keywords = "no-nonsense  full-service partner  co-creation  innovation  keep it simple  technical expertise  integral design method  successful products  teamwork  designers engineers  design for (dis)assembly  sustainability  ecological  smart  ideation  feasability study  ergonomic analysis  imagineering  trade off matrix  prototyping  consultancy  technology  problemsolvers  open-minded  multi-disciplinary  imagination  creative minds  passionated  user centered  strategy  added value";
    // convert the string of words into an array of words
    this.wordList = new Array();
    this.wordList = this.keywords.split("  ");
    // create one instance for each word in the list
    for (n=0; n<this.wordList.length; n++) {
        // pick a word from the list
        var word = Object.environment.wordList[n];
    // changing the next 3 lines probably will change where the words appear
        var x = random(600)-(300);
        var y = random(400)-(200);
        var z = random(Object.environment.fl*2)-Object.environment.fl;
        // create an instance of the keyWord object
        nombre = "word"+String(depth++);
        initialization = {txtword: word, x: x, y: y, z: z};
        space.attachMovie("keyWord", nombre, depth, initialization);
        trace(nombre);
    this.createEmptyMovieClip("loopMC",this.getNextHighestDepth);
    loopMC.onEnterFrame = function() {
        this.cam.dz += 5;
        // move the camera to its destination
        this.cam.x += (this.cam.dx-this.cam.x)/10;
        this.cam.y += (this.cam.dy-this.cam.y)/10;
        this.cam.z += (this.cam.dz-this.cam.z)/30;

  • I seem to have multiple problems related or unrelated.  I cannot use Apple Mail for blueyonder and mostly for gmail as both show that the server is off line.  My pop up blocker doesn't work and I am blitzed with pop up windows on nearly every command

    Firstly I am unable to use Apple mail except for hotmail, for blueyonder, gmail or Sky as the server shows as (off line) and I have no idea how to get them on line even though I tell them to go there. 
    My pop up blocker doesn't work and I am blitzed with advertising windows virtually on ever command I make, one seems to be impossible to unsubscribe from. 
    When I am in an email with a web link the web link doesn't work and I get a window saying that I must have a pop up blocker, but if I switch it off it is no different, what does work is switching the "enable Java script off", then when I get to the web site I can't use it until I switch the java script back on.
    I can't do a screen shot either full or partial, when I try it changes the web site that is on screen to another.
    So what have I done that might have caused problems, downloading Yosemite seemed to be the start of the problems.  Since then I have started to install Mackeeper, after checking with a family members who should know, that MacPaw is safe.  I decided that I didn't want to pay the subscription, so went through the uninstall instructions but it comes up as a pop up with considerable regularity.
    My stress levels have gone through the roof with pop ups happening so regularly and not being able to use Apple mail.o can anyone help please?
    S

    Mail troubleshooting - Yosemite
    Troubleshooting sending and receiving email messages
    Troubleshooting sending email messages
    SMTP servers keep going offline

  • BitmapData draw method doesn't work when the project is published as the .swf file of the web applic

    Hi,
            I am totally confused by this strange error. When I tried using the draw method of BitmapData to draw a movieclip symbol of my project, it seems to work fine locally. However, as I uploaded the published .swf file to my web server and launched it as the plugin of my web application, it failed. The source codes as follows,
    function printscreenClicked():void
         //ExternalInterface.call calls a javascript function to print message1
        var bd:BitmapData = new BitmapData(stage.width,stage.height);
        //ExternalInterface.call calls a javascript function to print message2
      bd.draw(stage);
        //ExternalInterface.call calls a javascript function to print message3
    message3 didn't show at all. Instead, the browser console shows "Uncaught Error: Error calling method on NPObject.". My understanding of this error message is that the .swf is calling something crashing, and I believe that bd.draw(stage)is the crashng method call.
    Also, here is my html embed tag:
        <embed src="/tests/videoplayer.swf" id="flash" quality="high" height="510" width="990" scale="exactfit" name="squambido" align="middle" allowscriptaccess="always" allowfullscreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" style="margin: 0px auto;clear:both;position:relative;"/>
    Can someone help me?

    Thank you for your reply.
    I tried stageWidth and stageHeight, but it still doesn't work.
    The draw() methid is triggered when I clicked a screenshot button in my application as follows,
    ExternalInterface.addCallback("printscreenClicked", printscreenClicked);
    function printscreenClicked():void
         //ExternalInterface.call calls a javascript function to print message1
        var bd:BitmapData = new BitmapData(stage.width,stage.height);
        //ExternalInterface.call calls a javascript function to print message2
      bd.draw(stage);
        //ExternalInterface.call calls a javascript function to print message3
    Would you please give me an example of "waiting for Event.RESIZE is good, or just at least Event.ENTER_FRAME"?
    My real purpose in this application is to capture a snapshot of a streaming video. The video is contained in a movieclip object. I tried stage first since BirmapData.draw() doesn't work when drawing the movieclip on the web site. Do you have any suggestion for this situation? Also, is there any good method to find out what happened if the browser have "Uncaught Error: Error calling method on NPObject."?

  • NT service start of weblogic doesn't work (command line start works)...

    Hi,
    We have WL 6 running on NT 4, and the server installed as a NT service.
    We have some servlets sitting in the DefaultWebApp directory, but when we
    start the WebLogic NT service we get an ERROR 400:
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.5 400 Bad Request
    The request could not be understood by the server due to malformed syntax.
    The client SHOULD NOT repeat the request without modifications.
    The log states that the default context did not load properly. Maybe about
    10% of the time, everything works fine
    and we can access our servlets. When the error happens, we can't even
    access the console, it still gives the same error 400. Interestingly, when
    I start weblogic through DOS, it works 100% of the time with no error 400!
    I installed SP1 and I still get the same behavior. I tried resetting the
    config.xml....but sometimes I get the reverse behavior..where the service
    works all the time and the DOS method doesn't work. Could there be
    something with the servlets (they're pretty straight)? Some other parameter
    or setting that I'm missing? Or is this just a bug?
    Thanks for any help,
    Ven

    This is a known bug in the Windows native convenience programs.
    If you start the server with the startWebLogic.cmd script or
    from your own Java command line you'll get farther.
    WebLogic Server 5.1.0 isn't certified yet on the 1.3 JDK because
    1.3 had not been released in production form at the time of
    the WebLogic Server 5.1.0 release. Our experience is that it
    works well enough to do development work. Certification (and
    support for deployment) is targeted for an upcoming service pack.
    Chuck Karish
    Tsung-Wen Tsai wrote:
    >
    Does WLS 5.1 works with jdk or jre 1.3?
    I looked at jdk and jre 1.3 directory and I can't find javai.dll file,
    although javai DO come with jdk 1.1.6.
    I got this error when starting WLS. I changed the JAVA_HOME through
    wlconfig.
    -Tsung
    =============================
    c:\weblogic>bin\wlserver
    Java dll not found. Bad value for JAVA_HOME.
    The system cannot find the path specified.
    Java dll not found. Bad value for JAVA_HOME.
    The system cannot find the path specified.
    loadIt: Java DLL not found.
    The Windows registry is misconfigured
    for the WebLogic Server
    JAVA dll not found: c:\progra~1\javasoft\jre\bin\javai.dll:
    The Windows registry is misconfigured
    for the WebLogic Server
    Can't start WebLogic Server: (Can't start Java VM) err=0x2000001--
    Chuck Karish BEA Systems
    [email protected] San Francisco, CA
    (415) 317-0182 (cell) (415) 364-4692

  • Script doesn't work in task scheduler

    I know it has already posted many times but I have already tried everything and still I can't get it to work.
    The script is a simple send email function and it works if executed from the command prompt:
    powershell.exe -f .\sendEmail.ps1 [email protected] "Test Subject" "Test Message"
    But in the task scheduler it doesn't work and no email is sent. The exit code of the task is 0xFFFD0000:
    Task Scheduler successfully completed task "\SendEmailTest" , instance "{15ff2070-ee25-4b2e-9ae1-274eda0d8c3a}" , action "powershell.exe" with return code 4294770688.
    The task is configured to run under the SYSTEM account with highest privilege, powershell ist configured with unrestricted execution policy, why it doesn't work?
    I have tried also with a simpler task to create a text file
    New-Item c:\scripts\new_file.txt -type file -force -value "This is text added to the file"
    But it doesn't work too, so it should be some other missing privilege somewhere but I couldn't find anything in internet.
    Thanks for any help

    I found another possible issue while looking at a similar problem. I was unable to execute a PowerShell script as a Task Scheduler action, even though the script ran correctly when logged into Windows as the target user and running within PowerShell.
    Task Scheduler would consistently display the 0xFFFD0000 error when I nominated the script in the task's action arguments using what I believed to be normal PowerShell quoting rules:
    -ExecutionPolicy Bypass -File 'D:\full path\to\script.ps1'
    PowerShell acquiesced and Task Scheduler fired off the task immediately and without issue when I changed the quotes I used from single to double:
    -ExecutionPolicy Bypass -File "D:\full path\to\script.ps1"
    Dropping to a command prompt and executing the full command immediately revealed the problem:
    D:\>C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File 'D:\full path\to\script.ps1'Processing -File ''D:\full path\to' failed: The given path's format is not supported. Specify a valid path for the -File parameter.
    Notice the strange use of two single quotes before the path and one single quote after.
    The moral of the story: When feeding the full path of a script to PowerShell as a command line parameter,
    use double quotes!

  • Buckup SQL Script doesn't work

    Hi  all,
    In ECC i want schedule ASE jobs to  dump transaction logs,i do it fellow the note 1588316 step by step .  In  schedule jobs my sql script doesn't work,but it works in sql command line.
    sql script :
    dump transaction DEV using config= 'DEVLOG'
    Anybody can give me some advise to face this issue?  Thanks in advance.
    David Lv

    Hi  all,
    My problem sloved, it's JSagent problem.
    sp_dumptrans not working at dbacockpit @Alcino Melo
    use sybmgmtdb
    go
    sp_js_wakeup "start_js",1
    go
    after start  JSagent  my sql script can run 
    Thanks  all
    David Lv

Maybe you are looking for

  • What is the best way to separate functionality ?

    I have this project where I need to develop a component  for other flash developers to use. The scenario if you are the one who's going to use my "component" is like this: 1) you create a new project 2) you load the provided swf (or include the provi

  • Apple TV bandwidth utilization

    Have my ATV with wireless. What's the average bandwidth utilization (kbps) for Apple TV to project stuffs from ipad?

  • Kernel update problem

    when i try to update my kernel this is what happens. [root@myhost abhi]# pacman -S kernel26 resolving dependencies... looking for inter-conflicts... Targets: klibc-1.5-5  klibc-extras-2.4-1  klibc-udev-116-3           klibc-module-init-tools-3.2.2-3 

  • Aperture 2 and Snow Leopard

    Ok.  I'm REALLY sick of Apple at the moment. Sorry for the rant, but this is ridiculous..... I was running AP2 on Snow Leopard without any problems.  Then I made the MAJOR mistake of trying to upgrade to AP3.  Found it will not work correctly with so

  • Tool bar is disappearing

    Why is my tool bar in Internet Explorer disappearing all the time?  It's very annoying and I have to hover over the bar to close out my windows.  Please help!!