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




Unwanted Red Lines



Hello everybody,
I created a graphic with Illustrator and imported it into the library of my Flash movie. The problem I'm having is when that graphic is converted to a button symbol I get red lines on areas where my graphic should show something round. The weird thing is that those red lines aren't shown when the symbol is not a button but rather a graphic.

What can I do to get rid of those red lines?



Ultrashock Forums > Flash > Flash Newbie
Posted on: 2005-06-04


View Complete Forum Thread with Replies

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

How To Find Number Of Lines Of Dynamic Text...and How Many Lines In Textfield
is there any way of finding out how many characters will fit in a dynamic textfield?

I have a textfield that is dynamically loaded with text. Sometimes the text is long and i need scroll buttons, but when the text is short i would like not display the scroll buttons.

How can i figure out if text is short enough not to display the scroll buttons?

oh..to make it even more complicated; the font of the text is not always the same. I use textformatting to display header-like lines in the textfield.

Bad Images - Straight Lines Are Jagged Lines - Why?
Hello -

Wondering if anyone had a solution --- I have some images for a portfolio - almost all of them have a diagonal line that's supposed to look straight, and in flash it's looking jagged and wiggly.

I began with 300 dpi images - saved them to the proper size, no compression, saved PNG's, then imported to Flash with lossless (jpg,png) setting, created Graphic Symbol with all graphic information in the upper left quadrant, and it is in an even space on the stage (no 113.4, but 113.0)....

I did a lot of research to make sure I got the best quality images & have taken all of these steps and it's still coming out crappy....

Any ideas? Much appreciated...

Some Problems Drawing Lines Over Other Lines...
Hi.
I'm designing a character for a movie I'm gonna make, but I'm having some trouble. I recently decided to change the colors of the lines I used, so I switched them around a bit to match the fills but some of the lines I changed the color of now overlap the lines that are supposed to be in front. I tried to draw the 'good' color over them again but at the moment I release the button the lines I draw disappear again and the others overlap them. Any help? I'm using mx 2004.

Thanks in advance

Lines, Lines, Lines....and Their Movement...
How do i make a line to move, grow, shrink, follow a path...i thought about masking but i believe there must be an easier way of doing it via actionscript...am i right?

please help...
Thanx a lot for your time...

:eek:

Unwanted Sound
I have a sound in the movie but it is only supposed to go off at the end of the time. For somereason it goes off when ever the movie goes between scenes. here is the movie if ne one has an idea I can send you the code or just tell me. thanx. http://www.sowebdesigns.com/mini/auto_scoreboard.swf

Unwanted Characters
This is my first time dealing with countdowns. I have my code working and everything is fine until I preview my movie. I just want the movie to look like this:

00 minutes 00 seconds

I have more than just minutes and seconds but you get the idea. The only problem is that when I view the movie it puts a hyphen in front of the time remaining:

- 00 minutes 00 seconds

Here is my conde:


Code:
now = new Date();
war3 = new Date (2002, 07, 015, 23, 59, 59);
days = (war3-now)/1000/60/60/24;
daysRound = Math.floor(days);
hours = (war3-now)/1000/60/60-(24*daysRound);
hoursRound = Math.floor(hours);
minutes = (war3-now)/1000/60-(24*60*daysRound)-(60*hoursRound);
minutesRound = Math.floor(minutes);
seconds = (war3-now)/1000-(24*60*60*daysRound)-(60*60*hoursRound)-(60*minutesRound);
secondsRound = Math.round(seconds);
if (secondsRound == 1) {
sec = " second ";
} else {
sec = " seconds ";
}
if (minutesRound == 1) {
min = " minute ";
} else {
min = " minutes ";
}
if (hoursRound == 1) {
hr = " hour ";
} else {
hr = " hours ";
}
if (daysRound == 1) {
dy = " day ";
} else {
dy = " days ";
}
timeRemaining = daysRound+dy+hoursRound+hr+minutesRound+min+secondsRound+sec;

tellTarget ( target ) {
}


I don't know if the problem is in this code or not, but it is the only thing I can think of. Thanks for your help.

Unwanted Flickering
Howdy!

I got a problem. I am working on a flash movie, sort of a sci-fi series. In the first scenes I include some spaceships flying above a futuristic city. The problem is that when the ships fly by, the background behind them flickers slightly. Not much, but annoying anyway.

