FLASH MX - Bullet Limit
I know its possible to put a limit on how many bullets (which is a MC) that can be on the screen at one time. However, I've been playing with it for about an hour now and can't figure out the right AS. Any help would be appreciated. I am including the swf and the fla. Thanks ahead of time. Hopefully someone can help me. -Matt Marcus-
KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 03-25-2005, 07:06 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
FLASH MX - Bullet Limit
I know its possible to put a limit on how many bullets (which is a MC) that can be on the screen at one time. However, I've been playing with it for about an hour now and can't figure out the right AS. Any help would be appreciated. I am including the swf and the fla. Thanks ahead of time. Hopefully someone can help me.
-Matt Marcus-
CSS & Flash: <li> Items Don't Include A Bullet.
Can someone help me with CSS as it relates to Flash MX 2004? I'm loading external text files and then formatting them with a home-made CSS file (as per one of the Kirupa tut's instructions), but when I try to use the "<li>" HTML code in the text file, it doesn't come across when testing the movie. I have the "Render text as HTML" button enabled, but it's just a hassle, especially when I've loaded up a sample file I did in class which has list tags which work and don't seem to differ from mine in any way. Also, for some reason, text doesn't show up underlined after defining a 'u' style which is defined as "text-decoration: underline". Can someone help me with this? It's already enough work hard-coding "span class=" for every little bold or italicized item, but then having list and underline items not working? I have the font set to Times New Roman, with no font outlines, by the way.
Cheers,
The Red Fall
CSS & Flash: <li> Items Don't Include A Bullet.
Can someone help me with CSS as it relates to Flash MX 2004? I'm loading external text files and then formatting them with a home-made CSS file (as per one of the Kirupa tut's instructions), but when I try to use the "<li>" HTML code in the text file, it doesn't come across when testing the movie. I have the "Render text as HTML" button enabled, but it's just a hassle, especially when I've loaded up a sample file I did in class which has list tags which work and don't seem to differ from mine in any way. Also, for some reason, text doesn't show up underlined after defining a 'u' style which is defined as "text-decoration: underline". Can someone help me with this? It's already enough work hard-coding "span class=" for every little bold or italicized item, but then having list and underline items not working? I have the font set to Times New Roman, with no font outlines, by the way.
Cheers,
The Red Fall
Flash Text Field List. Line Break Makes Another Bullet
Hi yah, got a text field issue.
Bascically I have a dynamic html enabled text box with a list in it. The problem is that if I put a break tag in a list item it puts a line break in the text, but it also adds a bullet point to the beginning of the the new line.
Is there any way to have it not do this? It looks like there are two list items now, but i only want a break in the list items text.
Flash + Xml : The Limit
hi everybody
we are ok now that flash can't create file
but when i've an empty xml file can i add to it nodes from flash (using my_xml.appendChild)?? :
i want to save the position and names of all shapes in a flash movie to an xml file to load them later from this xml file
Is There A Scroll Limit Per Box In Flash 5?
I noticed as I finished a tutorial on scrolling text boxes that only part of my imported .txt file will display.
I went back into my file and ensured the minor html formatting was correct and all my text was on the same line.
Question 1: Does all information in the imported .txt file need to be on a single line opposed to line wrapped?
Question 2: Is there a character or line limit to what will display in the actual text box?
It seems to me most flash scroll boxes I have seen in use are infinite but then I never really paid that much attention.
Please help this struggling newbie.
Thanks in advance,
/web.
Have I Pushed Flash To The Limit?
Basically I am doing a typing word recognition game - which uses words from a text file(200 -300 entries) and makes x amount of phrases consisiting of three words joined togther separated with a space. Except for a user can restrict letters and my code either finds all words in the file which dont contain these letters and uses them or if there arnt enough goes through the whole file and removes the restricted letters from the words and uses them.My code works fine until the array of restricted letters gets bigger and then you are prompted with the abort script message dialog howver when you choose to click no keep running script it works fine.
I think this is a performance issue its looping through the same frame so long flash thinks its in a infinite loop.
question can I either stop flash from pooping up this message, increase the timout value flash has before it determines its unresponsive - or would somehow splitting my code over frames(dont know how yet) will help the situation ie trick flash its busy?
Thanks in advance!
Heres my code for restricting words the second frame on root is actually the game which constructs the phrases etc
Frame1 of my movie clip
// Load Variables
_root.dialog._visible = 0;
_root.words = new Array();
_root.tempwords = new Array();
_root.resWords = new Array();
_root.transfer = new Array();
// Need a function to determine what the current txt file is set to
loadVariables("Dolce.txt", "");
// See if letters have been restricted passed in by servlet
_root.restriction = true;
//Array of restricted words******Will be passed in by servlet
_root.resWords[0] = "a";
_root.resWords[1] = "b";
_root.resWords[2] = "c";
_root.resWords[3] = "d";
_root.resWords[4] = "e";
_root.resWords[5] = "f";
_root.resWords[6] = "g";
_root.resWords[7] = "i";
_root.resWords[8] = "j";
_root.resWords[9] = "k";
_root.resWords[10] = "l";
_root.resWords[11] = "m";
play();
//************************************************** **
Frame 2 - blank frame
Frame 3
// Set Variables
loopno = 0;
array = "";
more = "yes";
// Start Loop
while (more eq "yes") {
loopno += 1;
no = eval ("NewItem"+loopno);
// If no value
if (no eq "") {
trace("j" + j);
more = "no";
// <-- Start chop trailing comma
chop = array.length;
array = array.substring (0,chop-1);
gotoAndPlay (_currentframe + 1);
} else {
// Otherwise write to array
array = array+no+",";
}
}
Frame 4
var names = array.split(",");
var twords = new Array();
//************************************************** ***********/
function wordSplit(s,k,twords){
for(var n=0;n<twords.length;n++){
indexes = "";
notfound = false;
for(var i = 0;i<twords[n].length;i++){
if (twords[n].charAt(i).toUpperCase() != _root.resWords[s].toUpperCase()){
notfound = true;
indexes += twords[n].charAt(i);
}
}
//**** put all words which dont contain restricted letters in array */
if (notfound == true){
twords[k] = indexes;
trace("k="+ k);
k++;
}
}
trace("twords in function" + twords);
return twords;
}
//************************************************** ********
if (_root.restriction == false){
for (var i=0;i<names.length;i++){
_root.words[i] = names[i];
}
}
else{
// RESTRICTION of WORDS containing restricted letters
for (var i=0;i<names.length;i++){
_root.tempwords[i] = names[i];
}
for (var i=0;i <_root.tempwords.length;i++){
found = false;
for (var j=0;j<_root.tempwords[i].length;j++){
split = _root.tempwords[i].substr(j,1);
for(var q = 0;q < _root.resWords.length;q++){
for(var p = 0;p < split.length;p++){
if (split.charAt(p).toUpperCase() == _root.resWords[q].toUpperCase()){
found = true;
}
}
}
}
if (found == true){
_root.tempwords[i] = "0";
}
}
var h = 0;
for (var a=0; a<_root.tempwords.length; a++) {
if (_root.tempwords[a] ne "0") {
var word = _root.tempwords[a];
_root.transfer[h] = word;
h++;
}
}
_root.tempwords = _root.transfer;
//will need to determine minimum needed
trace("The length" + _root.tempwords.length);
var MINIMUMALLOWED = 30;
if (_root.tempwords.length < MINIMUMALLOWED){
trace("not enough to make game!");
twords = names; // add random function here need to restrict number passed to function
for(var s=0;s < _root.resWords.length;s++){
var k=0;
twords = wordSplit(s,k,twords);
twords.splice(-1,1);
}
if (twords.length > MINIMUMALLOWED){
_root.words = twords;}
else{
trace("you have over retricted");
_root.dialog._visible = 1;
_root.dialog.message = "Too many retricted letters to play";
_root.gotoAndStop(1);
}
}
else{
_root.words = _root.tempwords;
}
}
//************************************************** ******end of else*/
trace("***words" + _root.words);
_root.gotoAndStop(2);
//************************************************** *******************/
Flash SWF Dimension Limit
I want to create a web page only in flash, i'm wondering what the dimension of my flash movie i should use if i want to do it for browser who has a screen 1024*768. but i don't want any scroll of the brower in the right side.
can you help me
sylscm
Flash Mx Layer Limit?
bit of a random thing but hey.
i'm developing a little app to alow my users to create a cartoon avatar of themselves for the forums on my website. the app consists of a flash movie with a movie clip called avatar which contains 14 layers with movie clips on them containing a blank first frame with a stop() action and subsequent frames containing a .gif of different types of hair, shirts, trousers etc all aligned on top of each other and controlled by a bunch of buttons on the root layer outside of any movie clips. the idea is that the user selects their bits and then the movie passes variables to a php script that reassigns chosen colours etc and merges a bunch of images to create the avatar image file.
the weird thing is that when people choose more stuff from more than 12 layers, the bottom layers containing stuff disappear.
i've yet to add the functionaliy to change the colour of clothes etc but this will involve adding more layers to the movie clips containing the clothes etc and if layers are already vanishing god knows what's going to happen...
i was just wondering if anyone else had come accross this problem?
Is There A Limit To How Big The Flash File Can Be?
I am dealing with a rather large number of pictures along with an 8 minute audio track and I am sync pictures and such for it and it is quite large and I can't get it to export to .swf right....or .mov or any other for that matter....help?
Time Limit In Flash Mx
Hi! Just wondering...is there a playing time limit in Flash MX? Coz I'm currently working on this presentation which lasts for around 20 minutes. It's a continuous presentation, sort of like a video presentation actually, but I used Flash to make it.
It's got quite a number of scenes, and when i test each scene individually, it works fine. But when I published the whole movie and started playing it, the movie animation automatically stops after around 15 minutes, but the background music continues.
I checked the scene timeline to check if there was any stop action, or any command that will make it stop, but there's none. When I test the scene, it works just fine. I don't know why it stops at the exact same location everytime? I don't know what's wrong with it. Can someone please help?
Video Limit In Flash?
I know that there is a 16,000 frame limit in flash for embedding video, but how long a video is that? 10 min, 15 min?.
Flash Limit Of Levels
Hi there can anybody tell me the number of levels flash supports ? If there is any limit of levels for Flash do tell me. Thanks in advance.
Flash Drag And Limit
I need some help with coding to drag an MC across the stage but limit it from going off the stage. I was able to limit it so it only moves along the x-axis, but I need the mc to stop when it gets to the end. I also am not sure of how I would drag or scroll around the stage once I have zoomed in. As you can see, the limit I set on the y-axis has not prevented me from going anywhere once I am zoomed in. And also, if anyone knows how to stop the mc from jumping when you drag it, that would be great too.
Here's the code I used to limit the y-axis movement:
wall_mc.onPress = function() {
var dragging = false;
this.onEnterFrame = function() {
//stop dragging move mc to limit and drag again
if ((wall_mc.limit2._y+wall_mc._y)<=400) {
//botomm
stopDrag();
wall_mc._y = 400-wall_mc.limit2._y;
startDrag(this);
}
if ((wall_mc.limit1._y+wall_mc._y)>=0) {
// superior
stopDrag();
wall_mc._y = 0;
startDrag(this);
}
Is The A Limit To Scaling In Flash
Im working on a movie at the moment, and need to make an image larger than flash seems to want to let me. By draging the transform handles I can only go to a certain size, and by entering into the transform box I only seem to be ablt to get to %800.
Is this it? or can someone show me a better way?
dabush.
PNG Transparency Limit In Flash 8?
I have a PSD with about 30 layered transparencies. I exported each individual layer as a PNG 24 with the transparent background in tact. I then made identical layers in Flash just like I had in Photoshop, and imported each PNG to it's corresponding layer at which point I converted the graphic to a movie clip for future scripting animations. Once I got to the 24th layer Flash quit recognizing my transparencies and my first Flash layer masked anything else I brought in from layer 24 on....but the layers above remained OK!! I checked and double checked my Photoshop exports and had several Flash "gurus" check my work. Nobody can figure out what is wrong! Is there a limit to the number of PNG tranparencies allowed on seperate layers in a Flash document?
Can You Limit Browser Sizes In Flash MX?
I have a Flash website and I have a link where a browser pops up into a seperate window.
I know how to limit the size in HTML but is it possible to limit the size to say 250 x 100 in Flash?
Can anyone help me?
I would be most grateful if anyone could help.
Limit Input To Numbers... FLASH 5
I'm working on a tool for a client. This client wants the tool to run as a flash 5 swf... Now, I would like to have an input field where users input a number... so I want to prevent them from typing in letters and what else. Since we're talking flash 5 here, I can't use the instancename.restrict function because textfields can't have instance names in FL5. Also, the option of just embedding the numbers is no good either because there's other input fields which use the same font and require letters (thus enabling letters in the number field as well).
Surely there's an easy way to get the input field limited to numbers? And don't tell me to tell the client just to go for flash mx, they won't buy it (despite the figures).
hope someone can help.
Over Coming The 16000 Flash Mx Limit?
the project that i'm working on in flash mx has become longer than 16000 frames.
i've heard that the best thing to do is to split the project into several parts and then put them together as a final product......how do i go about doing this?
someone also told me to put start a new scene as soon as i get to the 16000 limit...my question is making 2 scenes for example will it play them one after the other and how can i not get a "blank" space between one and the other?
thanks in advance
Extending The Flash Over The Object Limit
Hi all,
I'm curious how some pages make the flash extend over the html page. its like the flash object doesnt have limits. Can any one tell me how to do that. thanks
16 Minute Project Limit In Flash?
Is it true that the longest project you can create in Flash is approximately 16 minutes? My client wants a 20 minute presentation of jpgs & multiple videos for a presentation on a CD, which I just think would be a monsterously huge file to work on. Thanks for any input!
16 Minute Time Limit In Flash?
Is it true that Flash can only handle a maximim project limit of approximately 16 minutes? My client wants to create a 20 minute long flash project (not my idea) which includes 100+ jpgs, a 20 minute audio track, AND video. I feel this would be a monsterously HUGE project, that would only slow down my computer immensely. What do ya'll think out there? I appreciate your feedback!!!
Length Of Flash Movie, Is There A Limit?
Hi,
I am working on a flash slideshow with the photos fading in and out with some text randomly placed. I have no problems when the movie is around 40 sec. long, but when it gets to a longer movie, it slows down, and several of the layers start to block and merge when they shouldn't. Is there a limit on the number of layers in use and also the length of time the flash movie will run?
Thanks,
Greg
Is There A File Size Limit In Flash?
This is the first year I am teaching Flash to my 7th graders. Many of them are creating fabulous animations. However, one student created a movie that is almost 13 MB and now it won't open at all. Flash starts to open and then just freezes because the file is so large. Is there a setting in the program that limits the file size? Any suggestions on how to fix this?
One thing I have not taught them (they really got much more into it than I expected!) is how to convert their drawings into symbols. I know this will save file size.
Flash 8 File Size Limit?
Hi,
I was wondering if anyone knew if there was a limit on the size of file you can use in flash 8. The file I am working on is very large and at the moment I make adjustments to it then will save turn off, make a back up, next day i can open the file but when I edit it it says error as I try to save?
I'm not having any problem's with any other flash files so I don't think it is the software flash 8. Very strange any ideas of what could be causing this and any solutions definately welcome!!
Thank you
Flash MX Frame Limit Work Around? :(
Hey Guys,
I'm planning to make a presentation with a video on the side. The video will be of 20 minutes and at 25 frames per second. I will need to show slides on the side as the video is being played on the site. I know that flash MX has a frame limit of 16,000 frames per timelime and was wondering since this video is going to be 30,000 frames how is the best way to work around this problem in flash MX without breaking the video in half.
Thanks in advance,
Najam D.
Character Limit In Flash Forms?
I created a simple guestbook form on my wedding website with an input text area to post comments into a MS SQL database. However, it seems that the longer entries (not sure how many characters but anything longer than a sentence) do not get posted and just vanish into space. Short entries get posted without a problem.
Is there a setting somewhere that can fix this?? I need to fix this ASAP - our invitations went out today!!!!
TIA
Is There A Maximum Frame Limit In Flash?
Hi everyone,
I'm working on an image cd where you can learn about my company and it's products.
The file includes now around 14 scenes with about 800-1500 frames per scene and suddenly in the middle of a scene at the end the movie stops and does not continue.
When I delete an ealier scene, everything works right.
So, is there a maximum frame limit in flash?
Is there anyway to increase it?
Thx for any reply
fad
Flash Player Width Limit
This is a longshot and probably should be in general flash player 9 forum, but nobody reads that thing, and I'm out of ideas.
I'm working on an application that will span multiple monitors - but flash refuses to render content past around 3000 pixels of width. I tried different stage.scale and stage.alignMode settings, I even tried using Jugglor - whatever I do I can't seem to go past that magical width limit. Can anything be done about this at all? Or is that just a limitation I'll have to live with?
Any insight into this welcome.
Flash Movie Dimensions Limit
I'm working on a Flash file that has a long horizontal movie clip I'm scrolling left/right [the actual movie dimension width is ~ 400 px]. However, I appear to be limited by -700 pixels left and 700 pixels to the right of the stage. Is there a way to increase this "workspace" dimension? Thanks.
VIDEOs In Flash: Size Limit?
Hi. I'm using Flash to make video controls...this is NOT for the web, so I don't have to worry about compression issues... however, the video is 1.52 GIGS!!!! I want to embed it into a movieclip... (I need to use embedded video). anyway, is this possible, or will Flash freak out??
thanks...
m.
Flash Script Time Limit
I have a flash SWF which gets embedded in a flex application as an indeterminate loader.
I do not want to add and remove this loader everytime I need to show it, so I have it in the app and I hide/show it instead.
The problem this causes is for the movie to stop 'playing' and it just sits still in frame 0 after it hits the Script Time Limit.
How can I avoid this? Can I set Script Time Limit to 0, or infinity, or something?
Thanks!
Flash URL Limit From XML File - Only 127 Characters?
I want to load a link from an xml file with a long URL (about 160 characters) but the whole URL is not loading up. I found this documentation from the Macromedia site regarding the problem:
http://www.macromedia.com/cfusion/kn...fm?id=tn_15598
But I'm not using the character panel to produce the URL, because I'm using XML. Has anyone encountered this problem? If so, were you able to resolve it?
Please share!
Scene Size Limit In Flash?
I'm using a fairly large image as a background (4000+ pixels width) and flash seems to cut me off at 3700 pixels or so (I can't scroll past that point) is there anyway to get around this?
-Sean
How To Play Out Of Flash Limit File?
I had a little app to do. In fact it's really simple it's about 40 little flash file (.swf) that are playing in loop.
Up to now I make a flash file in which I put the number of scene of my swf (1 to 40) and I put a loader component at the beginning of each scene which play the file(1 to 40). The number of frame change each time. Also i need to set the time which mean if 1.swf during 425 frame I need to put 425 on scene 1...
What's happen is that after 16000 frame flash loop on the scene. So I need a way to bypass that.
What can I do?
xelaxam
Flash Player Width Limit
So I'm working on an application that needs to span across multiple screens, and I noticed that flash players just refuses to draw content around 3000 pixels of width. Does anyone know if there's a workaround for this, or some setting I need to enable?
Thanks a ton
How To Limit Scroll & Zoom In Flash?
Hi All,
I've been referencing the below thread but have hit a bit of a wall.
Title: how to scroll/zoom a map in Flash?
http://www.sitepoint.com/forums/show...77#post1399577
I'm struggling to find any other ref. for this zoom on a map thing. I've based my file on the one posted by Losos (http://www.sitepoint.com/forums/atta...achmentid=6406) and it works great! but I need to limit the zoom size and scroll amount and can't work out why the suggestions in the thread aren't working. I would appreciate any advice.
Flash Mx 2004 125 Component Limit?
I have been creating a very extensive, datacentric web application using Flash MX 2004. This application will have many forms and many, many components on each form. I am just starting and already have 155 components on 4 forms.
My question is, I was browsing the help system and came across the following:
"Use components whenever possible to create interactivity. Put no more than 125 total component instances in a single FLA file."
I am new to Flash so I hope I'm just reading this wrong. This doesn't truly mean my application can only have 125 components does it?? If so, what is my alternative if I want to develop an application with perhaps 500 components(textinput, buttons, forms, etc) or more?
Thanks!
Can You Limit Browser Sizes In Flash MX From A Link?
I have a Flash website and I have a link where a browser pops up into a seperate window.
I know how to limit the size in HTML but is it possible to limit the size to say 250 x 100 in Flash?
Can anyone help me?
Can You Limit Browser Sizes In Flash MX From A Link?
I have a Flash website and I have a link where a browser pops up into a seperate window.
I know how to limit the size in HTML but is it possible to limit the size to say 250 x 100 in Flash?
Can anyone help me?
Flash 5 Form Input Character Limit
Im working on a flash quick search module and was wondering what the best way to limit the number of characters that can be inputed into a text field/box.
ie, ive a dynamic text box and want to limit input characters to a maximum of 2. Any boday have examples and solutions? This has to be coded in flash 5,
cheers.
|