ActionScript 2.0 :: Specify A MAXIMUM Scale Limit?
Sep 18, 2009How to specify a MAXIMUM scale limit.
Code:
on (press) {
this._root.gmb_mc.rotate_mc1._xscale += 7;
this._root.gmb_mc.rotate_mc1._yscale += 7;
};
How to specify a MAXIMUM scale limit.
Code:
on (press) {
this._root.gmb_mc.rotate_mc1._xscale += 7;
this._root.gmb_mc.rotate_mc1._yscale += 7;
};
How to specify a MAXIMUM scale limit. This is my Code:on (press) {this._root.image_mc1._xscale += 7;this._root.image_mc1._yscale += 7;};
View 3 RepliesHow to specify a MAXIMUM scale limit.
Code:
on (press) {
this._root.image_mc1._xscale += 7;
this._root.image_mc1._yscale += 7;
};
I'm wondering if there is a limit as to how may if else you can put in a function. I have a form that never seems to fire the last if else on the first load. It will work once I've run through the form, and all of the times after that, but never on the first try. In other words, when I test the form for the first time, if # 5 never kicks in. But after the form has sent, I can run the form again and if # 5 will work like I want it to. I did add .tabIndex to the form because it wouldn't originally tab the way I wanted it to and I wondered if this might be part of the problem. I also tried moving the if else statements around, but that didn't seem to make any difference. Does it only read 4 if's at a time?
Here's the code:
// add evenlistener for submit buttonsubmit_btn.addEventListener(MouseEvent.CLICK, ValidateAndSend);
function ValidateAndSend(event:MouseEvent):void{
// if #1
if(company_txt.text ==""){
company_name_mc.gotoAndPlay("red");
[Code] .....
Is there an upper bound to the size of a sprite in as3 / flash 10?
View 6 RepliesI just noticed that the last thing I added won't show up, unless I add it earlier to the display list. But then the last thing in my display list no longer appears. Is there a maximum # of items that can be displayed?
View 3 RepliesIs there a maximum size limit for files being uploaded in Adobe Flex?I am testing it on localhost and can't upload a file of roughly 300MB.Even though I receive the complete event, after I upload the file....I was able to upload a file of roughly 10MB.
View 1 RepliesI have a presentation that I'm trying to create and export to a projector file. My problem is that I have gone beyond the allowed 16000 frames so the presentation stops in the middle and loops back to the beginning.
View 15 RepliesIs it possible to limit the length of live recorded video stream to N minutes/MegaBytes by SSAS in FMS? If the aggregate size of stream outcomes the limit,always make the recorded video file the last N minutes/MegaBytes of the live show? remove the video file and record from the beginning when arriving N minutes/MegaBytes?
View 1 RepliesSo I've got one more problem because the font size limit on 127px I need to scale my dynamic text so it can be bigger. So here the code I tought could work:
this.createEmptyMovieClip("text1_mc",1);
[Code]....
Scenario: main moveiclip with 4 other clips in it. I want the rolledover clip to scale up and all the others to scale down and blur.
Question: What is the most effiecent way to code this. Would it be a "for in loop"? I am trying to minimize the code and would rather not use a whole bunch of if then statements.
I want my flash content to scale when I scale my browser window.
View 5 RepliesHow can I convert the current scale of the instance to 100% so I can easily "visualize" and manage the instance when I modify its scale? Here's the actionscript, it works, but I just want the temp._xscale and temp._yscale to be in percentages, not real numbers.
Code:
USflag.onMouseDown = function ()
{
var temp = USflag;
onEnterFrame = function ()
[code]....
One last thing, what's the tag you have to put that is designed for boxing actionscripts? I'm suing [ code ][ /code ]
My Flash image will not scale.if you zoom in, it gets chopped up. if you zoom out, it has a big blank area.What should I change in order to have this Flash image scale just like the rest of the site? [URL]It is the Flash in the center.
View 1 Replieshow do you set the maximum point of a x value?I tried
var X = MC.x
Math.max(x = 100)
but that didnt seem to work...
McBtnDrag.x = 0;
function init()
{
var X = McBtnDrag.x
Math.max(X = 300)
[code]...
does not work at all :oh wait, Math.Max is something else. Its obvious why that doesnt work
I've been trying to stop an input textbox from adding more lines after I've set it to multiline no wrap and setting max chars. Is there a way for it to stop adding lines?
View 1 RepliesI was trying to display a number: 2893604342.00. But, when i am displaying it it is displayed as: -2893604342.
Following is the code snippet ...
avg += int(totalData[i][col.dataField]);
I have even replaced it with Number, but it's still showing the same negative number.
Using Flash 8, and ActionScript 2, what is the max value that an _x property on a MovieClip can be? For instance, is it okay to position a movieclip at _x = 60000?
View 3 RepliesIs there a way to set a (large) maximum size for SharedObject on my domain so that I can ask the user to allocate a size greater than 100k one time and not need to ask again, even if data is added?
View 1 RepliesAnyone here know the maximum size of a Flex canvas or UIComponent? I know the old MovieClip class was limited to 2800x2800px.
View 1 RepliesI have a movieClip with instance name "rulesScrollbar", that has a width of 9.1px, and a height of 729.6px.Along with it, I have the
code:
Code: Select allrulesScrollbar.buttonMode = true;
rulesScrollbar.addEventListener(MouseEvent.CLICK, scrollbarClicked);
function scrollbarClicked(e:MouseEvent):void {[code]......
But when running the movie, only the first 600 vertical pixels (approximately) are clickable! Does flash have a limitation of which I am not aware that would cause this? There isn't any masking going on, so I'm not sure why only part of the movieClip would be clickable.
It seem that the textFormat.size property has a maximum - attempting to set it to something like 160 doesn't work correctly..
View 2 Replieshow to limit the maximum number you could put in an input textbox? I want the maximum to be 10 and the minimum to be 0.
View 3 RepliesIs there a maximum of text to put in a child of the XML. When i try to put a big quantity of text (big i mean a lot of text), when i load with as3 the text loads only pieces of it. It seems like a memory problem or bug.
View 4 RepliesI have question I use for my website that users can select a few items and I then record what they have selected. The problem is I'm not sure how to add a maximum check of 3 to my array of items? Does anyone have the knowledge to edit the below script to add this restriction?
Code:
item.hit.onRelease = function() {
var item:MovieClip = this._parent;
if (!item.checked) {
[Code]....
How can i actionscript the maximum height (and width) of a movieclip?
View 2 RepliesI have my flash site set to scale in a browser but I would like the movie to stop scaling when the browser is larger than a specific size and smaller than a specific size.
View 1 RepliesAnyone know what is the maximum movie stage dimensions in Flash CS4?
View 8 RepliesWhat is the maximum number of levels for a flash 8 movie?
View 1 RepliesI have an externally loaded SWF, which contains 30+ layers, each with a rather large area of transparency. In my application, I dynamically turn on and off these layers, as I needI've run into an issue where if I have all 30+ layers visible, the transparency "cuts through" the background of my application, and shows the stage's default colour.
View 2 Replies