The background is an imported jpg picture and everything else is symbols drawn in flash.

What can I do to prevent this flickering effect?

Unwanted Shift In Pic
I'm having a problem with a shift or small movement in my background pic. It doesn't happen in the .swf file when you look at it, but it does when you look at is via the html file. The shift occurs only in part of the pic, and it happens immediately following a motion tween that fades in the background (changing the alpha). Does anyone have any ideas? Thanks

MX: Help With Unwanted _mc Dragging
Hello All.
I have jpeg loaded into mc, loaded into another _mc (masked) .. It is a full size photo. I have a start / stop drag action on the _mc. In a nutshell, a zoomable dragable photo. Lower on the screen I had placed some scrollable text. When I scroll the text, or click and drag anywhere outside of the masked area "picture frame". it drags the pic. Not a huge problem but undesirable. I have approached this problem with invisible buttons and _onRollOut / _onRollover tactics.
I have tried to turn the dragable _mc to null etc when the pointer is not in the area. Am I approaching this problem correctly or am I way off? (btw Not Using Expert Mode.... yet)
Thanx for any input.

Unwanted Looping.....
Hey, I created a flash menu at http://ww.web-medium.com/titaniumserver/ but everytime the mouse rools over it lops the movie...I have never encountered this before..any ideas why? Thanks...

Unwanted Space
Check out my site... promises for bethany and see if you know how to solve the problem of there being white space on the side. I have tried using javascript to resize the window, but I can't seem to figure it out. Help please. Thanks!

Unwanted Looping
Hello, I have created a site for my cliect with an opening "enter" page. One of the effect that I used is a swish effect. But, it loops continuously on that page and I even added a "remove" to it, but it still does its thing, and keeps on doing its thing. It is very annoying. Can someone help me out with a suggestion, to end my blues?

Thanks, NYmagicwww.rccbrooknam.com

Unwanted Hotspots
i have a regular text based movie and i placed another full page movie over to pop up for easy access, and so that when you are done you can go back to the exact frame that your at in the bottom movie. any way i have one movie over another movie but the hotspots/sounds of the bottom movie bleed through when you are navigating the top.
thanks for any help

Help With Unwanted Looping
in one of the scenes of my animation the movie sequence run fine and through to the end when testing the scene, but when i test the whole movie a certain part of the sequence just keeps looping. this is just a simple moving animation
sorry if this has been answered before but not knowing what it is is hard to search for an answer

Getting Rid Of Unwanted Background
hi,

I started to use "swiff chart" to make animations of some charts I want to include in my project. This software works great but It always outputs a white background. I've been trying to get rid of the background in swiff chart but I can't so far. So I was wondering if it was possible to do that in flash when the swf loads into my main project?

tks

Unwanted MC Rescaling
hi all

i have a very strage problem at a very bad time...i need to finish of a project by monday mornin, and now, doin the last change, i all of a sudden get this problem:

on converting an imported file (jpg, png, swf...dont matter) to an MC, flash rescales the created MC just a tiny bit. but just enough to get the type all messed up...

has anyone had similar problems ?? am using flash 8, exportin for flash player 7

thanks....

Unwanted References
When I have this code...


Code:
var point1:Point = new Point();
var point2:Point = new Point();


I have two separate Point instances, but if I then do this...


Code:
point1 = point2;


point1 becomes a reference to point2. Is there any way to avoid this, such that a copy of point2 is made, or just so that only the values are copied, but they remain two separate instances.

Unwanted Pausing
Hello there, I'm new here because I have had questions in the past about some actionscript issues, however I found my answers within previously posted threads by other users on this site.

BUT, I've had a continuing problem that I can't understand. I'm making a site that consists of two seperate flash files. The first is just a navigation bar with buttons that load different .swfs into an iFrame below it.

So I have a bunch of different .swfs to load into this frame. One of them in paticular I've been working on and updating and then replacing the old one to view it in my browser. So it was working fine. However, I made some minor updates to this .swf, of which the updates contained nothing actionscript related... just some symbol swapping. I published it again, replaced the old one and when I went to view it in my browser, it would pause on the first frame.

