Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




StartDrag() Boundary Limitation



Hi,Is it possible to use a non-rectangular boundary for the startDrag() method?



Adobe > ActionScript 3
Posted on: 06/30/2008 10:02:28 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Dynamic Boundary For Startdrag
i'm making this application where user can drag an image around, they can zoom in on the image as well..

the problem i'm facing now, is setting the boundaries for startdrag to work when the image is zoomed in or zoomed out. how do i do this? is it possible?

AS3 Limitation
Hi,

Could you tell me the limitation in AS3 ? For example, how many "Sprite" can i use in an another "Sprite" ? Where can i find all limitations in the langage AS3 ?
Thanks

Limitation Of Instances
I've searched the forum for help in modifying instances without affecting the symbol (where the symbol is a complicated MC with buttons, actionscript, text, etc). However, I still cannot find my answer. Here's my scenario:

I'm using Flash to create an online map for a town. For each building in the town, I place a Flash pop-up menu (a MC with buttons, text layer and actionscript) to display the occupant's names. Clicking on the names will lead me to another scene showing the occupant details (this is where the actionscript comes in).

Now, each of this pop-up menu will have different text layer and different actionscripts. So, if I have 100 buildings, must I create 100 symbols? It's not very efficient ain't it? Is ther a workaround?

Thanks.

Size Limitation?
Hello,

Once again i turn to you flash experts for a little problem i've encountered. i’m trying to do a horizontal image that slides on an horizontal axis (depending on the chapter in which you are in) sort of like on http://www.gsk.com . The problem is that my image would be 4024pixels long and 465pixels high and apprently flash will not tolerate as big an image ( - it seems that the longest image accepted would be 2500pixels long. Is this true or is there something to do in the page setup or something like that?

Thanks for your help and time.
Nice day to all
priff

Is There A Limitation To Depths?
I was curious before I took a lot of time and effort... is there a limitation to depths... how many depths can there be??? currently I am using 1006... is there an infinate amount of depths available in activescript???

Thanks,
Carlos

Frame Limitation ?
hi all~

does anyone know there is limitation on frames length ? i'm developing a project which has an animation with over 30 thusand frames, when i publish it the movie will stop at 16000 frame or so and i dont know why, i'd really appreciate for any help !!!

GetUrl Limitation?
I am trying to use the GetUrl Actionscript method to pass back a very long string to a javascript function. Problem is when the string is over about 512 characters the function call just doesn't happen. Is this a flash or browser limitation? Or am I just doing something wrong.


thanks,

Does Flash Has Limitation ?
Hi all,
am using Flash Mx 2004. I have a strange pbm.
Can anyone tell me dat does flash has ny height limitation ?
Coz if i'm trying to render movieclips beyond 4000 px it doesn't render any controls (i;e components), graphics even lines.
Its rendering lines graphics everything very fine upto 4000 ince it reaches 400 px everything got vanished except Dynamic texts...

Anybody knows yor any solution for dis ? please it wud be

Thanks
Dapps

Size Limitation ?
any knows is there a size limitation for a movieclip ?

the thing is, i try to move a movieclip which size is very huge, ( > 200000 * 150000 ) and everytime it gets moving it will be shaking and shaking. i dont know why, anyone could figure it out ? one million thanks !!!

Limitation For Graphics
hi friends,
anybody knows what is the maximum file size of the SWF?..like 10MB ...and is there any limitations for using the movieclips in the swf.

One more doubts - is there any procedure to sync the audio in the swf.

please give me ur valuable suggestions.

Thanks in advance.
Karthick Raj.S

Frame Limitation ?
hi all~

does anyone know there is limitation on frames length ? i'm developing a project which has an animation with over 30 thusand frames, when i publish it the movie will stop at 16000 frame or so and i dont know why, i'd really appreciate for any help !!!

DuplicateMovieClip Limitation ?
see following code.
I'm creating an on-the-fly MovieCLip, in which I draw something and i create a subclip in which i also draw something.
Using the duplicateMovieCLip method, I duplicate tha main clip5 times ... and I only see the drawing of the main clip in the duplicates

