Jump to content
Search Community

Search the Community

Showing results for tags 'sandbox'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • GreenSock Forums
    • GSAP
    • Banner Animation
    • Jobs & Freelance
  • Flash / ActionScript Archive
    • GSAP (Flash)
    • Loading (Flash)
    • TransformManager (Flash)

Product Groups

  • Club GreenSock
  • TransformManager
  • Supercharge

Categories

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Personal Website


Twitter


CodePen


Company Website


Location


Interests

Found 4 results

  1. Suppose that I have the following code: window.mygs = window.GreenSockGlobals = {}; Modernizr.load( [ { load: [ 'TweenLite.js', 'ThrowPropsPlugin.js', 'CSSPlugin.js', 'Draggable.js', ], complete: function () { window.GreenSockGlobals = window._gsQueue = window._gsDefine = null; // from TweenLite.js line 67 window.mygs.Draggable(...); } } ] ); When I run it, I get this error: Uncaught TypeError: Cannot read property 'greensock' of undefined Draggable.js:795 What am I doing wrong? Is it possible to load a sandboxed version of GSAP asynchronously? I only need it after the page has loaded, so I'd prefer to load it asynchronously. Thank you.
  2. Hi, When using the MotionBlur plugin to animate a MovieClip (that is not the Youtube Player but a local symbol), I get: at flash.display::BitmapData/draw() at com.greensock.plugins::MotionBlurPlugin/setRatio() at com.greensock::TweenLite/render() at com.greensock::TimelineMax/render() at com.greensock::TimelineMax/render() at com.greensock.core::SimpleTimeline/render() at com.greensock.core::Animation$/_updateRoot() The problem is of course that you are not allowed to use BitmapData.draw on any remotely loaded objected (in this case the Youtube Player). The odd thing is that I am not trying to tween the youtube player, I'm trying to tween another completely different (local) element. What I realized is this: If you are trying to motion blur something that is on the same scope/"level" as the youtube player: (child-)level MovieClip Parent 0 Stage - 1 MC to be blurred Stage 1 Youtube player Stage What the MotionBlur plugin does is that it takes the element, and in MotionBlurPlugin.as:369 does: _bdCache.draw(_target.parent, _matrix, _ct, "normal", bounds, _smoothing); Which means that it makes a new Bitmap object and tries to take a snapshot of the MovieClips parent, not the MovieClip itself. In my case this is the Stage (level 0). This - however - means that it tries to take a snapshot of an object (in my case the Stage) which includes the Youtube Player (loaded remotely) and thus gives the error. To reproduce 1. Include the Youtube Player Proxy (or download the example project on from http://goo.gl/NXH5L), 2. Add it to the stage 3. Create a new symbol 4. Add it to the stage 5. Try to use the MotionBlur Plugin on the newly created object Solution Put all your objects that you will tween in an empty Symbol and add that symbol to the stage. That way, when the MotionBlur plugin tries to fetch parent it only gets the newly created Symbol. I don't know if this is something that the MotionBlur Plugin can even fix, that said, this would be nice: try{ _bdCache.draw(_target.parent, _matrix, _ct, "normal", bounds, _smoothing); }catch(е) { trace("The animated object (" + _target + ") can't live on the same level as a remote object (such as a video player). To solve this, put the animated object into it's own empty MovieClip"); }
  3. Hi, I'm developing a flash application that loads random images as thumbnails from a site. When you click these images, you get a big preview of them. I'm working with debug version 11.2 in Flash Builder, and everything works fine, even in the normal standalone player, but when a friend is trying to load the images with flash player 11.3 (standalone version), he gets a security error 2048. The strange thing is that he gets the issue when he tries to load the thumbnails, BUT he CAN load the preview image without this error. Here's a piece of code: Loading the preview: private function loadPreview(id:String):void { new ImageLoader("http://www.site.com/" + id, {name:id, onError:previewError, onProgress:previewProgress, onComplete:previewComplete}).load(); } Loading the thumbs: private var queue:LoaderMax = new LoaderMax({auditedSize:false}); private function loadSequence(total:int = 20):void { for(var i:uint = 0; i < total; i++) { queue.append(getThumb()); } queue.load(); } private function getThumb():ImageLoader { var id:String = getRandomID(); if(queue.getLoader(id) || queue.getContent(id)) { return getThumb(); } return new ImageLoader("http://www.site.com/" + id, {name:id, onError:function():void{getThumb().load()}, onComplete:thumbComplete}); } Thanks in advance, Thomas
  4. I'm experiencing a sandbox error when trying to load images is the ImageLoader. I understand why I'm getting the errors, The crossdomain is not under my control. I read in the documatation that; "By default, the ImageLoader will attempt to load the image in a way that allows full script access. However, if a security error is thrown because the image is being loaded from another domain and the appropriate crossdomain.xml file isn't in place to grant access, the ImageLoader will automatically adjust the default LoaderContext so that it falls back to the more restricted mode which will have the following effect:" I'm wondering is anyone know how to get around this, so I can load the image without a crossdomain file?
×
×
  • Create New...