On the first frame is a load bar, the same as I have used on other files and altered in no way. So all this .swf does is load the movie and then pause on the empty screen without continuing (which it did fine 10 minutes before). I can right-click on the .swf in my browser and select "play" and it will continue... but I don't have any idea why the hell it's doing this... can anyone help???

Unwanted Rotation...
Hi there,


I'm working on a little flash project again. Everything's working fine for now but I encountered this little problem. And don't understand why this problems happens. Please read...


My site contains two swfs that are loaded in a 'container' swf.
• images.swf are those big background images (animated fadein/fadeout)
• main.swf is the actual site (menu, text, content)
• tmp.swf is the container in wich the aforementioned swfs are loaded.


The flash files are getting centered via actionscript (off-center images are intended that way). Everything works perfectly.
Check it out here: http://www.bodysong.co.uk/tmp/tmp.html

Then I'd like to have them background images as big as the stage.
I add one line of code and then it happens!!!! The background images are getting rotated!! I didn't add ANY rotation code at all and still this happens. Why?
Check this wrong version here: http://www.bodysong.co.uk/tmp_wrong/tmp.html

Do you people understand why?



This is the AS (in tmp.swf):

ActionScript Code:
this.createEmptyMovieClip("images", this.getNextHighestDepth());
this.createEmptyMovieClip("container", this.getNextHighestDepth());
container.loadMovie("main.swf");
images.loadMovie("images.swf");


// center of the very first position of the swfs
this.onEnterFrame = function() {
    container._x = Stage.width/2-472.5; // half the size of the main.swf is subtracted for perfect centering.
    container._y = Stage.height/2-287.5; //
    images._x = Stage.width/2.75; // divided to be off-center
    images._y = Stage.height/2.75;
    // images._height = Stage.height;
// the line of code above is getting me in trouble. Adding this makes the background images rotate!!!!!??????
};




// stage listener for continuously recentering on stageResize

var stageL:Object = new Object();

stageL.onResize = function() {
    container._x = Stage.width/2-472.5;
    container._y = Stage.height/2-287.5;
    images._x = Stage.width/2.75;
    images._y = Stage.height/2.75;
    images._height = Stage.height;
// the line of code above is getting me in trouble. Adding this makes the background images rotate!!!!!??????

};

Stage.addListener(stageL);

Unwanted Slowing
I have a gallery-flash/AS thingie all set up, just one little annoyance: For picture frames I use a pre-drawn box that I scale down to the size of the picture like this:
on the _root -level I have a movie called picture.border which has the following nested within the instance itself

Code:
onClipEvent (load) {
_root.Xfactor = 100;
_root.Yfactor = 100;
}
onClipEvent (enterFrame) {
varXfactor = this._xscale;
varYfactor = this._yscale;
difXfactor = 100-(_root.W/this._width*100);
difYfactor = 100-(_root.H/this._height*100);
setProperty(this, _xscale, varXfactor-(difXfactor/5));
setProperty(this, _yscale, varYfactor-(difYfactor/5));
}
Oh, I forgot... The _root.W and _root.H are variables assigned by the picture to be framed...

It works fine, but after a while everything just keeps slowing down. Any ideas why?

Unwanted Buttons
In my movie I make it so when you move your mouse over a button, in the over frame I make another picture pop out to tell you what button it is.

Well if you go over to where the button would be and you put the mouse over it, it acts as if the button has the mouse over it, and it pops out...

The effect that pops out is another .swf so i dont know if it is just acting as a button and i'm screwed, or if there is a way i can deactivate that part of the button?

Unwanted Scaling
A user reports that a flash movie is scaling so that it appears much larger than it should be. They were using Windows IE version 5.5.

Can this be fixed by putting the line fscommand("allowscale","false"); in the first frame of the movie, or is it something else? I'd have tried this myself but I don't have a machine running that browser.