My conclusion would be : when creating on-the-fly clips, the duplicateMovieCLip only duplicates the content from the main parent clip. Is that true ? (i hope not in fact )

ActionScript Code:
_root.createEmptyMovieClip("mc1", 1);
_root.mc1.createEmptyMovieClip("top", 1);
//draws something in the main clip
drawRectangle(_root.mc1, 100, 100, 1, "0x000000", "0x000000", 10);
//draws something in the subclip
drawRectangle(_root.mc1.top, 50, 50, 1, "0x000000", "0xff0000", 100);

//duplicates it 5 times
for (i=0; i<5; i++) {
    _root.mc1.duplicateMovieClip("dupl"+i, i+10);
    _root["dupl"+i]._x = i*105
    _root["dupl"+i]._y = 110
   
}
//-----------------------------------------------------------------------
//draws a rectangle
//-----------------------------------------------------------------------
function drawRectangle(pTarget:MovieClip, pWidth:Number, pHeight:Number, pLineWidth:Number, pLineColor, pFillColor, pFillAlpha):Void {
    pTarget.beginFill(pFillColor, pFillAlpha);
    pTarget.moveTo(0, 0);
    pTarget.lineTo(pWidth, 0);
    pTarget.lineTo(pWidth, pHeight);
    pTarget.lineTo(0, pHeight);
    pTarget.lineTo(0, 0);
}

Dimension Limitation
I need to make a movie clip that is 15,168 pixels wide. Flash does not appear to be capable of doing this. I also need to import video that is 2048 pixels wide x 300 pixels high. Adobe can't anticipate someone using flash like this, so I'm not complaining, but hope they read this and make a future version that can handle largeness like this.

Search Limitation ?
Is there anyone who can suggest me with an alternative code to enable in-swf searches ? I've developed my current code a year ago and although it works, it has a limitation. I've been developing kiosks for national competitions, schools, etc...My current code is fairly simple, mainly using the array method. Limitation I'm currently facing with this code is :-

The user must include the exact terms (spelling, spacing, etc.) as the search terms in the array. For example, in my array I've included the term "apple". The user must type the exact word as the array, which is "apple", and the rest of the code will do its work and displays the intended content. If the user, types "Apple", it does not match the term in the array and so brings a false boolean value.

I've solved the problem by adding multiple variations of the same term in an array, like ("apple","Apple","APPLE"....), but the whole process is tedious and time-consuming. I would appriciate suggestions to an alternative in order to improve the code. Thanks.

What Can Be The Limitation Of Flash
http://www.ecodazoo.com/

what is the technical aspect of this site

is this site made in flash?

Add Scene Limitation
Hi,
What's the limitation of adding scene? I have a movie with 45 scenes to go but I'm facing the problem of jumping from 1 to another started from scene 27...Anyone know what's the prob and solutions?

Thanks alot

mee

Could This Be One Flash Limitation?
guys... is there any way of capturing _xmouse or _ymouse positions in decimal numbers?


putting this situation in a simple test, lets just consider this piece of code below.

this.onEnterFrame = function() {
trace(_xmouse + ", " + _ymouse);
}

... in result, flash only output integer numerals.


all i want to get is my mouse position in a decimal precision, why on earth i can't?... could this be a limitation of flash?

AttachMovieClip, Limitation ?
Hi everybody.

Allright, in a personnal project i use the 'AttechMovieClip' funtion in order to change the menu in my interface.

There is submenus (mcs) in the menu (this is the mc that i change by using attachmovieclip)

menuHolder
|------- Menu1
|------- submenu01
|------- submenu02

when i do an attachMovieclip, it changes the menu but seems to erase the instances names of my submenus clips contained in my menu:

menuHolder
|------- Menu2
|------- ?? (The submenu is there but no instance name)
|------- ?? (The submenu is there but no instance name)

Can someone tell me how can i keep the instance name of movieclips place in a movieclip that's been change using the function attachMovieClip.

Thanx;

Quantity Of Movieclips Limitation
Hi!
I make now a project where flash shows a curve according coordinates,
that it becomes through XML. I try to make it using duplicateMovieClip and clip is one small point. Now question: is any limitation exist of the quantity of Movieclips? It's seams, that I'll have 5000 of it.
And one more: as I understand, there is no possibility to draw a line between to points according coordinates from XML, am I right?
Thanks.

