I was created a new project using flash cc html5 canvas and created a movieclip with 200px width and 200px height. I can able to get the properties using this.mc.nominalBounds;. And I tried this.mc.getBounds ();
But it returns null. setBounds also not seems to work.
How to change the width of a movieclip in flash html5 canvas?
3.2k views Asked by Benny At
1
There are 1 answers
Related Questions in CREATEJS
- createJS does not reconize currentTarget
- How to get coverage from React Create App frontend and NodeJs backend by running java Selenium tests?
- Using multiple libraries with one canvas in Adobe Animate
- Need to change text to upper case in JavaScript - createJs
- EaselJS: update tweens as fast as possible while playing MovieClips at 30 FPS
- Creating a path for CreateJS MotionGuidePlugin
- Weird fill + stroke alpha in CreateJS
- Create a BitmapText in PixiJS starting from single .png images where each image corresponds to a char
- How can I force the next tick immediately in CreateJS 1.0.0+?
- How do I over-ride the alpha settings on the createJS Container children?
- keydown event not firing in google sites/wix when using easel.js
- Angular . Problem to create new component
- TweenJS motionguide draw a curved line
- Import external script with angular and storybook 7
- ENOENT (error -4058) during create-react-app
Related Questions in FLASH-CC
- How can I stop a colliding object from continuing falling after several seconds (AS3)?
- Loading SWF in Adobe Animate CC HTML5 canvas
- Vector editor Adobe Flash CC alternatives
- Scrolling on mobile devices using AS3 AIR?
- How to Access a Movieclip variable through a separate Function AS3
- XML Banner Rotator in flash
- How to create multiple colors when expanding circle shape AS3?
- How to Optimize multiple if-else statements AS3?
- Zipping a file and saving it to local disk using Actionscript 3 & FZip
- Saving an image to local disk in Actionscript 3.0
- hitTestObject not working properly within a for loop
- iPhone doesn't show up using Adobe Animate CC
- Flash CC publishig for Android - How to change APK installation icon?
- Moving away object when hit each other
- Animate CC HTML5 attempting to change a global variable by calling a string
Related Questions in FLASHCANVAS
- HTML5 flash canva can't stop my sound with "mouseout" function
- Flash HTML5 Canvas clickthrough, failing Double Click QA
- How to change the width of a movieclip in flash html5 canvas?
- Flash Canvas: Loading a URL into a Movieclip
- how to get html2canvas working in ie8?
- how to disable contextmenu of flashcanvas
- Try use easeljs with excanvas or flashcanvas in ie8
- html2canvas and flashcanvas on IE8 not working
- FlashCanvas drawImage NotWorking
- Supporting and emulatingn HTML5 <canvas> in older IE browsers
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
The
setBoundsmethod is for putting a custom bounds on something, or defining it when it can not be determined (like using the Graphics classes). Fortunately, all symbols from Flash CC come withnominalBounds, which is the combined, untransformed size of the symbol.Using that, you can set the
scaleXandscaleYproperties to size up and down your content. If you want it to be a specific width, just use the nominalBounds to determine a new scale.For example, if the clip is 200x200, and you want it to be 400x400, then:
Hope that helps!