Getting Rid Of Unwanted Background?
I'm importing a simple image from photoshop, an when i paste it into the work area in flash, it puts a white rectangle around it...how do i get the white rectangle out an just keep the image I'm trying to work with???
(it's a simple brush stroke..nothign crazy)
...thanks in advance


dmiller

Unwanted Jpg Resizing...
ok... what i've got is attached movieclips, basically they are like pictureframes. each frame will change width and height depending on the xWidth, yWidth attributes defined in an xml file.

my question is, why do the jpg's that are then loaded into a "container" MC within the frame movieclips scale to an obscenely different size. also, if i try to define the size of the empty container by drawing an invisible box, the image seems to load correctly but it overwrites the xWidth and yWidth i had defined for each pictureframe movieclip.

is it possible to load a jpg into an empty container clip within a movieclip that is having it's width and height changed and not have the jpg also change?

thanks for the help.


ActionScript Code:
var pictures:Array = new Array();
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("photo.xml");
 
function loadXML(loaded){
    if (loaded){
        photoNode = this.firstChild.childNodes;
        for(var i = 0; i< photoNode.length; i++){
            pictures.push(photoNode[i].attributes.name);
            trace(pictures);
            var xWidth:Number = photoNode[i].attributes.xSize;
            var yHeight:Number = photoNode[i].attributes.ySize;
            var picFrame:MovieClip = holder.attachMovie("frame", "frame" + i, i);
            picFrame.container.loadMovie(pictures[i]);
            picFrame._x = i*(30);
            picFrame._width = xWidth;
            picFrame._height = yHeight;
            //picFrame.container._width = xWidth;
            //picFrame.container._height = yHeight;
            //trace(picFrame.container._width);
            //trace(picFrame.container);
        }      
        //trace("loaded");
    }
    else{
        trace("failed");
    }
}

Unwanted Sound Between Scenes
I have a sound in the movie but it is only supposed to go off at the end of the time. For somereason it goes off when ever the movie goes between scenes. here is the movie if ne one has an idea I can send you the code or just tell me. thanx. http://www.sowebdesigns.com/mini/auto_scoreboard.swf

Unwanted Weird Resizing
hello. this is a really weird problem and any help would be brilliant.

************************************************** ****
(1) heres what i have :

A flowchart that when the user clicks on a process, it brings down the next process.

The flowchart wont all fit on one page, so when the last process is reached and clicked on, a "continue to the next page" button is dropped down, which when clicked on, loads another movie, continuing the flowchart. Heres the code for the "continue to next page" button :

on (release) {
unloadMovieNum (0);
loadMovieNum ("Prospect2.swf", 0);
}

************************************************** *****
(2) Heres the problem :

The first movie looks ok. When the "continue to next page" button is clicked, the second movie is loaded, but all the buttons, symbols, text etc.. are smaller and quite difficult to read.

Can anyone please tell me what im doing wrong? Im loading and unloading all the movie into/out of level 0. Could it be something to do with this? I tried using different levels for each, but the second movie simply doesnt load when i do that. Any help would be brilliant. Thanks.

Unwanted Frame Around My Stage
Hi everybody,

you could do me a great favour if you could visit my page and explain why I have a green frame around my stage. I really tried everything in my index.html but I cannot remove it. Do I make a mistake in saving my file?

http://www.motormegahertz.com

Thanx

Image Gets Unwanted Border
Hi -

I've got a .jpg that I'm using in a movie that I used to create a movie clip. When I run the movie the image gets an extra pixel of black around the top, left, and right edges.

Does this make sense? It's not there at design time, only when I test the thing out. Looks lame - any ideas on what to do?

Thanks!!

Php Textbox Unwanted Spacing
ok so I need some help, I have a text box that reads data from a php script and that works fine. but now I have all this unwanted data also being pulled into the text box and it's creating alot of white spacing. ie.

hello thanks for checking out this site

we are updating the site with new info.

so please come back soon...


WHAT I would like for it to read is

Hello thanks for checking out this site
We are updating the site with new info.
So please come back soon...

The php data is pulling in my URL encoding characters returns Happy+Xmas%0D%3Cbr+%2F%3E%0Awe+got+shows+%0D%3Cbr+

but how do I get remove some the characters like %0d but not all because this is also being used in HTML page on other part is the site and i need to keep some of this data.

Flash, Php -> And Unwanted Characters
I've hit a rather weird bug using PHP with Flash. I'd really appreciate help with this one, I've got to submit it as part of a thesis in a week. I'm in trouble.

I've created a flash app. which allows the user to create an XML file, the XML is displayed in a dynamic text box. An XML file is created by using a PHP script;

<?

// grab wholeXML variable from Flash
$newXML = $_POST['newXML'];

// open the XML file; if it doesn't exist, it will be created
$fp = fopen("myXMLfile.xml", "w");

// put contents of newXML variable into file
fputs($fp, $newXML);

// close the file
fclose($fp);

?>

--> newXML is the variable which contains the XML displayed in the dynamic textbox.

Problem.

When the PHP script creates the XML it inroduces unwanted characters

eg. a line of the desired XML appears.

<slideNode jpegURL="images/image1.jpg">text description</slideNode>

instead it appears

<slideNode jpegURL="images/image1.jpg">text description</slideNode>


Is there some reason why the PHP script introduces characters before " characters.

Any advice is greatly appreciated.

Unwanted One Pixel Border
I've started using Flash (MX) again after a layoff from using the program and seem to be a little lost.

I'm trying to incorporate three movies within a table made up of images. When I add in a movie a one pixel border appears around it even though I've got no border selected, no cell padding/spacing etc. I just can't seem to shift it.

Alternatively, I kept the sliced images as one and created layers to position the flash on top of it. Now I get a one pixel border to the top and left side of the flash movie.

Any ideas how to sort this out would be appreciated.

Unwanted Mirror Effect
Hi everybody, I'm new to this swish, so excuse my ignorance! Problem is everytime I make an effect, then play it in my browser, I get a mirrored/upside-down effect with text and images, I get the same problem with samples being played in the browser. I've tried reinstall program, no luck!!

Unwanted Flashing Artifacts
When I set up a button using text that changes colors as the mouse rollover occurs, in the background and moving as the cursor moves there is some intermittent flashing that occurs. It is as if there is a shadow of the button that wants to light up. How does one get rid of that?

Unwanted 1 Pixel Border
I want to align my Flash 5 object with other images on a page, and I don't know how to get rid of this 1-pixel-wide border. I modified the movie dimensions to be the same size as the image I imported, and things don't match up. I've tried resizing the movie to be a pixel or two smaller than the image, but the best I've got it at is a 1-pixel line at the right. Would I be able to get help to remove this border altogether?

Thanks for any responses!

Unwanted Comma In String
Hi all,

I have a dynamic string in the form of &var0=text&var1=text etc...

But when I export it to flash there is a comma before every field except the first. There are no comma anywhere in the text and I have the text urlencoded anyway. Anyone have any ideas whats going on here?

thanks

Unwanted Whitespace On New Line
I'm making a site 1liner and in some text I get unwanted whitespace in the beginning of a new line... The var is set in 1 line like= _root.text_rubriek="<font size='8' color='#30312C'>1Liner is een full service communicatie-adviesbureau</font> opgericht in 2003. Als jong bureau is 1Liner high sensitive voor nieuwe tendensen en evoluties en focust het op inventieve oplossingen en verfrissende ideeën. 1Liner denkt met je mee, overlegt met u en anticipeert.";

any ideas how i solve this problem?

thanks

XML Unwanted Special Characters Appear
When I import data from an external xml files three unwanted extra charaters appear. They are commas, ",". One comma appear at the beginning of the first word & the other two characters appear at the end of the first sentenced.

Any ideas on where or why these charaters appear? More importantly, how do I get rid of them?

Thank You

_level0.songname Unwanted
Hey,

I have a textbox that grabs a songname from an .xml file.

the code is:

//this displays the loading text while the songname is grabbed from the .xml file
songname = "..Loading";

Before the "..Loading" text is displayed online, it shows _level0.songname for about a second.

How do i fix this?

thanks,

envex

[MX] Unwanted Speed Increase
PHP Code:



attachMovie("player", "player", 0, {_x:275, _y:200});
psdepth = 0;
onEnterFrame = function() {
    if (Key.isDown(Key.UP)) {
        player._x += 5 * Math.cos(player._rotation * (Math.PI / 180));
        player._y += 5 * Math.sin(player._rotation * (Math.PI / 180));
    }
    if (Key.isDown(Key.LEFT)) {
        player._rotation -= 5;
    }
    if (Key.isDown(Key.RIGHT)) {
        player._rotation += 5;
    }
    if (Key.isDown(Key.SPACE)) {
        psdepth++;
        psfired = attachMovie("pshot", "pshot" + psdepth, psdepth, {_x:player._x  , _y:player._y});
        psfxspeed = Math.cos(player._rotation * (Math.PI / 180));
        psfyspeed = Math.sin(player._rotation * (Math.PI / 180));
        psfired.onEnterFrame = function() {
            psfired._x += psfxspeed;
            psfired._y += psfyspeed;
        }
    }
}




I am trying to make an Asteroids type game. The ship uses trigonometry to turn left and right. I can't figure out why, each shot I fire is faster than the previous one.

Unwanted Blurring Of Text
Hi,

I'm working on a flash file that is blurring my type for some reason. I want to use verdana with anti-aliasing turned off but for some reason flash is blurring the type.

I am attaching the .fla file to demonstrate. On the left there is a paragraph that's working fine. On the right the paragraph of text blurs as soon as it animates (it's looping over 3 frames). This makes it look like it's flickering when the flash file is run.