Image Size Limitation?
Hi,

I having trouble displaying an image (draggable movie clip in a window), in Flash MX, that is 2048 x 3069 pixels. Does Flash MX have a limitation on the file size or dimension size of an image? I get either a red square or severly blurred lines. I need to show it at that resolution. ANy have any experience in this or know if there is a max image size allowable?

Thanks!

-Z

Is There A Frame Rate Limitation.....
In IE6 or any other browsers etc.... ?
Anyone know?

Passing An Array Limitation
I have come into a problem... I am passing an Array with GetURL to a database(lotusNotes) with JavaScript... It works when the Array is small (90 values) ... however it does not work when the array is larger (180 values).... basically when the array is passed it converts to a string... is there an IE limitation???? just curious... any suggestions???

Thanks,
Carlos

Another Workspace Limitation Thread
Hi all,

Well, I searched the forum and found out that there's no easy way around the maximum workspace size, but I've got a rather unique problem and am not sure how to circumvent this...

I am keeping a character stationary in a world that scrolls in different directions around him, using a complicated motion guide. (So the motion guide is just the horizontal/vertical reflection of where the character would be moving, and the backdrop instead tweens along that guide.)

The problem is that the guide is very large and extends beyond the workspace... so when it comes to setting up the keyframe at the end of the tween, I have no way of "dropping" the hotspot of the backdrop to the tail-end of the guide.

If I temporarily shift that area back onto the workspace it does me no good, because when I move the guide back to its correct position the backdrop won't go with it.

Has anyone dealt with this problem before? Any ideas on how to circumvent it?

Thanks,

Dan.

GetURL + Fscommand Limitation
In flash as1, there seems to be a character limitation for the getURL and fscommand methods. I believe getURL only allows a paramater of up to 512 characters, and fscommand is about the same.

Does anybody know of a work around, to call a javascript function, without this character limitation?


Thanks in advance..

Post Data Limitation?
When trying to post a bunch of data to my server from within flash (extreemly large string value)
I E:
Http://www.myserver.com/index.php?thisvar=a bunch of text that keeps going and going and going and going...like a paragraph full or a few paragraphs

The text gets turnicated durring the post. is there a limitation on how much data can be in a post to a php script and if yes, is there a work arround?

Interface Problem.. Or Limitation In AS3
This is easily possible in other languages, I can't understand why it's not possible with AS3. Is this possible in AS3? Or maybe there is a workaround?

I have an interface named ITest which has got the following code:


Code:
public interface ITest
{
function get mc():DisplayObject;
}
and then I have a class which implements this Interface.


Code:
public class Test implements ITest
{

public function Test() {}

public function get mc():MovieClip {
return null;
}
}
As you can see, it implements a method mc():MovieClip. Now MovieClip extends DisplayObject, so the class Test should be correctly implementing the interface ITest. All MovieClip's can be casted to DisplayObject so by having a method which returns a MovieClip, it should still satisfy the interface.

Still, the compiler complains about that, that the interface is not implemented correctly by the class Test. Is this possible in AS3 to do something similar or do I have to explicitly implement a method which returns an item of type DisplayObject and not of any other class which extends directly or indirectly DisplayObject (like MovieClip, Sprite etc...)?

You can find attached zip file to replicate the error and get better idea of what I am explaining.

Work Space Limitation
i don't know if anybody else has had this problem, but i am trying to assemble a fairly long movie clip. what my problem is - is that i don't have a sufficient amount of work space to even assemble my movie clip. does anybody have an idea on how to expand my workspace, so i can complete my movie clip. i would very much appreciate any help on this issue. Thanks,
jeff bergeron

Movment Limitation On Objects
In the game im working on, i need a way to easily limit the movment of the PC without having to mess with any coordinates. The way i have started doing this is to put four lines around an the object i want to restrict movement into. In those lines i hvae code, like this for the left hand side one:


ActionScript Code:
onClipEvent (enterFrame) {
    if (this.hitTest("_root.pc") && Key.isDown(Key.RIGHT)) {
        setProperty("_root.pc", _x, _x=_x-5);
        setProperty("_root.we", _x, _x=_x+5);
    }
}
where "pc" is the moveable object and "we" is the blocking line
for the movement of the pc i use this:


ActionScript Code:
onClipEvent (enterFrame) {
    if (Key.isDown(Key.UP)) {
        setProperty("_root.pc", _y, _y=_y-5);
    }
}
onClipEvent (enterFrame) {
    if (Key.isDown(Key.DOWN)) {
        setProperty("_root.pc", _y, _y=_y+5);
    }
}
onClipEvent (enterFrame) {
    if (Key.isDown(Key.LEFT)) {
        setProperty("_root.pc", _x, _x=_x-5);
    }
}
onClipEvent (enterFrame) {
    if (Key.isDown(Key.RIGHT)) {
        setProperty("_root.pc", _x, _x=_x+5);
    }
}

This almost works, but the pc ends up getting centered on the line, not sure why. I need it to merely contact the line, not go over it.

Is this at all possible?

I have also posted an example to see just what ive done so far

Thanks so much;

|/|.|/|.

Problem With Character's Limitation In URL
HI,

I have a problem with the character's limitations in URL.
I make a SendAndLoad to retrieve my variables (URL and legend). I put this in a dynamic text, but the URL is too long, and flash cuts it.
I've seen there is a solution (asfunction:bigUrl), but it doesn't run with a dynamic text.
Is anybody got a solution?

Workaround Around FileReference Limitation
I have the following problem:

I am uploading a file using FileReference and as far as I can find, it doesn't let you send any additional post variables, you can only send get variables by manually appending them to the recieving .php file's url.
The problem is, that this apparently means that no post headers that are otherwise sent automatically while running the flash from a browser, like cookies, are sent either. Which means that you get no session information on the php side.

Now.. I must have session information on the php side.. Especially since the php guy's response to my explaining that I can send headers with LoadVars but am uploading with FileReference and that the two don't have the same methods.. was "I don't care how you do it, just send me the session info! If you can send headers you can send post variables!"

So now.. is there any way to do this? Can I somehow pipe the FileReference through LoadVars, so I can have both file upload and control over http headers? Since the uploaded file is sent by post, I am wondering if If I can somehow manually post the file... beats me how, though.

Or is there some other way?

LoadVars() Limitation On Filesize?
Hi All,
I'm having an issue with some actionscript regarding the amount of text I'm able to load into a scrolled textbox. I've followed Kirupa's tutorial, and it works for the most part. The problem is that this will be a CMS (Content Management System) and I don't want my client to write so much that it doesn't show up. I've tested using Lorem Ipsum up to 15k, but the problem is that I don't even get 5k worth of data even though my text files have well over that in them (tried it with different files).

Here's my code (slightly modified from Kirupa's, but the same thing essentially):


---------------------------------------------
datacore = new loadVars();
datacore.load("company.txt");

datacore.onload = function() {
copy.text = this.datatext;
}

stop();
---------------------------------------------

(The stop action is there to stop it from playing right into the next frame labled area).

I'm getting approximately 4, maybe 5k worth of data from this text file, but definately not the whole thing - it just stops after a certain amount. I've tried it with 2 different files, both of them stop in about the same place bytesize-wise.

Any thoughts?

Thanks everyone.

Javascript Popup Limitation?
Hi attaching the fla. It´s a meny with a MC and inside the MC another MC and inside that a button.

Now as I´ve always done before I used this AS to make the pop up. This is the button code.


ActionScript Code:
on (press) {    _parent.gotoAndPlay("out");}on (release) {    getURL("javaScript:popup();");}


And of course this in the html page

[as]
<SCRIPT LANGUAGE="JavaScript">
function popup() {
window.open("popup.html","","height=500,width=700, scrollbars=yes,left=0,top=0");
}
</script>
[as]

I thougt the javascript was "global" or I´m I missing something.

*edit* the "about in my on (release) code is supposed to be Javascript don´t now why it interpret it to about?

