What Is WRONG
Hi!
Is what is( or is there) wrong with this script??
It simply won't work.
Code:
on (press) {
startDrag(_root.menu.equip.bow);
}
on (release) {
stopDrag();
if (getProperty(_root.menu.equip.bow, _droptarget) eq _root.menu.equip.drop) {
_root.menu.equip.drop.gotoAndStop("bow");
setProperty(_root.menu.equip.bow, _x, "-52.1");
setProperty(_root.menu.equip.bow, _y, "-64.5");
_root.weapon = "bow";
} else {
setProperty(_root.menu.equip.bow, _x, "-52.1");
setProperty(_root.menu.equip.bow, _y, "-64.5");
}
}
FlashKit > Flash Help > Flash ActionScript
Posted on: 07-03-2002, 12:05 AM
View Complete Forum Thread with Replies
Sponsored Links:
Is My Whole Layout Just Wrong, Wrong, Wrong
I have uploaded my layout, I am starting to think that this is not how its done, I will explain.
I have one main swf where I have 5 diffrent section where I want to load 5 different swf into, but I also need one of the swf's which would be a button based one to be able to comunicate with the other 4. I totally think now tehre is an easier way of doing this than the way I'm doing it, can someone help me out here cos as you guy's know, the roots of a good page is in the layout at the begining.
I have uploaded my swfs so you know what I'm talking about.
Please, please comment...
View Replies !
View Related
Function Went Wrong....very Wrong.
Okey so i made a function that should, make two movieclips (balls) move around bouncing the edges of the screen....
but something is wrong... plz help...
when i start the movie, the whole picture is moved down to the right, and the balls aint moving, thou i can drag them around...
PHP Code:
left = 0;
right = 550;
top = 0;
bottom = 400;
xspeed = 5;
yspeed = 5;
ball01.onPress = doDrag;
ball01.onRelease = noDrag;
ball01.onReleaseOutside = noDrag;
ball02.onPress = doDrag;
ball02.onRelease = noDrag;
ball02.onReleaseOutside = noDrag;
ball01.onEnterFrame = ball;
ball02.onEnterFrame = ball;
function doDrag() {
this.startDrag();
this.dragging = true;
}
function noDrag() {
stopDrag();
this.dragging = false;
}
function ball() {
if (!dragging) {
_x = _x-xspeed;
if (_x-_width/2<left) {
_x = left+_width/2;
xspeed = -xspeed;
} else if (_x+_width/2>right) {
_x = right-_width/2;
xspeed = -xspeed;
}
_y = _y-yspeed;
if (_y-_height/2<top) {
_y = top+_height/2;
yspeed = -yspeed;
} else if (_y+_height/2>bottom) {
_y = bottom-_height/2;
yspeed = -yspeed;
}
}
}
View Replies !
View Related
Actins:wrong Syntax=correct, Right Syntax=wrong
Has any body made a similar observation:
when I want to load a pic into mc and write
_root.loadMovie("pic.jpg","mc");
I get a little window just the size of my pic but not my stage. But when I write:
_root.mc.loadMovie("pic.jpg");
everything is fine. I have a Mac, OS9.1. Is this related to the flashplayer in mac or what?
View Replies !
View Related
What's Wrong With This?
When I click the button, this AS should run;
on (release) {
ggg = getTimer();
}
In the fram I also have an MC with an animation in it. I do not want the animation to run at load, but to hold a few seconds, and then start running.
onClipEvent (Load) {
stop();
}
if (ggg = ggg ++ 3000) {
MC.play();
}
But, apparently there's something wrong, 'cause when I execute my movie Flash says that there's a ')' missing, but I cannot understand/locate where! I think that it has something to do with my equation in the if-action.
Btw, the script doesn't work in action, the animation starts immediately
View Replies !
View Related
What's Wrong?
hello!
i want to publish in flash 4 format.
i have got a button in a movie clip called 'nav' which is nested in a movieclip called 'navigation' which lives on the main timeline. on releasing the button i want the 'navigation'-movie to play. this is what i have got but it does not work. it forces the movie to start at frame one of the main timeline:
on (release) {
tellTarget ("_level0.navigation") {
play();
}
}
_root.navigation did not work at all.
what's wrong with it? or talking basic: how to target another clip in flash 4?
thanks for any help,
elo.
View Replies !
View Related
What Am I Doing Wrong?
Can anyine help what am I doing wrong?
Have a menu that I am trying to load variables into from a perl script. Within the script i placed the variables so that it would load into flash:
<PARAM NAME=movie value="/dragg2.swf?category={$ARGV[1]}&item={$ARGV[2]}">
Than in flash i have a button with the following:
on (press) {
loadVariables ("auction.cgi", "$ARGV[1]&$ARGV[2]&$firstbid[0]");
}
on (release) {
getURL ("http://www.sitename.com/cgi-bin/auction/all_categories.cgi?ask&category=$ARGV[1]&item=$ARGV[2]");
}
View Replies !
View Related
What's Wrong?
i'm creating a dynamic pie chart based on the tute i found here in flashkit. i have this part in my the AS:
aCount = new Array(47, 4, 23, 2, 4, 1, 13, 2);
aCategory = new Array("HEAD", "CDROM", "CONN", "MM", "COB", "DAT", "FDD", "PM",);
nElements = aCount.length;
aColor = new Array(0x339900, 0x0000FF, 0xcc66cc, 0x00cccc, 0x9933cc, 0xcc66cc, 0xcc33cc, 0x3366cc);
aPercent = new Array(nElements);
nDepth = 1;
but when i preview my movie i keep getting these errors:
Scene=Scene 1, Layer=Layer 1, Frame=1: Line 2: Operator '=' must be followed by an operand
aCategory = new Array("HEAD", "CDROM", "CONN", "MM", "COB", "DAT", "FDD", "PM",);
Scene=Scene 1, Layer=Layer 1, Frame=1: Line 3: ')' or ',' expected
nElements = aCount.length;
i can't seem to understand the error since im not that good in scripting stuff. hope someone could point me out what's the error all about and how could i remedy it. thanks in advance
View Replies !
View Related
Something Wrong Wif My Key Pls HELP
I put a "Pause_Play" MC on the layer "Actions", and write the following in the Object Actions,
onClipEvent (enterFrame) {
if (Key.isDown(80)) {
stop ();
}
}
but when i do a Test Movie, the movie doesn't stop uppon pressing "P" on my keyboard. Why?
View Replies !
View Related
What's Wrong ? Help Me Please :(
What do you think about this flash ? What's wrong with it ? when it loads for the first time, it ask a quastion to cancel some scripts, then when you refresh the page all is correct ! Help me please.
http://www.navid.8k.com/baha/
View Replies !
View Related
Don't Know What Went Wrong...
Here's my current situation:
I have 2 scenes,"mainsite"(contains my main website) and "preloader" (which is my ...erm...preloader).
In my mainsite timeline, i have 3 frames. In frame 1 i have this:
virgin = 1;
in frame 2 i have a stop(), and frame 3 onwards is an animation.
Now, in frame 2 i have an MC which contains a 30-frame animation. at frame 30, i have this:
stop ();
if (_root.virgin != 0) {
_parent.gotoAndPlay("mainsite", 3);
}
What im trying to do is to get the MC animation to finish playing before playing the animation in my main timeline.
Everything worked perfectly, UNTIL i inserted my preloader.
In frame 1 of my preloader i have this:
ifFrameLoaded ("mainsite", 18) {
gotoAndPlay ("mainsite", 1);
}
After i did my preloader, my "mainsite" gets stuck at frame 2, where my stop() is.
Anyone knows where the problem lies? Thanx...
View Replies !
View Related
What Went Wrong?
when I tried to reply on a question in a previous thread my computer hung and then the thread broke. so here the question again. sorry albywalbywoo for not answering on your reply.
you asked for more details on the problem though....well I hope this will do
I have a scrollbarr wich scrolls dynamic txt (pretty nice design by ilanJ). It loads .txt files with loadvariables from the root of the same folder where the .fla is in.
I format these files using HTML tags.
For lots of things this works just fine, but I want to use a button in this .txt file that can play a MC in flash....
hope that's enough informtion about it
thanks
View Replies !
View Related
Can Someone Tell Me What's Wrong With This?
I am trying to set a conditional statement to test to see which button is pressed. If button01 is pressed then load "movie01.swf" into level 1, if button02 is pressed then load "movie02.swf" into level 1, and so forth.
I attached the following to a mc on the root timeline of level0
the buttons are also on this level as well.
-------------------------------------------------------
onClipEvent (load) {
var button01 = "1";
var button02 = "2";
var button03 = "3";
}
onClipEvent (enterFrame) {
if (button01 == "1") {
loadMovieNum ("movie01.swf", 2);
} else if (button02 == "2") {
loadMovieNum ("movie02.swf", 2);
} else if (button03 == "3") {
loadMovieNum ("movie03.swf", 2);
}
}
-------------------------------------------------------
and then this to the buttons accordingly
on (release) {
button02 = "2";
}
I am unable to get it to work.
can you tell me what it is I am doing incorrectly?
Thanks
View Replies !
View Related
Do Not Know What Is Wrong
Hi everybody! I am kind of new to Flash and just completed my few first sites that posed two problems that I can't figure out myself.
1)My last site i did would behave differently on diffrent screen sizes running on identical systems. It's realy strange. On my computer it works perfectly as well as on many others. But since i had lots of people going to the site i've got number of complaints that site is not working. People would say that nothing is moving and they can not get to diffrent sections. It's seems to be only a problem on smaller monitors (however I am not completely sure). So if you people could go and see it (it's http://www.zeitny.com) and if you incounter the same problem and know how to fix it please let me know 'couse i am going bananas.
2)Also if somebody could give me a hint how to do those java pop-up windows i also would be very gratefull.
Thanks for your time
Pete
View Replies !
View Related
What Wrong With This
just won't work...is this right?
_level50.Area.gotoAndPlay("areaDropOut");
basically I am trying to target a movieclip thats on the _root of level 50 called area and get that clip to go to a frame called "areaDropOut" within it...
what's wrong with it..am I going mad..
stu
View Replies !
View Related
Why Is This Wrong?
stop ();
function createButtons(){
// create the invisible buttons!
for(i=0;i<6;i++) {
for(k=0;k<6;k++) {
attachMovie("masterpiece","button"+i+k,4);
_root["button"+i+k]._x = 183.3 + (i*56) ;
_root["button"+i+k]._y = 24.4 + (k*50);
}
}
}
i want it to make 36 movie clips like this (all on one layer, they arent going to move)
should be:
x x x x x x
x x x x x x
x x x x x x
x x x x x x
x x x x x x
x x x x x x
what really happens
x
tell me why
View Replies !
View Related
Help..what Could Be Wrong In Here?
Here is the problem:
I Have two Swf right?
and in the second swf file I want to link to the second scene of the first swf file (scene1,since the first one is named as preloader, and only for this time I would like to skip it )
I am doing something like this
In the first frame of the first swf file:
var x;
x = "1";
y = _level0.x;
if (y==1) {
gotoAndPlay (1);
} else if (y==2) {
gotoAndPlay ("Scene 1", 1);
}
then
in the second swf file in the first frame:
var y;
y = _level0.x;
and in the button of the second swf file:
on (release) {
loadMovie ("ano1.swf", "gotoAndPlay (_level0.x)");
}
The problem is that this do not work.
Any Help? Please?
thanks
View Replies !
View Related
Am I Doing Something Wrong?
The musicloops I download from flashkit won't loop as I want 'em to loop. What I mean is there's allways a little "hack" in the end of the loop. Am I doing something wrong or do I have to live with this? Maybe I should mention that I download the loops as Mp3.
//raw
View Replies !
View Related
What Am I Doing Wrong?
im trying to get a scrolling text box with a text source from flash 4 to work when i import it to flash 5 .......all i get is when i try to manipulate the script is " the script wasnt copied due to errors" what can i do???
View Replies !
View Related
WHAT'S WRONG WITH ME?/
Why the heck won't this syntax work???? It's pissing me off to no end (pardon my french).
on (rollOut) {
nav = "nav services";
}
on (rollOver) {
tellTarget ("services") {
play ();
if (nav = "blank") {
} else if (nav = "nav services") {
tellTarget ("services") {
stop ();
}
}
}
}
Initially, the variable "nav" is set to "blank" in a timeline frame. What I want to happen is to when I rollOut the hotspot, I want the variable "nav" to be set to "nav services" so that if you roll over the hotspot again and nav = "nav services" the movie it's calling won't play again (and return to it's initial invisible state) ... here's the link. PLEASE HELP ME!!!!! I'M AN IDIOT!!!
http://www.20202020.net/allnetnav.htm
thanks a million,
greg
420
View Replies !
View Related
What Am I Doing Wrong.....?
Hello pplz,
Here i am generating some sort of count down based upon a fixed date (lets say may 15th, as used in the code below)
If i can still do some calculating i should get a result somewhere (counted from this post's entry date March 22) around the 55, but when running this script the result displayed in my swf doesn't go further than 39
is there anyone in the house that can tell me what goes wrong down here......
//-------------CODE--------------------------------
now = new Date();
dateNow = now.getDate();
monthNow = now.getMonth();
daysInMarch = 31;
daysInApril = 30;
daysInMay = 15;
if (monthNow == 1) {
daysLeftInMarch = daysInMarch-dateNow;
daysLeft = daysLeftInMarch+daysInApril+31;
} else if (monthNow == 2) {
daysLeftInApril = daysInApril-dateNow;
daysLeft = daysLeftInApril+31;
} else if (monthNow == 3) {
daysLeftInMay = daysInMay-dateNow;
daysLeft = daysLeftInMay+31;
} else {
daysLeft = 31-dateNow;
}
DateCount = daysLeft;
//----------------CODE-------------------------
Thanx in advance
View Replies !
View Related
No No No You Got Me All Wrong Man
ok, what you see on that link, this is how I did it:
1. I make 5 MCs, and place them off the stage, and give them names.
2. I make 5 instances of my button - 1btn per MC.
3. when I roll over button 1, it moves MC1 from it's orig. location (off-stage) to a new location on the stage.
4. when I roll out of button 1, MC1 goes back to original position.
I do this for every button, referencing each MC.
**********************
now what I REALLY want to do, is to make MC1 fade away after I roll out of button1, so it doesn't go away instantly, but rather fades away.
**********************
sid
View Replies !
View Related
What´s Wrong Here?
Hello all. Have a look at this:
------------------------------
var1 = 1;
var2 = 1;
if (var1 == 1 && var2 == 1) {
trace ("Result OK");
} else {
trace ("Operation Failed");
}
------------------------------
Is this script ok?, If it is, why it returns
"Operation failed".
Thanks for having a look, I´m stuck in there.
aX--.
View Replies !
View Related
What Is Wrong HERE?
The MC is duplicated just fine but it won't go away afterwards!
onClipEvent(enterFrame){
if(this.hitTest(_root.view)){
pylon2.duplicateMovieClip("pylon2", "pylon2"+_root.i,1);
_root.++;
_root["pylon2"+i]._x=200;
_root["pylon2"+i]._y=200;
}
else
{
_root["pylon2"+i].removeMovieClip();
}
}
I've tried many MANY different combinations.
View Replies !
View Related
What Am I Doing Wrong ?
can someone please tell me what i've done wrong, i have two movie clips. One of them is not suppost to move and the other is moved using actionscript which increases the x value of the movie using setproperty.
However when i do this although i have given each movie a different instance name and am only changing the x value of one movie they both move across the screen.
Why is this happening ???
View Replies !
View Related
WHAT AM I DOING WRONG?
Hi All.
i am trying to produce a portfolio, i have created all the elements, but i am having a problem.
i want to show a larger version of a design as you mouseover a smaller version of the graphic, i have done this using the following code between the button and movie:-
on (rollOver, release) {
if (myMovie._currentframe == 1) {
myMovie.gotoAndPlay(1);
};
}
but when i mouse over the next small portfolio image it just overlays the movie over the previous movie, how do i adjust this code so the previous movie is cleared when i mouseover the next image so they don't overlay each other??
thanks
Cappa
------------------
View Replies !
View Related
What Am I Doing Wrong?
I have a script:
on (release) {
if (password == "" and account == "") {
gotoAndPlay ("scene 1", 32);
} else {
password = password.toLowerCase();
account = account.toLowerCase();
getURL ("http://www.somesite.com/check.asp?a="+account+"&p="+password);
}
}
But It will not flag the password and account if they are empty. It just passes the empty params to the .asp page!!!
What is wrong with this script?
View Replies !
View Related
Can Someone Tell Me What I'm Doing Wrong?
Ok, this might be a little hard to explain but here goes. Let me try to simply it. 5 Frames, I'm trying to spell the work Flash. Frame 1 spells, out the F. Frame 2 spells out the F with the L added in. Frame 3 with FLA. and when Frame 4 comes around, when I add in the S, the S appears in the previous 3 frames, why is that, what would cause it to do that? I've tried a few different things, but everytime, I add in anything past the FLA, it always appears in previous frames. Hope someone can help, thnx
View Replies !
View Related
What Am I Doing Wrong?
Hello,
I am using Flash 4. I want to have a sequence where
you can move a knife at the bad guy. I imported my image
of the badguy. Then, on another layer, I imported the
image of my knife. I made the knife a movie clip. I then
added a button to the knife where you can drag it. But
when I tested the movie, when you move the knife, the
image of the bad guy moves also. I tried it on just one
layer with the same results. Any suggestions what I am
doing wrong? I haven't tried something like this in
some time so I must be forgetting something.
Thanks, Bill
View Replies !
View Related
What Can I Be Doing Wrong ?
OK... letme see if I could explain this correctly.
This is my situation. I have a Flash movie that uses several sound clips that need to sync with words on the screen. I got the sound to play in sync with the words and stop when the user leaves that certain section... thats not my problem. My problem begins on one section I have the main timeline stop on a frame where a movie clip plays. This movie clip contains the sound object and several layers with text. At the end I want this movie clip not to loop, so I placed stop; command at the last frame. But this doesnt seem to work. The movie clip just loops over and over again with the sound object also playing again. If you exit that section by clicking a button... then the sound continues playing until it comes to its end.
I think that if I'm able to get the movie clip from looping I would probably solve my problems. I've even tried stopping the soundobject at the end of the movie clip and as a "release" button action thingy... by inserting the command mysoundobject.stop(); but neither work.
This is soooo frustrating me! Can someone try and help me please? Thanks!
View Replies !
View Related
What Do U Think Is Wrong?
: hi everyone :
: I made this flash site with buttons/pics on the background, but when a button is clicked on, the background layer is still active which causes other buttons to be clicked on while viewing :
: you can check out and I'd like to know what to do to help that problem, http://malini.**********:8080/dheree.html :
: thanks for viewing =) :
View Replies !
View Related
What Im Doing Wrong?
percentLoaded = (_root.MC.getBytesLoaded()/_root.MC.getBytesTotal()*100);
percent = percentLoaded+"%";
I dont know whats wrong with the above script =( it should display the precent loaded but it doesn't, i only get -19800
-110000 and things like that =( !!!!
please tell me where's the mistake!!!!
THX..
View Replies !
View Related
What Am I Doing Wrong?
Here is my script. I am trying to get a MC to move usinng the Cursor keys. I type this code in using then Action script drop soen menus (I'm very new at this)
for some reason this code dosen't work, My MC just moves to the bottom of the screen with out any keys being pressed. i think i might be typing the code in wrong when I get the the '_Y' bit i have a } in between the 'IF' statement and the '_Y' As i say I am new to this action script lark and don't know the effects of having '}' in the code, or having extra brackets innthe code. So many people have sent me this bit of code it must be right, What am I doing wrong for it not nto work properly. I would appreciate if sombody could explain in detail how to input this code in the correct way (sound stupid but would be a great help)
Code:
onClipEvent (enterFrame){
if(Key.isDown(Key.DOWN){
}
_y+=5;
}
}
Thanks
View Replies !
View Related
WHAT Is Wrong?
Code:
MovieClip.prototype.hitBack = function (enemy){
e_x = enemy._x;
e_y = enemy._y;
l_x = _root.link._x;
l_y = _root.link._y;
if (e_y<l_y){
setProperty(enemy, _y, -5);
} else {
setProperty(enemy, _y, +5);
}
if (e_x<l_x){
setProperty(enemy, _x, -5);
} else {
setProperty(enemy, _x, +5);
}
};
can someone tell me what is wrong?
I have a character, and if it runs into "enemy" it runs this code, but I does wierd things. I am trying to make a knockback effect.
View Replies !
View Related
What Am I Doing Wrong?
Hi I posted this problem before just a few days ago but I really just cant figure out the reason why this won't work. I know there are alternatives to doing this but I still am hoping that someone can tell me what's wrong with what I did:
An mc "blink" is inside another "myMC". I want blink to start blinking when myMC reaches its last frame. So on the 1st frame of the "blink" timeline, I have a stop action and the graphic (to stop the blink), 2nd frame, no actions but has the graphic, third frame has a gotoandplay(2) but no graphic.
now on the last frame of myMC, I have --blink.gotoAndPlay(2) to start it but it doesn't work. Am I doing something wrong?
Please help. Thanx
View Replies !
View Related
What's Wrong Here?
hi folk, my first post (and I guess it won't be the last)
okay, I created the following button in flash. (you can download the source from the link below).
I shortly describe what I tried to do
The up button-state should be just the red square
on over the red should fade to blue square and then hold @ the blue square.
on release the button should fade back to its first color red.
unfortunately when I "test the scene" the square is flickering strange. I ran out of clues, because I build the button from another scene-structure (a movie I downloaded here from the section). Generally I am absolutley new to flash and I try to gain some knowledge by understanding structures from other movies
thus, maybe there is someone out who can explain me what I have to do, to let the button function as I want. You also can modify the FLAscene and email it to maddes_schmidt@yahoo.de
Finally the link where you can download the file
http://home.t-online.de/home/s.maddes/whatswrong.fla
(could be maybe last about 2min's until my provider checked the file
View Replies !
View Related
What Is Wrong?
hey, my script doesnt work and i have no idea why. it says that getbytestotal is 0 even though i know the link is good.
it just doesnt want to load...
load("nav","http://www.helpjoey.com/pasc/Nav1.swf","Navigation",100,100);
function load(mcname,loc,what,x,y){
preloader._visible=true;
preloader.what="Loading: "+what+"...";
duplicateMovieClip("mc", mcname, 1);
root[mcname]._visible=false;
root[mcname].loadMovie(loc,GET);
preload.percent = "0%";
preload.bytes = "0 of " + Math.round((_root[mcname].getBytesTotal() / 1024) * 1000) / 1000 + " Kb";
do {
preloader.percent = (Math.floor (_root[mcname].getBytesLoaded() / _root[mcname].getBytesTotal() * 100) + "%");
preloader.bytes = (Math.floor(Math.round((_root[mcname].getBytesLoaded() / 1024) * 1000) / 1000) + " Kb of " + Math.floor(Math.round((_root[mcname].getBytesTotal() / 1024) * 1000) / 1000) + " Kb total Loaded.");
} while (_root[mcname].getBytesLoaded() != _root[mcname].getBytesTotal());
preloader.percent = "100%";
preloader.bytes = (Math.floor(Math.round((_root[mcname].getBytesLoaded() / 1024) * 1000) / 1000) + " Kb of " + Math.floor(Math.round((_root[mcname].getBytesTotal() / 1024) * 1000) / 1000) + " Kb total Loaded.");
root[mcname]._visible=true;
root[mcname]._x=x;
root[mcname]._y=y;
//preloader._visible=false;
}
View Replies !
View Related
What Am I Doing Wrong?
Ok, i've got a little problem...
i've got a preloader in my first scene, when it finishes loading a button appears in order to start playing the next scene. The button has a movie clip as its over state (i dont know if this effects anything or not.)
On the last keyframe of my animation the button has the following script:
on(release){
gotoAndPlay("scene2", "1");
}
as far as i know this is the standard way to accomplish a scene switch. (please correct me if i am mistaken)
i receve the following error message:
Scene=1_Loader,Layer=Loader_tippointer_button_ente r,Frame=15: Line 1: Mouse events are permitted only for button instances
on (release) {
what is it that i am doing wrong? where is it safe to use the on( command?
any help would be greatly appreciated.
View Replies !
View Related
What's Wrong?
I've got this code:
loadVariables ("mmm.txt", this);
aArray = txtArr.split("~");
var numof = Number(mmmN);
for (n=0; n<numof; n++)
{
// here I want to use aArray[n] somehow
}
and I have this in the mmm.txt file:
mmmN=3&txtArr=test1~test2~test3
And it doesn't work. It looks like the vars get loaded after this script run. Does it make sence? In other words:
if I look at variables values "aArray" is undefined and "numof" is 0 and "a" with "mmmn" look like have correct values, but ... Here is listing of vars from flash test tool:
Level #0:
Variable _level0.$version = "WIN 5,0,30,0"
Movie Clip: Target="_level0.r1"
Variable _level0.r1.aArray = undefined
Variable _level0.r1.numof = 0
Variable _level0.r1.n = 0
Variable _level0.r1.mmmN = "10"
Variable _level0.r1.txtArr = "test1~test2~test3"
Please help!!
View Replies !
View Related
What's Wrong With This?
On the button inside of my move i have on(press){start();}
here is the start() code: Why won't this work? When I click on the movie it duplicates and I can drag it. But when i click again it disapears.
-----------------------------------------------------------
level = 1000;
xpos = _root.X_mc._x;
ypos = _root.X_mc._y;
//_root.X_mc.duplicateMovieClip(newX,level);
X_mc._visible = false;
function start()
{
_root.X_mc.duplicateMovieClip(newX+level ,level);
newX._x = xpos;
newX._y = ypos;
level++;
drag();
trace(newX+level);
}
function drag()
{
this.startDrag();
}
function stopdrag()
{
this.stopDrag();
}
View Replies !
View Related
What I Am Doing Wrong Here
on (release) {
_root.home_mc.help_mc.gotoAndStop(1);
}
I have a button name Help out side of the movie clip but it just wont load that like...
and I don't want to move the button and put it inside the movie clip.
any suggestions?
View Replies !
View Related
There Is Something Wrong Here...
I keep posting my images for the 3d art gallery at flashkit...but they never get posted on...i mean looking at the other pictures i dont think mine is so bad that it cannot be posted on it...so there seems to be something seriouslt wrong here...
Cheers
IGOR
View Replies !
View Related
Where Was I Wrong?
I don't know where was I wrong. I use the commponent to create a chatroom and use the TextChat component ¡BPeopleList component and Simple Connect component in my application. Also I put a main.asc in Flash Communcation Server that connect with client and server.
It only show the name who login in the PeopleList. When the client wants to type something in the TextChat component,it's nothing words in the TextChat component.
Please help me and point me in the right direction. Any help would be greatly appreciated. Thanks.
Best regards,
softip
View Replies !
View Related
What Is Wrong Here?
I'm making a program similar to the 'pipes' screen saver for Windows. ( Only not 3d ) at least yet...
Anyways, Each MC in its load event runs a random number then creates another MC accordingly be it a vertical, horizontal or elbow link.
But the links keep appearing randomly all over the screen.
onClipEvent(load){
// check amount of instances
_root.Pcount+=1;
if(_root.Pcount<_root.max){
// update position
this._x=_root.xpos-_root.offset;
this._y=_root.ypos;
// update global variable
_root.xpos=this._x;
_root.ypos=this._y;
// if position is outside view update accordingly
if(this._x<0){this._x=999;}
// set chaos
kos=Math.floor(random(_root.kosSet));
// increment i
_root.i++;
// create new pipe link
if(kos<=46){duplicateMovieClip(_root.Hleft,"_root. Hleft"+_root.i,_root.i);}
if(kos==47){duplicateMovieClip(_root.elbow1,"_root .elbow1"+_root.i,_root.i);}
if(kos==48){duplicateMovieClip(_root.elbow7,"_root .elbow7"+_root.i,_root.i);}
}
}
help...please
View Replies !
View Related
What's Wrong With This?
Hi there,
I tried to create a very simple scrolling system, but it doesn't give anything... . What's wrong? this is for the 'up-button'
on (release) {
if (instancename._y>(-10)) {
} else {
instancename._y = instancename._y+10;
}
}
the only thing I can guess is the (-10), but how else do you tell it that it has to change only when it's bigger than -10?
grtz
robin
View Replies !
View Related
What Am I Doing Wrong?
Is it possible to have the scene name being a variable in the gotoAndPlay action?
Here's what I'm trying to do:
On the first frame:
SlideName = Intro
On the last frame:
gotoAndPlay("SlideName", 1);
I can't get it to work. What am I doing wrong?
Thanks in advance for your help.
Fabrice
View Replies !
View Related
What's Wrong With This A/c?
In the first frame of my fla file called MCloader I have a MC symbol with an instance name of main_display for my movies to load into.
I also have this action on the first frame;
loadMovie("blue.swf", main_display);
function MCloader(finished) {
if (finished=="true"){
loadMovie("orange.swf", main_display);
function MCloader(finished) {
if (finished=="true"){
loadMovie("green.swf", main_display);
}
}
}
}
At the end of each move blue, orange, green, I have this action in the last frame;
finished = "true";
_root.MCloader(finished);
stop();
When I text the MCloader.fla file it starts fine but the second swf file called orange keeps looping. What do I have written wrong?
Also, what exactly does the function MCloader do?
Does my main .fla file need to be called MCloader?
Thanks
View Replies !
View Related
What Am I Doing Wrong?
Got a weird problem..
I have a button inside a movie clip in the first scene, the scene name is called "test"... when you press that button, I want the root movie to go to scene 2 which is named "mainmovie"... I thought the actionscript would be:
on (release) {
_root.gotoAndStop("mainmovie", 1);
}
But it's not working.. any idea what I'm doing wrong..
I did find a work around to it... you need to tell the button to go to the _root scene that it's in.. tell it to go to frame 5 for instance.. and in frame 5 there's an actionscript there to go to scene "mainmovie" of the root.. shehshhh.. is there any direct way to a second scene of the main timeline from a button inside a movie clip? Let me know what's up! Thanks.
Draconis
View Replies !
View Related
Something Wrong With?...
Hi all
Why it dosent jump to label "display2"?
I am trying to load the php file, which loads text file// proxy connection // When var is empty in text file I need to jump to label display2.....what is wrong with below code?
Thanks
System.security.allowDomain("http://www.someurl.com");
System.useCodePage = true;
// Conents through proxy script
myVars = new LoadVars();
myVars.onLoad = function(success) {
if (success) {
// All vars are stored as properties in the myVars object you can refer to this
// or convert these vars like below.
_root.heading = myVars.heading;
_root.content = myVars.content;
_root.preis = myVars.Preis;
_root.link = myVars.link;
_root.state = myVars.state;
} else {
_root.gotoAndStop("display2");
//_root.content = "loading failed!";
}
};
function loadPHP() {
myVars.sendAndLoad("readfile.php", myVars, "POST");
}
// Init loading
loadPHP();
View Replies !
View Related
|