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 best solutions below
Related Questions in CREATEJS
- Easeljs snap to grid
- Issues with resetting an interval
- Audio tag auto play not working in android browser
- Load CreateJS canvas from json data
- Angular and CreateJS not finding the stage element
- createjs - stage.mouseX
- Video in Canvas Will not play WITHOUT undefined object errors
- How to change the width of a movieclip in flash html5 canvas?
- dipatchevent() isn't working in IOS
- CreateJS: Collision implementing problems
- Fixing cross domain issues on a 360 canvas createjs gallery
- CreateJS Events to Javascript events
- detect end of song - SoundJS
- createjs flash cc, separate manifest preloading
- How do I get a one-sided gradient effect for createJS beginLinearGradientStroke?
Related Questions in FLASH-CC
- AS3 - How can objects that appear randomly never touch each other?
- AS3 - How can multiple objects that appear randomly NEVER touch each other?
- Can't interact with tiles in an interactive jigsaw puzzle (Flash CC AS3)
- How to change the width of a movieclip in flash html5 canvas?
- how to fix error 1009 in flash as3
- ActionScript3: removeEventListener with function parameter
- Background music which plays over multiple frames without restarting in as3
- Flash Pro Hyperlink button error
- How can I enable native resolution on iPhone 6 and 6 Plus in my AIR app made using Flash CC 2014?
- AS3 movie clip button is not working
- How to access createJS child from openFL framework?
- How do you get the next element in an array and display that
- How to get rid of the Font Mapping dialog in Flash Pro CC?
- How do i play a moveiclip from the library with a key press
- coloring multiple frames in Flash Professional CC
Related Questions in FLASHCANVAS
- How to change the width of a movieclip in flash html5 canvas?
- Try use easeljs with excanvas or flashcanvas in ie8
- how to disable contextmenu of flashcanvas
- HTML5 flash canva can't stop my sound with "mouseout" function
- Supporting and emulatingn HTML5 <canvas> in older IE browsers
- FlashCanvas drawImage NotWorking
- html2canvas and flashcanvas on IE8 not working
- Flash HTML5 Canvas clickthrough, failing Double Click QA
- how to get html2canvas working in ie8?
- Flash Canvas: Loading a URL into a Movieclip
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)
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?
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!