Javascript Popup Limitation?
Hi attaching the fla. It´s a meny with a MC and inside the MC another MC and inside that a button.

Now as I´ve always done before I used this AS to make the pop up. This is the button code.


ActionScript Code:
on (press) {    _parent.gotoAndPlay("out");}on (release) {    getURL("javaScript:popup();");}


And of course this in the html page

[as]
<SCRIPT LANGUAGE="JavaScript">
function popup() {
window.open("popup.html","","height=500,width=700, scrollbars=yes,left=0,top=0");
}
</script>
[as]

I thougt the javascript was "global" or I´m I missing something.

*edit* the "about in my on (release) code is supposed to be Javascript don´t now why it interpret it to about?

Size Limitation In Flash?
Hi,
I'm relatively new to Flash.  My question is...does Flash(particularly MX)
have a file size limitation?  I'm working with a Flash movie that's a few
hundred MB.  It's doing all sorts of weird things---slowing down, bitmaps
are taking on a reddish tint, etc.

Please let me know if there is a maximum file size for a Flash movie.
Thanks.

manfishj

Local Connection Limitation
I have a problem with local connection. It works fine on one machine, but when I try to open it on another local machine, I get nothing. It is only registering on one machine at a time. Is this a common problem? Am I missing the point of local connection? If so, are there any recommendations for having two swfs talk in one .html page?

Thanks.

#include File Size Limitation?
when i try including an external .as file using #include that is larger than 69,307 bytes, the actionscript doesn't get included. but if the file is 69,388 bytes or smaller the actionscript loads just fine. is there such a thing as a file size limit for .as files that you are going to unclude? Or along a different track, is there a limit on how much information you can put into an array?

Limitation Of Number Of Variables Passed
Does anybody know if there is a limit on number of Variables passed in to Flash? Is there a limit on values that are passed in the string? Please let me know if there is any documentation about this stuff. Thanks

Flash Player -- (memory Limitation Etc Etc)
is there a way to free up memory used by flash player before end of one swf files calls another to play.... (i had this project sometime ago, that everything would play fine on the first run,, but on the second,,, the music would go funny,,, and half way through the second run loop it would just pack in)

and in case you are wondering,, yes it was around about 60 Meg in total