Both paragraphs are constructed in the same way (a text block inside a movie clip, inside another movie clip), but the one on the right is blurring and I just can't figure out why.

Can anyone help me with this? I was rushing to meet a deadline and this has really ruined my day!

Thanks

Unwanted Glow On Text
I'm having a problem with an unwanted green glow around some dynamic text and can't figure out how to get rid of it. The font is Futura (I've tried different versions), size is 12, and I've tried anti-aliasing for readability and for animation, with no luck. Screen shot is attached. Any ideas?

Unwanted Lag After Button Click
Can you help me? This problem is worrying me.

I am working on a project that doesn't have a whole lot of animation. It's an interactive course. And there are forward and back arrow buttons to move from frame to frame. It's been working fine until the last day when I added in more content and increased the number of frames. Now when I click the arrow buttons to move from frame to frame there is about a 1 second delay. It've tried it on 2 Macs OS 9.2.2. On one Mac clicking will take me to the frame instantly but there is a lag until the arrow button can be clicked on again. And you see the watch cursor. On the other Mac, the delay happens before you are taken to the next frame. Just a few days ago you could click the arrow button over and over again and it would take you to the new from instantaneously.

There is a actionscript on each frame that sets certain variables and checks variables, but I didn't change the script since it was working fine. All I did was increase the number of frames and added more content. But the scripts are the same for every frame. The file is 436 kb and it has about 100 frames in it. I'm working in Flash MX.

I tried deleting all my new content and reexporting the swf and the lag is still there. I remember having this problem before and I never figured out what caused it. Suddenly the performance goes way down and there aren't any big complicated animations.

Is there something else I can try?

Flash Has Unwanted Margins
Hi im having a problem, i am getting margins of space in my tables
when including flash objects.

(edit, links removed)

as far as I know it has something to do with my object code,
i used the code that comes in the html file with the swf when you publish and
that moved the margin to the top instead of the bottom.

Using <p Class='big'> Getting Unwanted Break? ()
Hi im using a dynamictext box to load some text and the style it width ex
<p class='big'>

it all works nice but i get an unwantet rowbreak after every closing </p> ???
seems stupid?

so I cant do this..

// it becomes like this...
so I cant
do this..

the only way not to get the break is the "singel row" mode on the textfield...

this is my code.


PHP Code:



var cssStyles:TextField.StyleSheet = new TextField.StyleSheet ();

cssStyles.setStyle(".big", 
    {fontFamily: 'Praxis-Bold-Flash-12', 
    fontSize: '27px',
    color: '#000000',
    display: 'block'} // tried changing this to inline aswell... 
);
cssStyles.setStyle(".small", 
    {fontFamily: 'Praxis-Reg-Flash-12', 
    fontSize: '27px',
    color: '#000000'}
);
boxMC.styleSheet = cssStyles;

boxMC.htmlText = "<p>Showroom</p>ssssss <p class='small'>mitt i Stockholm</p>kalle erik"; 

Unwanted Focus Rectangle
I have some text fields in a form that are set to a tab order. when I tab through the form, a grey rectangle appears around the textfields. I can't seem to get ride of them. I would mind them, except the rectangle of the last form item tabbed to stay were it is after the form is submitted, and doesn't go away until the tab button is hit again. I tried _focusrect = false both on the textfields and globally, and it did nothing. any Ideas how to get ride of this.
thanks
Russ

Unwanted Leftover Selection
Hi everyone.

I have always managed to get help on this forum from various helpfull individuals. And I can't thank them enough.

Seems that I will require some more help. Here is a link to my .swf file: http://www.segervais.com/flash/menu_nav_test.swf

When I click on a selection it does what it's suppose to do. It's when I click on the next selection that things get weird.

Wondering if it's an actionscript error. Missing a line of code? Or missplacement on the timeline?

The .fla file can be downloaded here: http://www.segervais.com/flash/menu_nav_test.fla

Any help is grately appreciated.

Steph

Unwanted Movieclip Rotation
Not sure if this is a bug or what, but I've a bit of flash with two buttons for going up and down a list of movieclips, 4 of which are displayed on screen at one time.

When I click the Down button, it scrolls the list by doing a loadClip() to re-load each clip at its new position, and bring in new clips as the old ones "scroll" out of sight. It also loads other mc's related to the top clip in the list.

Under normal circumstances this works fine, but if a mad user (or tester) repeatedly clicks quickly on the Down button, some of the images acquire a 90-degree rotation (evidenced by tracing the value of movieclip._rotation).
Weird, because I'm not setting rotation anywhere at all. I guess it's something to do with multiple loadClips on the same mc before it is finished the previous load. Not quite sure how to handle this properly.

I put in a delay on the button (using setInterval) so that once clicked, it could not be clicked again for a further second or so, which helps to reduce the problem, but I wonder if there is a way to properly block a loadClip if one is already in progress for the same movieClip. Because the loadClip is asynchronous and the clips are being loaded from a webserver, it makes blocking tricky.

I thought about cancelling the loadClip in the .onLoadStart() event if the same clip is already loading but not finished, but that would put the scrolling out of sync, so probably what i need to do is disable the Down button until all 4 loadClips have completed using some kind of counter, decremented on each loadclip.

What would be nicer would be to have Flash do it automatically using a queuing system such that the loadClip events on the same mc are queued up so that one starts only after the prior one finished (or failed).

Scenario:

4 Movieclips named mc1 mc2 mc3 mc4 and a cliploader called mcl.

mcl.loadClip("name1",mc1);
mcl.loadClip("name2",mc2);
mcl.loadClip("name3",mc3);
mcl.loadClip("name4",mc4);

Ok, this is fine,
But if it so happens that this occurs because the user clicks too quickly...

mcl.loadClip("name3",mc3);
mcl.loadClip("name4",mc3);

Then things get confused because two different clips are trying to be loaded into the same movieclip (mc3) almost simultaneously.

The worrying thing is sometimes it is a different mc than the one being loaded that is rotated by 90 degrees. Hmmm...

One time I also got a "security violation ... out of sandbox " error (something like that) in the trace window suggesting some memory overlflowed somewhere.

My question is, has anyone encountered this before, and why should it only be the rotation that is affected?

Brian

Unwanted Pixel Snap
http://www.pleribus.com/dev/menu.html

Hi,

I've been developing a 3D type menu using the new blur features of Flash 8 but have come across a problem I cannot work out. When the menu comes to a halt on an item, it seems to loose it's "sub pixel" animation abilities and then starts "pixel snapping".

I know flash 8 has a cacheAsBitmap setting applied to the objects that utilise filters, but it seems smooth for the rotating animation then all of a sudden it decides to change to "pixel Snapping"

Any ideas on how to supress this behaviour or why it does it intermittently. Could it be because I am not resizing (changing width and height) when it is still...?

Looking forward to any sort of help/response.

Unwanted Red Block Showing On My Swf
Hi Everyone, and may i say im lovin the new site! anyways, so I have a flash file and basically they are slides of different things. For some reason, my first slide shows up with a red block over it. I have tried re-saving the jpeg in photoshop, different file types such as gif and pngs, and still nothing.

So, when i go into my library, and double click the imported Jpeg I want to use, I see that the compression is set to JPEG(Photo) instead of the lossless file. So if I try the Lossless option, it works but of course the swf takes on an enormus filesize. If I have the first option, it just shows a red block. what is wrong with my swf!

Example (please use IE because of course in firefox it works):
Clicky Clicky

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