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








Script Breaking Without Reason


Hi, I made a script to load in a stage fifteen external movies: there are 15 different movie-clip/loaders and fifteen frames: each frame loads in one of the fifteen movie-clip loaders the right external .swf, called as the _currentframe. This is the function: ( sorry but I can't find the As tag anymore):


function cleverPics(clipName) {
folder = "../script/biancoenero/";
ext = folder+_currentframe+".swf";
loadMovie(ext, clipName);
Loaded += 1;
trace(Loaded)
if (_global.top == 0) {
top = clipName.getNextHighestDepth();
trace("through");
clipName.swapDepths(_global.top);
_global.top += 1;
}

Then each external swf preloads , target the last opened clip diminishing its alpha and then raise its own alpha.
This is the script in their first keyframe:

stop();
// begin preloading
function preloader(last) {
_parent[_global.last]._x = 0;
swapDepths(_global.levelMem);
// get your preload movicelip from the library & position it in the middle of the stage
attachMovie("preload", "preload", this.getNextHighestDepth());
preload._x = Stage.width/1.2;
preload._y = Stage.height/2.2;
/*preload._x = 542;
preload._y = 212;*/
onEnterFrame = function () {
Percent = Math.ceil((this.getBytesLoaded()/this.getBytesTotal())*100);
if (!isNaN(Percent)) {
larghezza = 41.6;
// Sostituire con il valore di scalatura
setProperty(preload.bar, _xscale, (Percent*larghezza)/100);
preload.txtfield.autoSize = true;
preload.txtfield.text = Percent add "%";
}
if (Percent == 100) {
removeMovieClip("preload");
fadeInc = 5;
fadeOut = 100;
fadeIn = 0;
_parent[_global.lastI]._alpha = fadeOut;
this.onEnterFrame = function() {
fadeOut -= fadeInc;
if (fadeOut>=0) {
_parent[_global.lastI]._alpha = fadeOut;
} else if (fadeOut<=-10) {
trace("done")
_parent[_global.lastI].unloadMovie();
this._alpha = fadeIn;
this.gotoAndPlay(3);
this.onEnterFrame = function() {
fadeIn += fadeInc;
if (fadeIn<=90) {
this._alpha = fadeIn;
} else if (fadeIn>=110) {
this.onEnterFrame = undefined;
_global.lastI = "due";
_global.levelMem += 1;
delete onEnterFrame;
}
};
}
};
}
};
}
// get the party started right
preloader(_global.lastI);

n.b.: the _global.lastI variable is a mark that every ext .swf leaves to give to the next loaded movie a name to target for the alpha fading out: it's equal to the instance name of the clip loading the ext file and it's obviously different for every ext .swf ( in the example it's "due")

The script works fine at first, but after 4 or 5 times the externals files stop targeting correctly the previous clips whose alpha doesn't lower anymore but stays 100.
It's quite frustrating cause the script seems fine to me: but I'm not an action script expert so, if you could help me find out the bug you'd save my life ( job due for tomorrow) : if you want I can also upload on my server the four main files ( I make my experiments only with the first 4 pictures) soyou can get a better idea of how it works.

This is the only as forum where I always got my problems solved, so I'll cross my fingers ...




ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 12-08-2005, 11:41 AM


View Complete Forum Thread with Replies

Sponsored Links:

Bizarre Flash Breaking ... I'm Also Reaching Breaking Point...
Hi all,

I did a little Flash project a while ago:

http://www.theproblemofnothing.com

I just visited it recently here at work, on Firefox v. 2.0.0.2, and after loading the icons, it broke. Stopped dead. Yet it works on this comp on IE7. I tried another computer at work, and it worked in Firefox, but not in IE7 ... ? Bizarre. I'm posting this in the Actionscript section as I'm using lmctween.as, and I think that might be the issue.

Another issue that might be complicating things is my use of SWFObject for the main movie, and then loading SWF files externally into that movie. Or it might be the preloader I'm using and how I'm using it (eg. _root, etc.) Or something else.

I dunno guys. Everyone here's baffled. I'm sad. Please help! The site is above, and the FLAs can be found here:

http://www.theproblemofnothing.com/_fla

tpon.fla is the main movie, while art.fla is what I used to generate each file. Thanks a ton, and ... thanks!

Sincerely,
Mark (decisionman).

View Replies !    View Related
Bizarre Flash Breaking ... I'm Also Reaching Breaking Point...
Hi all,

I did a little Flash project a while ago:

http://www.theproblemofnothing.com

I just visited it recently here at work, on Firefox v. 2.0.0.2, and after loading the icons, it broke. Stopped dead. Yet it works on this comp on IE7. I tried another computer at work, and it worked in Firefox, but not in IE7 ... ? Bizarre. I'm posting this in the Actionscript section as I'm using lmctween.as, and I think that might be the issue.

Another issue that might be complicating things is my use of SWFObject for the main movie, and then loading SWF files externally into that movie. Or it might be the preloader I'm using and how I'm using it (eg. _root, etc.) Or something else.

I dunno guys. Everyone here's baffled. I'm sad. Please help! The site is above, and the FLAs can be found here:

http://www.theproblemofnothing.com/_fla

tpon.fla is the main movie, while art.fla is what I used to generate each file. Thanks a ton, and ... thanks!

Sincerely,
Mark (decisionman).

View Replies !    View Related
For Some Reason...
Hey Flash Board! I've used a similar menu drop down to this one here:

(http://www.flashkit.com/tutorials/Ac...-121/index.php)

And in my .swf it won't (on (press)gotoAndStop ("Scene 1", 23);}
On the buttons that "pop out" from the rollover menu. I'm using Flash 5 and I've checked my script and it's really not that complicated to mess-up. I'm beating my head against my desk. Any help would be greatly appreciated. Thanks a bunch.
~geoff

View Replies !    View Related
What Could Be The Reason ?
It’s really strange ! l add my new swf to my web site in dreamweaver and when l wanted to preview my new flash movie on the web l got a white board instead of the swf movie but when l preview the the page locally it works just fine ! what could be the reason ?

View Replies !    View Related
Is There A Reason..
...that when I open the .swf the movies I have a link to that are told to open in _self open in the same window, however, when converted to a projector (.exe), the movies open in a seperate window??!?

How can I combat this?

Thanks,

Matthew

View Replies !    View Related
Is There Any F***ing Reason To Cause?
Is there any reason that cause this tutorial won't work...
Because it does NOT work like the others i've tried before... I am sure that i am doing no mistakes, but i am wondered about what the problem is...
http://www.actionscript.org/tutorial...il/index.shtml

View Replies !    View Related
And The Reason Is
Can anyone provide the reason for the distortion in the attached .fla. If you publish the file you'll see what I am talking about.

View Replies !    View Related
Inductive Reason
i would like to know what principle the menu of this sites operates on:

http://netstudioz.com/english/flash/intro.html


what do you think that is? i tried a number of simple roll over goto scenes and frames and even sliding the clip into place by moving the x y positioning using the with action.

all of those didnt seem right.

i think the menu is launched based on the x y position of the mouse.

could someone tell me how to do this?

thanks.

View Replies !    View Related
Looping For No Reason
for some reason the logo animation of the following fla loops twice for no reason... this is animation is very siomple however i have spent about an hour trying to figure out why it wont play once and stop check it out it is really confusing thanks

View Replies !    View Related
Looping For Some Reason..?
I'm using the following code to perform a hitTest on a game type thing I've been working on for a while and it just seems to be looping through.


Code:
onEnterFrame = function() {
if (this.hitTest(_root.man)) {
gotoAndPlay(14);
stop();
}
}
It's not just playing the movie from frame 14, it's playing the first frame (with a sound on) and playing it over and over.

Anyone know how to only play once? Is there a "go to and play once then stop" command?

Cheers.

View Replies !    View Related
There Is No Reason For This Not To Work. =(
hitTest is working for one thing, but I can't get it to work for the other. I have an eskimo, and you can move him around with the arrow keys, and you can shoot his gun. And I made it so when you shoot this line the line turns red, that works. But then when I try to make it turn red whenever you move the eskimo on the line, but it doesn't work. Here is the actionscript:

//eskimo is the dude and line is..well the line
if(eskimo.hitTest(_root.line)){
with(_root.line){
gotoAndStop("blowup");
//blowup is where it turns red, which is inside the line mc.
}
}


And it doesn't say there are any errors or anything.

(I am using flash mx 2004 pro, and actionscript 2.0)

View Replies !    View Related
Lagging For No Reason
Hey freinds.

So whats happening, is I have a pretty complex range of items appearing on (for arguments sake) frame 2, from a bunch of arrays.

And this works perfectly fine. Not a scrap of lag.

Ive made a control to delete all the items on the screen and re-load the data/arrays, effectively creating more objects.

My problem is, the second, third... time you do this, it lags to almost half speed. But the frame is completely emptied before it comes back to it.

Is there anything im overlooking? Does flash keep some kind of hidden information somewhere that I can clear up or something?

ill include a example if nessisary

thanks for reading
~waste

View Replies !    View Related
Why 550 X 400 ? Is There A Good Reason For It?
the default document size is so small. Aren't most people on bigger res. monitors now? What are the problems with increasing the dimensions? Will different aspect ratios make my flash movie look weird if it isn't the default?

thanks
ml

View Replies !    View Related
Canīt Debug This For Some Reason...
Hey everyone. I recently got Flash 8, and Iīm trying to build some games.


PHP Code:



onClipEvent(load)
{
    dropdown = false;
    speed = 10;
}

onClipEvent(enterFrame)
{
    for (var i = 0; i<3; i++)
    {
        for (var j = 0; j<10; j++){
            _root["alien"+i+"_"+j]._x += speed;
            if (_root["alien"+i+"_"+j]._x<0){
                      speed =10;
                      dropdown = true;
                      break;}
        if (_root["alien"+i+"_"+j]._x> Stage.width){
            speed = -10;
            dropdown = true;
            break;}
    }
}
}
if(dropdown){
    for (var i = 0; i<3; i++){
    for (var j = 0; j<3; j++){
        _root["alien"+i+"_"+j]._y +=20;
    }
    }
}
dropdown = false;




When I try to debug I get the following message.

PHP Code:



**Error** Scene=Scene 1, layer=Layer 3, frame=1:Line 24: Statement must appear within on/onClipEvent handler
     if(dropdown){

**Error** Scene=Scene 1, layer=Layer 3, frame=1:Line 31: Statement must appear within on/onClipEvent handler
     dropdown = false;

Total ActionScript Errors: 2      Reported Errors: 2




It might be because Iīm tired, but I canīt seem to correct the code...what am I doing wrong?

By the way, does anyone know some good and easy tutorials to make simple games like Asteroids, Space Invanders etc? Many of the tutorials I find are way too complicated for a actionscript novice.

Thanks.

View Replies !    View Related
PNG Compressing For Some Reason
Hey all, I am having a weird problem and havent found any answers by searching. In any case I use PNG 24 with transpercencey for just about all my site.

The weird thing is that when though I set all the PNG files compression to lossless with no compression on them they still get compressed. Any time I publish my SWF the images are no where as crips as they should be. Am I missing someting?

I got the same problem with GIF files, I also don't like the compression algorithem on these files hence my use of PNG files. Ovbiousley JPG's are out of the question since my images all have transpercenceys.

Thanks for any heads up

View Replies !    View Related
For Some Reason Not Working
flash mx AS not working going to mysql database using PHP......

FLASH MX script..

PHP Code:



// create a new loadVars object for the variables to send
varsToSend = new LoadVars();
    myData = new Array(); 
    varsToSend.venueName = venueName.text;
    varsToSend.state = state.getSelectedItem().label;
    varsToSend.city = city.getSelectedItem().label;
    varsToSend.areaCode = areaCode.text;
    varsToSend.venueType = venueType.getSelectedItem().label;
    varsToSend.ageGroup = ageGroup.getSelectedItem().label;
    varsToSend.musicType = musicType.getSelectedItem().label;
// include a variable to prevent cacheing - this forces the browser
// to make a new call to the server
varsToSend.clearCache = new Date().getTime();
// assign a variable to send - this will eventually come from the search box
varsToSend.myVar = "new";
// create a new loadVars object for the variables to be received
varsToReceive = new LoadVars();
// set up the onload caller
varsToReceive.onLoad = processData;
// set up the function to be called on onLoad
function processData(success) {
    // split the results into arrays using the "|" delimiter - this creates three arrays
    //trace("first pipe = " + varsToReceive.venueName);
    venueNameArray = varsToReceive.venueName.split("|");
    addressArray = varsToReceive.address.split("|");
    cityArray = varsToReceive.city.split("|");
    zipCodeArray = varsToReceive.zipCode.split("|");
    areaCodeArray = varsToReceive.areaCode.split("|");
    phoneNumberArray = varsToReceive.phoneNumber.split("|");
    stateArray = varsToReceive.state.split("|");
    // format the text for the output box
    for (i=0; i<venueNameArray.length; i++) {
        outputText.text += venueNameArray[i] + " " + addressArray[i] + " " + cityArray[i] + " " + stateArray[i] + " " + zipCodeArray[i] + " " + areaCodeArray[i] + " - " + phoneNumberArray[i] + "
";
        //trace(venueNameArray[i] + " " + addressArray[i] + "" + cityArray[i] + " " + zipCodeArray[i]+ " " + areaCodeArray[i] + " - " + phoneNumberArray[i]);
    }
    // tell the movie to go to the last frame label
    _level0.gotoAndStop("results");
}
// do the send and load action - I put 127.0.0.1 (localhost)
// you'll need to put your own domain name in
varsToSend.sendAndLoad("search.php", varsToReceive, "GET");
stop(); 

View Replies !    View Related
XML Keeps Loading For No Reason, Why?
Hi!

I have a simple flash-menu that loads data from an XML-file, and it works great except for the curious message in the status bar that says "Getting data from (my server)".

Really, the script is very simple, all the info seems to have loaded already, and I have a "stop()" in the last frame, so It doesn't load multiple times.

Does anyone here have experience with this? What might be causing this?

View Replies !    View Related
Why Does My Text Move For No Reason?
I made some text and done ctrl+B. and put in a tweening
from frame 1-30, My problem is that 1 of the letters
rotates when i have not moved it but why??? please
help

View Replies !    View Related
Movie To Heavy For No Reason
My 20 frames movie is very heavy.
Could be because
Doing it and redoing it, I collect a library of
almost 150 different symbols and mc.
Is the "inactive library"(symbols that I do not use)
the cause of such a weight?
There is a way, now that is done, to make it lighter?

View Replies !    View Related
MC Stops For Unknown Reason
Hello all,

This is driving me crazy. I have used this script before with no problems but.......


I have an empty movie clip that has this on frame 5:

if (_parent._x < 292) {
difference = 292-_parent._x;
rate = difference/2;
_parent._x = _parent._x+rate;
}

It makes its parent clip move to the right.

The next frame has this:

if (_parent._x < 292) {
gotoAndPlay(5);
}

This should check to make sure it has made it to the spot that it needs to be in. Then it should move on down the line.


My problem is that it doesnt move on. the motion works perfectly but the MC seems to stop here. Anyone ever have this problem? I have been messing with it for the last three hours. Your input would be greatly appreciated.

-Regards

View Replies !    View Related
Board Offsets For Some Reason
Hi all, hope you can help because I haven't got a clue

I am developing a roulette type game
I have the betting board inside a MC. All the events that have to do with the board happens inside this MC.
The problem is when the user places a chip (the function and chip placing happens inside the boardMC) the whole board offsets to the left and downward. It has something to do with the placement position of the chip because the offset is dependant on where you place the chip.

The most bizarre thing is that this does not happen on my machine but does happen on the client's machine. I have Win98 and they have Win2000 and WinMX if that means anything.

The chip is placed by calling a function that does a bunch of thins and then placed the chip as follow:

// place the chip in the same place as the betArea button
var xPo = this["betArea_"+butNum]._x+(xOffset);
var yPo = this["betArea_"+butNum]._y+(yOffset);
// level
this.zPo++;
// attach chip to display
if (this.chipType<=3) {
this.attachMovie("chip"+this.chipSets[this.chipType-1][this.EWlastChip], "chip"+this.chipNum, this.zPo);
// set position
this["chip"+this.chipNum]._x = xPo;
this["chip"+this.chipNum]._y = yPo;
//
}


I really hope someone can help

Thanks

P.

View Replies !    View Related
Some Reason Its Not Working.. Argh..
www.e54interactive.com/compare.zip

if you have a sec and can take a peek at this in action, maybe im missing s-thing really obvious, id really appreciate.

what im doing is loading the date from a text file, trying to compare with the current date and showing and object based on that result, for some reason its just not workiing.. id relaly appreciate if you could point me in the right direction..
thnaks

View Replies !    View Related
Movie Stops For No Reason
Hey all,

I have a character animation movie with 3 scenes. It all plays fine, except on the third scene it stops randomly for no reason. When I play only the third scene is plays through fine, but when I play the entire movie it keeps hanging on the same frame. I've checked all the obvious things, there are no stop actions, etc. Anyone ever heard of something like this?

Thanks

View Replies !    View Related
For Some Reason Wont Work
flash mx AS not working going to mysql database using PHP....i have 2 text boxes and 5 combo boxes.......

code:
// create a new loadVars object for the variables to send
varsToSend = new LoadVars();
myData = new Array();
varsToSend.venueName = venueName.text;
varsToSend.state = state.getSelectedItem().label;
varsToSend.city = city.getSelectedItem().label;
varsToSend.areaCode = areaCode.text;
varsToSend.venueType = venueType.getSelectedItem().label;
varsToSend.ageGroup = ageGroup.getSelectedItem().label;
varsToSend.musicType = musicType.getSelectedItem().label;
// include a variable to prevent cacheing - this forces the browser
// to make a new call to the server
varsToSend.clearCache = new Date().getTime();
// assign a variable to send - this will eventually come from the search box
varsToSend.myVar = "new";
// create a new loadVars object for the variables to be received
varsToReceive = new LoadVars();
// set up the onload caller
varsToReceive.onLoad = processData;
// set up the function to be called on onLoad
function processData(success) {
// split the results into arrays using the "|" delimiter - this creates three arrays
//trace("first pipe = " + varsToReceive.venueName);
venueNameArray = varsToReceive.venueName.split("|");
addressArray = varsToReceive.address.split("|");
cityArray = varsToReceive.city.split("|");
zipCodeArray = varsToReceive.zipCode.split("|");
areaCodeArray = varsToReceive.areaCode.split("|");
phoneNumberArray = varsToReceive.phoneNumber.split("|");
stateArray = varsToReceive.state.split("|");
// format the text for the output box
for (i=0; i<venueNameArray.length; i++) {
outputText.text += venueNameArray[i] + " " + addressArray[i] + " " + cityArray[i] + " " + stateArray[i] + " " + zipCodeArray[i] + " " + areaCodeArray[i] + " - " + phoneNumberArray[i] + "
";
//trace(venueNameArray[i] + " " + addressArray[i] + "" + cityArray[i] + " " + zipCodeArray[i]+ " " + areaCodeArray[i] + " - " + phoneNumberArray[i]);
}
// tell the movie to go to the last frame label
_level0.gotoAndStop("results");
}
// do the send and load action - I put 127.0.0.1 (localhost)
// you'll need to put your own domain name in
varsToSend.sendAndLoad("search.php", varsToReceive, "GET");
stop();


EDIT: added [ as ] tags - jbum

View Replies !    View Related
Is There A Reason No One Will Answer My Post?
I posted "Form Problem : Loading Variables". I see people are viewing it but, no one will answer my question. If there is a reason, can someone please let me in on it.

View Replies !    View Related
Movie Stops For No Reason, Why?
What would cause a movie to stop on a frame without any action to tell it to stop? I have my script that says gotoAndPlay("frameLabel"); and then it does go to that frame, but upon getting there it stops even though I told it to play. Nothing else tells it to stop. No other actions say stop. What could be causing this?

View Replies !    View Related
Code Not Always Working For Some Reason
Hello every one,
I've wrote this piece of code that moves a set of movieclips to randomly specified positions. For some reason, some of the movieclips don't move some times. I've tried every thing possible but nothing worked. Could some one please take a look at the code and tell me if I'm missing something. I've attached an fla file.

View Replies !    View Related
Ive Got Code, But Its Nor Working For Some Reason
im using flash mx 2004 pro. ive got a click per second code that would tell me how many clicks im getting a second and record the higest. that works fine. then i wanted it to add en extra 2 clicks on each click over 10. thats what i didnt get working. the code for it all is:
Code:
clickCount = 0;

_root.createTextField("myTextField", 1, Stage.width/2, Stage.height/2, 150, 20);

_root.createTextField("totalTextField", 2, Stage.width/2, Stage.height/2, 150, 20);

myTextField.background = false;

totalTextField.background = false;

_root.onMouseDown = function() {

clickCount++;

if (clickCount < highCount) {

highCount = highCount;

} else {

highCount = clickCount;

}

};
_root.onMouseUp = function() {

clickCount++;

if (clickCount < highCount) {

highCount = highCount;

} else {

highCount = clickCount;

}

};

function countTrack() {

trace(clickCount+" shots per second");

myTextfield.text = clickCount+" ";

totalTextField.text = ""+highCount;

clickCount = 0;

}

traceCount = setInterval(countTrack, 1000);

if(clickcount>10&&clickcount>highcount){

clickcount+=2;

}else{

clickcount++;

}
the code in bold at the end is what doesnt work. i uploaded the source if anyone wants to mess with it. its at http://dustinmurphy.com/menu/karni1.fla

View Replies !    View Related
Interval Not Deleting For Some Reason
I have an enemy instance that is created through code, every #### milliseconds with an interval. Each of these instances spawn bullets every #### milliseconds with an interval. When the enemy instance loses all it's health, it clears the interval then "removeMovieClip"''s itself. It's removing itself and all, but the bullets continue to spawn in the upper left hand corner. I've been stuck on this problem for a long time. Also, I have Flash CS3, Actionscript 2.0, and the game is a topdown shooter.

View Replies !    View Related
Cant Load Stylesheed For Some Reason
For some reason I cannot get my stylesheet to load sucessfully:

PHP Code:



var myCSS:TextField.StyleSheet = new TextField.StyleSheet();myCSS.onLoad = function(success:Boolean) {    if (success) {        characters.listTxt.styleSheet = myCSS;        populateTextField();    } else {        characters.listTxt.htmlText = "Could not load CSS stylesheet.";    }};myCSS.load("style.css"); 




i keep getting an "Error opening URL" message.... any ideas?
-Thanks

EDIT:
figured it out:

this was my style sheet:
ul li {color: #339933;}

but i am able to load the stylesheet sucessfully if i take out the "ul":
li {color: #339933;}

i guess flash does not support the <ul> tag?

View Replies !    View Related
Movie Restarting For No Reason
Hey everyone

I've made a flash thing which is meant to act like a text based RPG, and it was working fine (relatively :P). On frame 1 there's a preloader which is just an arrow moving across the screen. Frame 2 has nothing on the stage, and has about 600 lines of actionscript starting with a stop() command. For some reason after i added some more code, it would start restarting itself for no readily apparent reason. You would type in a command, press enter, and it would show the preloader for a moment before returning to the start of the code again. However, after i tried it a few times, sometimes it would work until i stopped using it, other times i couldn't even do one command, and other times it would happen at a point apparently at random. Does anyone know why this would happen? I don't use any frame moving commands, but i'll post what i added in


ActionScript Code:
function Storyify(found, line) {
    nextLine = line;
    if (found != 1) {
        if (nextLine<>"You mumble to yourself, unsure of your actions." and nextLine<>"") {
            nextLine = "You mumble to yourself, unsure of your actions.";
        } else {
            nextLine = "";
        }
    }
    _root.SavedSO.data.story = _root.SavedSO.data.story+" "+nextLine;
}

As well as several calls to that function throughout the code.

View Replies !    View Related
Please Help Some Reason This Doesn't Work...
I've spent all fu*king day on this! someone PLEASE help before i really go insane! I'm in a band, and I want to create a SWF flash file that auto loads (pop up) our PureVolume.com page.

Here's an example of what I want to happen, exactly.
http://www.thirdfloorview.com/problem/ddc.swf

That's from another bands site, I decompiled that code, and put it in my Flash movie.. and it just doesn't work, I've tried everything! Check it out

http://www.thirdfloorview.com/problem/problem.swf
http://www.thirdfloorview.com/problem/problem.fla

The first keyframe (around 50) is the script to load the page
The second key frame (right after the last one) is just a stop() command. I know this is a simple resolution, can someone please help me?!!?

View Replies !    View Related
Colours Change For No Reason
Okay...I made a Flash cartoon with a newscaster in it, he's sitting at a counter/desk with some paper on it with a fairly simple background. Through out the toon he pretty much just sits there with his hands on the counter talking. I animated it, edited it together with the other scenes, added the sound effects, yadda yadda yadda, and everything looks fine and dandy. I even put it up on youtube and it looks fine. But I wanna put it on DVD. I took a still from the video and printed it for the cover, but when it came out, the sleeve of his left arm(which is two different symbols) changed colour and I couldn't figure out why. I was pretty much prepared to live with it for the cover but then when I put it on DVD and tried to watch it on my TV, the exact same thing happened again. What the hell is going on. It also changed the colour of his tie...which is even weirder.

Here's a break down. The guys wearing a navy blue suit and a navy blue(same shade) tie over a white shirt. The one arm that I mentioned and the tie turn to a shade of gray. The bulk of the tie is one symbol, but the thin part that goes around his neck is drawn onto his torso symbol, the navy blue suit that's in the torso symbol stays the same, but the tie changes...so it's actually changing one part of a symbol. I had originally thought maybe it had something to with a layering glitch but if that was the case it would change the entire symbol not just part of it.

And bare in mind that the colouring looks fine during every stage of production until it's on DVD. I even tested the DVD files before burning and it looked fine, it's not until it's burned that it's a problem.
Here's the link to the youtube version if you wanna see what it's supposed to look like, http://youtube.com/watch?v=YBXB7juFcPQ

View Replies !    View Related
Slow Animation For Some Reason
Can anyone help me out here... I have a crane game i'm making, moving the crane around works fine... when you move the crane back far enough it is going to hit the cabin of the crane, break the glass, and the cabin should shake. the problem is, i just use a setInterval to rotate the cabin a couple degrees a few times, but it goes REALLY slow when it should change ever 35 milliseconds... the only reason i can think of for this is that maybe there are too many movie clips inside the cabin movieclip... but... i went in and just tried rotating the cabin frame movieclip inside the cabin movieclip and it was still slow... i also tried to use keyframes in the timeline of the movie clip and it was still slow even though the movie is at 24 fps... anyway..

http://68.58.3.243:2222/uploads/cranegame.html for the game
http://68.58.3.243:2222/uploads/cranegame.fla for the source

can someone please look at it and tell me what might be going on? the code for the crane moving backward is at line 365.

View Replies !    View Related
Is There A Reason Mac Won't Upload Files?
I have code that I'm using that sends the file for upload from Flash's fileReference class. I'm using it just like it shows in the documents. It works fine for PC but I'm hearing that it doesn't work for Mac. The users are getting stuck after they select a file and click open.

Any ideas?

C

View Replies !    View Related
For Some Reason Only 1 Function Runs.....
I could be mistaken of course.... here is the code.


ActionScript Code:
picNames = ["pic1.jpg", "pic2.jpg", "pic3.jpg", "pic4.jpg", "pic5.jpg", "pic6.jpg"];picNamesB = ["pic7.jpg", "pic8.jpg", "pic9.jpg", "pic10.jpg", "pic11.jpg", "pic12.jpg"];pic1();pic2();function pic1() {    for (i=0; i<picNames.length; i++) {        clipa = this.createEmptyMovieClip("clipa"+i, +i);        clipa._y = 10;        clipa._x = i*90;        loadMovie(picNames[i], "clipa"+i);        trace("function pic1");    }}function pic2() {    for (i=0; i<picNamesB.length; i++) {        clipb = this.createEmptyMovieClip("container"+i, +i);        clipb._y = 100;        clipb._x = i*90;        loadMovie(picNamesB[i], "container"+i);        trace("function pic2");    }}


I can't understand, I've tried several things changing variables so that they are different and such.... I dont understand why only the last function will run... if i remove pic2(); then pic1(); will run if I put both then pic2(); will run and not pic1();...

i'm confused

View Replies !    View Related
For Some Reason Doesnt Work.....help Plz
flash mx AS not working going to mysql database using PHP......

// create a new loadVars object for the variables to send
varsToSend = new LoadVars();
myData = new Array();
varsToSend.venueName = venueName.text;
varsToSend.state = state.getSelectedItem().label;
varsToSend.city = city.getSelectedItem().label;
varsToSend.areaCode = areaCode.text;
varsToSend.venueType = venueType.getSelectedItem().label;
varsToSend.ageGroup = ageGroup.getSelectedItem().label;
varsToSend.musicType = musicType.getSelectedItem().label;
// include a variable to prevent cacheing - this forces the browser
// to make a new call to the server
varsToSend.clearCache = new Date().getTime();
// assign a variable to send - this will eventually come from the search box
varsToSend.myVar = "new";
// create a new loadVars object for the variables to be received
varsToReceive = new LoadVars();
// set up the onload caller
varsToReceive.onLoad = processData;
// set up the function to be called on onLoad
function processData(success) {
// split the results into arrays using the "|" delimiter - this creates three arrays
//trace("first pipe = " + varsToReceive.venueName);
venueNameArray = varsToReceive.venueName.split("|");
addressArray = varsToReceive.address.split("|");
cityArray = varsToReceive.city.split("|");
zipCodeArray = varsToReceive.zipCode.split("|");
areaCodeArray = varsToReceive.areaCode.split("|");
phoneNumberArray = varsToReceive.phoneNumber.split("|");
stateArray = varsToReceive.state.split("|");
// format the text for the output box
for (i=0; i<venueNameArray.length; i++) {
outputText.text += venueNameArray[i] + " " + addressArray[i] + " " + cityArray[i] + " " + stateArray[i] + " " + zipCodeArray[i] + " " + areaCodeArray[i] + " - " + phoneNumberArray[i] + "
";
//trace(venueNameArray[i] + " " + addressArray[i] + "" + cityArray[i] + " " + zipCodeArray[i]+ " " + areaCodeArray[i] + " - " + phoneNumberArray[i]);
}
// tell the movie to go to the last frame label
_level0.gotoAndStop("results");
}
// do the send and load action - I put 127.0.0.1 (localhost)
// you'll need to put your own domain name in
varsToSend.sendAndLoad("search.php", varsToReceive, "GET");
stop();

View Replies !    View Related
Is There Any Reason This Shouldn't Work?
ActionScript Code:
if (itemType == "file") {            trace("Is File");            mc_File._visible = true;            trace("mc_File vis: "+mc_File._visible);        }


It is tracing "Is File" and then "mc_File vis: undefined";

This code is inside a ContentItem.as class script and it works the first time but not the second?

View Replies !    View Related
Array Is Splicing For No Reason?
ActionScript Code:
var remoteListArray:Array = new Array();var listArray:Array = new Array('a0','b1','c2','d3','e4')var listPosition = 3;function makeRemoteListArray() {     remoteListArray = listArray;     remoteListArray.splice(listPosition+1);     trace(remoteListArray+" ORIG: "+listArray);}makeRemoteListArray();stop();// Output// a0,b1,c2,d3 ORIG: a0,b1,c2,d3// Should be// a0,b1,c2,d3 ORIG: a0,b1,c2,d3,e4  


Any way to stop it from splicing the original? or do I need to use slice or what?

View Replies !    View Related
[Flash 8 Pro] Any Reason This Won't Work?
Is there any reason why this shouldn't work?


Code:
stop();
// Forward Functions
// 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8
//
enterFwd.onRelease = function(){
gotoAndStop(2);
};
twoFwd.onRelease = function(){
gotoAndStop(3);
};
threeFwd.onRelease = function(){
gotoAndStop(4);
};
fourFwd.onRelease = function(){
gotoAndStop(5);
};
fiveFwd.onRelease = function(){
gotoAndStop(6);
};
sixFwd.onRelease = function(){
gotoAndStop(7);
};
sevenFwd.onRelease = function(){
gotoAndStop(8);
};
I can click on the first button with an instance name enterFwd and it takes me to the 2nd frame. When I click on the button with instance name twoFwd on frame 2, it doesn't do anything. This swf is so simple, intentionally, to ensure that its blunt functionality works. I'm driving myself crazy with why it doesn't work.

Also, i changed it so the first button instance onRelease goes to other frames besides 2, and it takes you there, but then the action for the movieclip on that stage doesn't work either. It's like the script only works once then its done.

it's as if it can't read the actionscript once it changes frames. I'm thinking I need a loop or something to make it read the script no matter what frame you're on?

View Replies !    View Related
MovieClip Gets Deleted For No Reason.
Hi, I'll cut to the chase, here's my code:


Code:

function loadThumbs(){
for (var i = 1; i <= totalImages; i++){
this.createEmptyMovieClip("athumb"+i, this.getNextHighestDepth());

var thumb = this["athumb"+i];
thumb._x = 50;
thumb._y = 50;
trace (thumb);
trace (thumb._x);
trace (thumb._y);
}
}

this.createEmptyMovieClip("positionChecker", 5042);
this.positionChecker.onEnterFrame = function(){
trace (this.athumb1._x);
trace (this.athumb1._y);
}
The positionchecker clip was created to check whether the clip has been added onto the stage or not. The strangest thing happens - the trace shows that the clip is created, and shows the x and y value. It then says undefined continuously.

* The clip is always on the stage, and always has the same instance name

* This code is contained inside said movieclip

* I've tried replacing the loop variable 'totalImages' with '1' - no difference

* I've tried changing the name of the created clip

* I've tried changing the depth of the created clip, to "12300 + i"

* I do not unload or remove any movieclips, and the main timeline is stopped

Regardless, the empty movie clip is deleted immediately after being created. Someone please help, this is driving me insane!

View Replies !    View Related
For Some Reason Only 1 Function Runs.....
I could be mistaken of course.... here is the code.


ActionScript Code:
picNames = ["pic1.jpg", "pic2.jpg", "pic3.jpg", "pic4.jpg", "pic5.jpg", "pic6.jpg"];picNamesB = ["pic7.jpg", "pic8.jpg", "pic9.jpg", "pic10.jpg", "pic11.jpg", "pic12.jpg"];pic1();pic2();function pic1() {    for (i=0; i<picNames.length; i++) {        clipa = this.createEmptyMovieClip("clipa"+i, +i);        clipa._y = 10;        clipa._x = i*90;        loadMovie(picNames[i], "clipa"+i);        trace("function pic1");    }}function pic2() {    for (i=0; i<picNamesB.length; i++) {        clipb = this.createEmptyMovieClip("container"+i, +i);        clipb._y = 100;        clipb._x = i*90;        loadMovie(picNamesB[i], "container"+i);        trace("function pic2");    }}


I can't understand, I've tried several things changing variables so that they are different and such.... I dont understand why only the last function will run... if i remove pic2(); then pic1(); will run if I put both then pic2(); will run and not pic1();...

i'm confused

View Replies !    View Related
For Some Reason Doesnt Work.....help Plz
flash mx AS not working going to mysql database using PHP......

// create a new loadVars object for the variables to send
varsToSend = new LoadVars();
myData = new Array();
varsToSend.venueName = venueName.text;
varsToSend.state = state.getSelectedItem().label;
varsToSend.city = city.getSelectedItem().label;
varsToSend.areaCode = areaCode.text;
varsToSend.venueType = venueType.getSelectedItem().label;
varsToSend.ageGroup = ageGroup.getSelectedItem().label;
varsToSend.musicType = musicType.getSelectedItem().label;
// include a variable to prevent cacheing - this forces the browser
// to make a new call to the server
varsToSend.clearCache = new Date().getTime();
// assign a variable to send - this will eventually come from the search box
varsToSend.myVar = "new";
// create a new loadVars object for the variables to be received
varsToReceive = new LoadVars();
// set up the onload caller
varsToReceive.onLoad = processData;
// set up the function to be called on onLoad
function processData(success) {
// split the results into arrays using the "|" delimiter - this creates three arrays
//trace("first pipe = " + varsToReceive.venueName);
venueNameArray = varsToReceive.venueName.split("|");
addressArray = varsToReceive.address.split("|");
cityArray = varsToReceive.city.split("|");
zipCodeArray = varsToReceive.zipCode.split("|");
areaCodeArray = varsToReceive.areaCode.split("|");
phoneNumberArray = varsToReceive.phoneNumber.split("|");
stateArray = varsToReceive.state.split("|");
// format the text for the output box
for (i=0; i<venueNameArray.length; i++) {
outputText.text += venueNameArray[i] + " " + addressArray[i] + " " + cityArray[i] + " " + stateArray[i] + " " + zipCodeArray[i] + " " + areaCodeArray[i] + " - " + phoneNumberArray[i] + "
";
//trace(venueNameArray[i] + " " + addressArray[i] + "" + cityArray[i] + " " + zipCodeArray[i]+ " " + areaCodeArray[i] + " - " + phoneNumberArray[i]);
}
// tell the movie to go to the last frame label
_level0.gotoAndStop("results");
}
// do the send and load action - I put 127.0.0.1 (localhost)
// you'll need to put your own domain name in
varsToSend.sendAndLoad("search.php", varsToReceive, "GET");
stop();

View Replies !    View Related
For Some Reason I Can't Seem To Pass Variables...
I am trying to pass some variables through email...

this is the code I am using:


Code:
on (release) {
getURL("mailto:james@xenondesign.com?subject=Visitor%20from%20website&body="+user_body, "_self", "POST");
}
It won't pass the variables though... (+user_body is the variable...)

Also, how can I pass multiple variables? (I am getting the variables from an input text field)

--This book I have is pretty useless... I followed their tutorial word for word... and this is how they say to do it...

View Replies !    View Related
For Some Reason Doenst Work Help Plz....
flash mx AS not working going to mysql database using PHP......

// create a new loadVars object for the variables to send
varsToSend = new LoadVars();
myData = new Array();
varsToSend.venueName = venueName.text;
varsToSend.state = state.getSelectedItem().label;
varsToSend.city = city.getSelectedItem().label;
varsToSend.areaCode = areaCode.text;
varsToSend.venueType = venueType.getSelectedItem().label;
varsToSend.ageGroup = ageGroup.getSelectedItem().label;
varsToSend.musicType = musicType.getSelectedItem().label;
// include a variable to prevent cacheing - this forces the browser
// to make a new call to the server
varsToSend.clearCache = new Date().getTime();
// assign a variable to send - this will eventually come from the search box
varsToSend.myVar = "new";
// create a new loadVars object for the variables to be received
varsToReceive = new LoadVars();
// set up the onload caller
varsToReceive.onLoad = processData;
// set up the function to be called on onLoad
function processData(success) {
// split the results into arrays using the "|" delimiter - this creates three arrays
//trace("first pipe = " + varsToReceive.venueName);
venueNameArray = varsToReceive.venueName.split("|");
addressArray = varsToReceive.address.split("|");
cityArray = varsToReceive.city.split("|");
zipCodeArray = varsToReceive.zipCode.split("|");
areaCodeArray = varsToReceive.areaCode.split("|");
phoneNumberArray = varsToReceive.phoneNumber.split("|");
stateArray = varsToReceive.state.split("|");
// format the text for the output box
for (i=0; i<venueNameArray.length; i++) {
outputText.text += venueNameArray[i] + " " + addressArray[i] + " " + cityArray[i] + " " + stateArray[i] + " " + zipCodeArray[i] + " " + areaCodeArray[i] + " - " + phoneNumberArray[i] + "
";
//trace(venueNameArray[i] + " " + addressArray[i] + "" + cityArray[i] + " " + zipCodeArray[i]+ " " + areaCodeArray[i] + " - " + phoneNumberArray[i]);
}
// tell the movie to go to the last frame label
_level0.gotoAndStop("results");
}
// do the send and load action - I put 127.0.0.1 (localhost)
// you'll need to put your own domain name in
varsToSend.sendAndLoad("search.php", varsToReceive, "GET");
stop();

View Replies !    View Related
Height Attribute Of _root Changes For No Reason
I've discovered a disturbing behavior. When detecting the _root.height in a loop, I get different values as the loop progresses. Here is the code, followed by the output of the trace actions. You'll notice that the stage dimensions somehow change as the loop progresses. I have no idea why...


Code:
for (i=1; i<=10; i++) {
duplicateMovieClip ("circle", ["circle"+i], i);
with (eval("circle"+i)) {
trace ("Created "+_name+".");
_x = Math.random()*_root._width;
_y = Math.random()*_root._height;
trace ("level0 height is "+_level0._height);
trace ("root height is "+_root._height + "
");
}
}

Now here's what this code produces.....

Created circle1.
level0 height is 105
root height is 105

Created circle2.
level0 height is 140.7
root height is 140.7

Created circle3.
level0 height is 193.1
root height is 193.1

Created circle4.
level0 height is 193.1
root height is 193.1

Created circle5.
level0 height is 229.45
root height is 229.45

Created circle6.
level0 height is 229.45
root height is 229.45

Created circle7.
level0 height is 292.75
root height is 292.75

Created circle8.
level0 height is 292.75
root height is 292.75

Created circle9.
level0 height is 292.75
root height is 292.75

Created circle10.
level0 height is 292.75
root height is 292.75


As you can see, the detected size of _root changes. Anyone know why?

View Replies !    View Related
Any Reason Why I Shouldn't Use Frame Loops?
I like to use frame loops for a lot of things: animating movement, gradually changing transparency, testing if a certain condition is true, etc., etc.,...
I like it better than using onClip events because I like to keep all my code in one movie clip, meaning I prefer frame actions to object actions.

Is there any reason why I shouldn't use frame loops? What, if any, would be the advantages of using onClip events? What, if any, are the pitfalls of frame loops? Is there anything other than frame loops and onClip events that could be used for the same purposes?

View Replies !    View Related
Jpgs Load, Gif's Dont., Any Reason?
Hi
I have a dynamic portfolio on my site and the gifs are not loading yet the jpgs do is there any reason for this?
the same AS is being used just the files being loaded are different.
any sugestions?
Thanks in advance

View Replies !    View Related
What's The Technical Reason For Video Crashing Off A CD?
I have been having the worst time trying to get video to run successfully off a cd. My video clips are no longer than 15 sec and they randomly crash the stand alone player. does anyone know the technical reasoning for this or even a work around? Thanks

View Replies !    View Related
Pixel Fonts Blurring For NO Reason
Has anyone ever found that pixel fonts are blurry, even when aligned to the left, and on a whole X, Y number throughout ALL the embedded movie clips? Its at the correct size and everything... everything seems to click into place when i add 0.3 to the Y co-ordinate? bit weird.. can anyone shed any light?

View Replies !    View Related
Free Sounds And Reason Refills ?
Hi,
im very new to the world of PC music, im trying my best to get together a good sound library.
I cant afford to buy the sample Cd and construction CD and im having trouble finding good sites where i can download free sounds
I want to make funky/deep house ,i want to get hold of some nice laid back sounds similar to the sounds in the Funk / soul loop section on this site. I also want Reason refills but only seem to find site where you have to pay to download
Can any one point me in the right direction and help me out ??
Thanks Joey @ www.dancemusicshop.co.uk

View Replies !    View Related
Copyright Đ 2005-08 www.BigResource.com, All rights reserved