infact it was so big initially that to stop flash mx from crashing i had to split it into four and despite my continues advice to the client he wanted all the files sequence to loop again (and again and again,, like someone is actually going to watch from start to finish for 45 minuts pages of info and gona say "lets do that again)....

Dynamic Textfield Size Limitation?
Hi,

I have a movie that loads text from a text file into a dynamic textfield in a movieclip. It is set up to look like a window(not resizable, long and narrow) with a scroller. The problem that I am encountering is that I can no longer resize the textfield to accomodate the amount of text that is being loaded in. That is Flash seems to reach a limit where zooming out no longer helps and I no longer have the option to stretch down the field so that it would accomodate the text. I can change it's height in the property panel but that doesnt seem to work correctly. I dont know if the textfield is being filled as I cant seem to scroll down far enough...

Has anyone else experienced a similar problem? Know of any solutions?

Thanks,
Yvette

Limitation With Video On Web Page And GetURL?
I have a video that is set to play automatically when a web page is opened.When a user wants to go to another page of the site I'd like to keep it in the same window as the looping video but access another .html file. I tried this but it only opens in another window.

Here is the code I'm using for the individual button
abt.onRelease = function(){ downState(this);
my_ns.close();
getURL("newpage.html","_blank");};

when I try the same thing using "_self" nothing happens.
Is there some sort of limitation with video and get URL I'm missing here?

Limitation In Length For Sending Variables?
Hello.

I am setting up a little thingie where I end up sending quite a long string to a .PHP script which should save it as a file on the server.

I am sending things using GET in the format [scriptname.php?whatever=longStringContents]

Now everything works just perfectly until the string reaches a certain length.
My tests so far show that it still works when the length is 5084 characters long, but it does NOT work when the length is 6078 characters long.

Does anybody know if this makes any sense. I have in the back of my head a memory of reading somewhere about a String length limitation in Flash. But I am unable to find it at the moment.

I guess what I want to find out is if THAT is the issue, or is it a more general thing such as the limitation would not be within flash, but within sending with GET or sending with any method.

Thanks a lot beforehand

Limitation In Loading Jpeg Files?
Hi

Does anyone know if there are any limitation of the pixel size for a image, when you load it with loadMovie?

I’m trying to load a large jpeg file into my flash movie, the image has a size of 4866X3412 pixels, when I’m loading the image into my flash file with loadMovie i only get a image with 2880X2880 pixels.
When i look at the image, it is cropt in the right and bottom side.

Limitation Of X,Y Coordinates Found In Flash MX
Hey all,

I have seemingly come across what appears to be an instance/symbol placement limitation on the Flash stage. I have imported a fairly sizable graphic of 3572px wide x 200px high on the stage and when I modify the horizontal placement of the instance (x axis) to anything beyond -2890 pixels, Flash returns an "Invalid size and placement" error (which is not even listed on the Error Messages page within the help system). The interesting thing is that if I select the instance and move it with the left arrow button, it will go beyond -2890 pixels, though it doesn't rendor the Flash piece whence it has been compiled into an swf. (Note: I am using Actionscript to slide the image across the stage when the view selects a button :: viewable at URL). I tried adjusting the coordinates on a small graphic the same pixels out and the same error occurs, so I don't believe the issue is related to the size of the instance.

My hope is that one of you can put an instance or graphic on your stage and test the coordinate limitation. I suggest starting around 2500px and moving up by hundreds until you find it the same error. Also, if there was some sort of documentation of the limitation, that would also be super.

Thanks for the Flash help,

Michael
Amplified Content, LLC

Local Function Variables? Limitation Of Actionscript?
I've got a recursing function [as in it can be called by itself or by another function it calls] as part of an AI routine in a little game I'm making.
I'm finding that the variables that I want to be local to the function keeps getting screwed up by the later iterations of the same function.
Is there a "local" or "my" command in flash so that if a function recurses, the variables that should be local to the function won't get altered by the subsequent function calls?
I know how screwy of a practice it is to recurse functions, but it's the most efficient method in my case.

How To Deal With Flash 256 Levels Of Recursion Limitation
Hi,

I am working on an dynamic flash component. I got data from xml and based on that data i am creating movieClip.

Now i want to place the movieclip on unique place, for that i had implemented some logic using currently created movieclip hitTest with already placed movieclip.

This will work fine till the data from xml is small in length. But when the number of data is incresed in xml. I got an error as ..

"256 levels of recursion were exceeded in one action list.
This is probably an infinite loop.
Further execution of actions has been disabled in this movie."

Is there any way to fix this ?

Thanks in Advance

2880 Pixel Limitation In Flash MX2004
Hi,

I'm designing flash content for a large 42" plasma display, and would prefer the background resolution to be set at 5120 x 3840 pixels, but Flash MX2004 apparently limits the width and height res to be 2880 pixels. Any suggestions as how that can be changed?

Thanks.

Ben

Limitation Of Levels In Flash Action Scripts?
i got a output when i tested my movie it says -

"256 levels of recursion were exceeded in one action list.
This is probably an infinite loop.
Further execution of actions has been disabled in this movie."

is there anyway i can stop it from looping and enable further execution of action for the movie?

2880 Pixel Limitation In Flash MX2004
Hi,

I'm designing flash content for a large 42" plasma display, and would prefer the background resolution to be set at 5120 x 3840 pixels, but Flash MX2004 apparently limits the width and height res to be 2880 pixels. Any suggestions as how that can be changed?

Thanks.

Ben

Car Boundary
Hi, Im new here. I just tried the car movement tutorial and I can't get the boundary to work.


// here is where the hittest is for the boundary
speed *= .98;
x = Math.sin(_rotation*(Math.PI/180))*speed;
y = Math.cos(_rotation*(Math.PI/180))*speed*-1;
if (!_root.land.hitTest(_x+x, _y+y, true)) {
_x += x;
_y += y;
} else {
speed *= -.6;
}
}


the 'car' seems to just go through the boundary. Any help would be appreciated.

Copyright © 2005-08 www.BigResource.com, All rights reserved