See Related Forum Messages: Follow the Links Below to View Complete Thread
Freaky Bug
i am working on a web gallery, nothing special. but this is my first time doing anything like this and im running into a few problems.
first - i have no idea how to tell a function that i want it to apply itself to whoever called the function. for example, i have a MovieClip named cc01, when it is double clicked, i wanted it to run through certain resizing and entering functions. thing is, nothing happens unless i specifically put "cc01" as the target of the function. now thats fine if the only box i have is "cc01", but i was hoping to make more (cc01 - cc30). im hoping not to have to writng all the code below each and every button. does anyone know how to make a certain stretch of code apply to every movieclip that calls it?
second - i have a bug, i have no clue why this isnt working. below is all the code i have. i wanted a shrunk cc01 to be draggable anytime you click and hold on to it (it also shrinks alittle using tweening code i got from one of the tutorials on this site). then when you double click, i want it to enlarge and center (i dont want it to be draggable at this point). then when you doubleclick again, it goes back to its small size and goes back to where it was and becomes draggable again.
the draggable works, the tweening works and the enlarging and centering works, however, it doesnt wait for me to double click to shrink back, only a single press is nessesary. i can figure out why.
all i have on the stage is a movieclip named cc01
Code:
//switch so i can tell if the picture is open or not
var ums:Boolean = true;
//second switch because i thought it might fix the bug
var ums2:Boolean = true;
trace(ums);
trace(ums2);
//load tween affects which is in a .as file
var te = new tweenEffects();
var clickCounter:Number = 0; //Double Clic
var clickTimer:Number = 0; //Double Clic
var timerID:Number; //Double Clic
cc01.onLoad = function(){
te.fadeIn(this);//doesnt work
};
//at this point im trying to tell it only to be draggable
//when the picture is small, but its not working, i think the
//bug is somewhere here
cc01.onPress = function(){
if (ums2 = true){
startDrag(this);//works
te.changeWH(this, 110, 83);//works
};
};
cc01.onRelease = function(){
if (ums = true){
stopDrag();//works
te.changeWH(this, 125, 94);//works
};
clickCounter++;
if (clickCounter == 1){
timerID = setInterval(clickDuration,250);//works
};
if (clickCounter == 2){
if (ums = true){
ums = false;//works
ums2 = false;//works
te.changeXYscale(this, 700, 500);//works
te.gotoXY(this, 400, 300);//works
trace(ums);
trace(ums2);
}else{
ums = true;//doesnt work cause program never gets here
ums2 = true;//ditto
te.changeXYscale(this, 125, 94);//ditto
trace(ums);
trace(ums2);
};
clickCounter = 0;//everything from here down works
clickTimer = 0;
clearInterval(timerID);
};
};
function resetBtn(){
clickCounter = 0
clickTimer = 0
};
function clickDuration(){
clickTimer++;
if (clickTimer==2){
clearInterval(timerID);
resetBtn();
};
};
any help would be greatly apprieciated
Freaky Stuff
Hey ppl...
Check this out. Im trying to use the Loadmovie action on a file that is at http://www.andelusia.com/radio.swf
If you notice it werx fine. But then if you go to http://www.andelusia.com this is the same swf after it has been loaded with loadmovie to a level...notice the sound doesnt werk. I have tried to load the radio with a loadmovie with a target to a blank movieclip...same result. If anyone has an opinion on what this might be or how to get rid of it pls tell me thx.
andelu
Freaky Lines
i got these freaky lines going through my movie there is like 5 of them and they span the whole movie. the are differant colors but they dont match the color of any vector i used in the movie. they are no where in my movie when im working in the .fla but when i publish they appear. its really freaky and i have no idea why they show up. if you guys experianced this before please help.
Image Looking Freaky
Hi, I save an image from adobe and import it into flash and scale it to the proper size but they look all jagget and weired uncleared. They seem to be loosing quality, and the image quality setting says it's at 50, even though I put it to 100 it remains the same.
Help. Thank you.
Freaky But Cool.. Don't Ya Just Hate...
Dont you just hate typing out the for loop syntax? Well I do.
I just about fell out of my chair when I tried this and it actually worked on the trace function the first time!! Gave me the woolies I tell ya. The array one took a few head cocks and a "hmmmm. Aha!" or two... but It does seem to work. Let me know if you come up with freaky uses for this little diddy.
Code:
Iterate = function (low,high,thefunction) {
for (iter=low;iter<high;iter++) {
eval(thefunction)(iter)
}
}
x = new Array()
Iterate(0,100,"x.push")
or try
Iterate(0,100,"trace");
hehe.. enjoy fellow ASers
Freaky Text Thing...
Trying to learn Flash here. I've created an ad banner (easy now, I've only been using this Flash stuff a couple weeks now) and imported some SWFx text effects. Somewhere along the line, the capital "P" and "R" characters have gotten their tops filled in, and not by me. No others, just the "P" and "R." Check it out here:
http://www.utopiatan.com/caltanflash.html
I have absolutely no idea why this would have occurred, but there it is. Any ideas?
Your Pal™,
Russ
Freaky Uploading Problem
Here's the deal:
1. I saved my fla file
2. I published my Flash movie which generated swf and html files
3. When I try to upload the html file to a web server, only the previously saved version transfers
4. When I try to save it to another local directory, it saves the new version.
I tried changing the name of the file and uploading to several different http servers... still no luck.
Any help would be immensely appreciated.
I'm a newbie. Please excuse my novice ways.
Flashrocks21
Freaky Text Problem
prepare yourself for serious weirdness....
client decided on a different font (after we finished everything), so i had to go change the font. in one page, whenever i change the font in one text block, the XML-driven lists stop being rendered. they load, according to the trace statements, but nothing actually renders. when i change it back to the original font, boink! everything is just fine.
if i delete the text and create a new field... same thing. i finally had to hide the thing and make a new text block in it's place.
W.T.F.
anyone else come across this phenomenon? any fixes?
WR!
Animating Freaky Lines
Hi guys,
I've been stuck on this for a couple of hours now and figured I might get some hints from you that could get me in the right direction.
I'm trying to animate some "freaky lines", eg. straight lines that go berserk and flip out. I've tried shape tweening them, but as soon as the line crosses over itself the animation looks like crap.
An example of what I'm trying to accomplish:
Has anyone got any suggestions? Thanks in advance
Freaky Loading Text Question
Hi,
I have this freaky question. I wouldn't even know where to start looking for the answer.I want to load the same external textfile in two different textfields. No problem. My freaky question is: Can I adapt the text a little in one of the two fields, more specifically: leave out the last three symbols/letters?
For instance:
Elvis would have been dead if he was still alive >>>
and:
Elvis would have been dead if he was still alive
The only trick I can think of is embedding the font, but not embedding the > sign. Is that possible? I am using Verdana here.
Well, thanks for looking,
Jerrj.
Freaky External Loading Text Problem
ok, i am stuck. I am loading external text from a .txt files. the text loads FINE when i preview it using control-->test movie. But when i publish it and just view it in flash player (or any browser for that matter ) it doesn't load. If you need my .fla tell me and i will post it.
Freaky External Loading Text Problem
ok, i am stuck. I am loading external text from a .txt files. the text loads FINE when i preview it using control-->test movie. But when i publish it and just view it in flash player (or any browser for that matter ) it doesn't load. If you need my .fla tell me and i will post it.
Freaky Flash Player Problems (Uninstall Flash?)
I was wondering if anyone new how to uninstall the Flash player. One of my clients has a corrupt Flash plugin. She's upgraded to Flash Player 6 online and I've even given her the Flash Player.exe file to install but whenever she views them they'll get load....get to 100%...and then sit there. Weirdest thing.
Anyway, uninstalling Flash was my wonderment for the day. Is it possible?
|