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




Ugh.. How Can This Be True? Var Checking.



This is buggin me pretty bad.

I have 2 textboxes, one named "answer1" and the other "answer2". In the timeline is this code:
code:
stop();
//
q1 = new Object();
q1.question = "What is 3+5?";
q1.correctAnswer = "8";
q1.answer1 = "6";

//
_level0.question.text = q1.question;
_level0.answer1.text = q1.correctAnswer;
_level0.answer2.text = q1.answer1;

On buttons next to 'answer1' and 'answer2' I have this, respectively.
code: onClipEvent (load) {
var textbox = _level0.answer1.text
onRelease();
}
on (release) {
trace(textbox)
if (textbox.text == q1.correctAnswer) {
trace("Score + 1");
} else {
trace("Incorrect");
}
}

//
// Button 2:
//

onClipEvent (load) {
var textbox = _level0.answer2.text
onRelease();
}
on (release) {
trace(textbox)
if (textbox.text === q1.correctAnswer) {
trace("Score + 1");
} else {
trace("Incorrect");
}
}

And they both return true. HOW?! Ugh.

This is pretty urgent, so please and thanks.



FlashKit > Flash Help > Flash ActionScript
Posted on: 04-01-2004, 02:25 AM


View Complete Forum Thread with Replies

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

Checking True Vs False
Imagine if you will, a timeline with 60 frames. On frame 5 we set a varable equal to "true" and on frame 30 we set a varibiable equal to "false" simple right. Add into the equation a scrubber that alows the user to skip around in the movie, just like a quicktime movie in the quicktime player, you can drag a handle or click the timeline to effect where you are in the movie.

Here's where my question comes in. If the viewer is on frame 53 our variable is set to "false" now say the user uses the scrubber and jumps to frame 12 well our variable should be set to "true" now but because the user din't land on frame 5 the variable didn't get reset. How can I fix it so the when the scrubber is used it knows whether the varabile should be set to true or false?

Thanks

Checking For True/False
Last edited by MikeOliver : 2004-02-14 at 20:52.
























Hey Guys,
Im trying to do a constant check to see if the RollOver on a specific mc is true or not. But I cant seem to get it working.
I was wondering if anyone has any better suggestions as to how to do it or, help me get my code working. I posted what I have below.
Thanks for the help!



ActionScript Code:
mc.onEnterFrame = function() {
    Foo();
    trace("Calling Foo Function");
}
 
function Foo() {
    mc.onRollOver = function() {
        trace("TRUE");
    }
 
    mc.onRollOut = function() {
    trace("FALSE");
    }
}

True False Quiz In Flash (answer Checking& Marks Counting Problem)
hello, i've created a true/ false quiz in flash 6.

the question appeared with 2 radio buttons and the user need to make a selection and press the check answer button.

however, i dont manage to make the check button to display an error message if the user didnt make any selection....

besides, the marks are not counted correctly in the result column, anything wrong with my script?

how can i solve these problems?

If Lalala = True Goto Sing, Else If NE True, Goto Humm
ok, I asked this question about a month ago, I cant find the post though, and I want to go into a little more detail anyways. Using something like if(...) = True to verify a web page, or directory, or even a file. How do you specify that? What is the exact AS for 1. an offline file, and two, a Online Web Page. Like if http://www.dick.net/vagina.htm = True goto sex, else if ne True, goto disney.

Thanxz

(P.S. This is in no way related to my example, i was bored!)
AKA If File Exist

Is This Okay? If(btn.ROLL_OUT==true && Btn2.ROLL_OUT==true){
Is this okay?
Code:
a1.addEventListener(MouseEvent.MOUSE_OVER, mouseOutHandler);
a2.addEventListener(MouseEvent.MOUSE_OVER, mouseOutHandler);

function mouseOutHandler(event:MouseEvent):void {
if(a1.ROLL_OUT==true && a2.ROLL_OUT==true){
gotoAndStop(1);
}
}

Is It True That...
Is it true that my swf is bigger if i do it frame by frame than it is when I use tweeing? if that's the case I've got another question: why?
//RAW

Can This Be True? A Bug?
I am working on a flash website and i just discovered what i think is a bug.
I have some symbols which i'm putting on the page when user clicks on an icon. It's a page for a hairdresser and on the last icon always the hair miraculousely disappiers. Just the hair, nothing else. I tryed with moving layers (changing order) with breaking things apart... nothing helped. And then at one point it started to work. Juhu! i said.
But i was pissed off again when i discovered that now the third icon is not working. I used the same tactic and it started to work - and again the fourth icon is not displayed correctly.

If you want you can mail me and i'll send you the fla (52kb).


Please help me if you know how!

Lenart

***** IS THIS TRUE? OMG
I wonder if this true, does masking slow down flash rendering time and by how much? Is it significant?

I am making a Flash operating system (yeah in flash), so lets say i made a component that interacts like a windows "window". Everything is great except the content of the window overlays the window itself and does not stay inside the window, it overlaps the edges of the window. So i am thinking to apply a mask to the window in order to keep the conent "inside the window", the only problem that i know of is that dynamic text does not show up through masking but i am not sure how or by how much it affects my performance.

Is This True?
i heard that browsers are being equipped with flash plugin
has anyone else heard this

That's True
I agree 100%. Flash lets you do things HTML will never allow you to do and in much less time HTML could ever hope to. It's just a matter of time before rich content takes over.

Why Is IF Always True?
Hi there. I have a movie clip with four labeled frames: up, down, over, and active. I'm using it as a button using on(rollover), etc., and am trying to have it be in its "active" state when appearing on certain pages. I am using FlashVars to send a variable to the SWF that should tell it when to use the active state.

Here's the code I have attached to the movie clip instance (mcWriting):

onClipEvent (load) {
if (section == "w") {
_root.mcWriting.gotoAndStop("active");
} else {
_root.mcWriting.gotoandstop("up");
}
}

Now here's my problem... It always executes the code as if the IF clause is true. I have a variable text field on the page to make sure the right value is being passed to the "section" variable, I have tried using numbers and characters as the passed value (i.e. using 1 in place of the "w" above), and I have tried telling it to go to "up" first, then have the if statement without an else. I have tried different ways of structuring it, using ==, then != and swapping the results, etc... No luck.

No matter what I do, or what I set section equal to, it always behaves as if the IF condition were true -- executing the code in the {}s after it...

All the rollover code (sample below) works fine, so it doesn't seem to be a level issue...

on (rollOver) {
_root.mcWriting.gotoAndStop("over");
}

I'm sure I'm missing something stupid. I am a newbie, who's learned just enough from these forums to be dangerous.

Thanks for the help!

ADAM

Is It True?
:::
Loader.loadClip("file.swf", Container);
:::


How do you pass variables using loadClip?! is it true that it's not possible? That can't be...

So Is It True Then....
Is it true that when duplicating a movieclip that has a dynamicly loaded image, the image will not duplicate?
This is what is happening to me, and from what I have read, it is a lost cause.
Please tell me it isn't so, and how to fix it...

I have no hair left...

True Zero?
On flash movies that are scaled to 100% I usually create 2 variables called trueZeroX and trueZeroY. These variables hold the _x and _y values which visually represent 0,0 once the stage is scaled and I calculate them by hardcoding the stage's initial width and height:


ActionScript Code:
var trueZeroX:Number = -(Stage.width-initialWidth)/2;var trueZeroY:Number = -(Stage.height-initialHeight)/2;


Is this logical? I mean it works, but is there a better way to get the new 0,0 without having to hardcode in the initialWidth and initialHeight.

Cheers,
ghjr

Is It True You Can't Put AS On MC's In AS 3.0?
Hey! So I heard that in Flash 9, with AS 3.0, you can't attach code to an MC, but rather all the code would be in one place. Is that true?

And if so, what's done to work around that? Like, if you were to have a hundred duplicates of an MC scattered around on the stage that you would want to behave the same, would they all have to have different instance names and then use a loop to control all of them?

Or is this just totally bogus? X)

Capslock = True? Or No?
Im making a crossword puzzle.
when making an input field. how cani automatically set capslock to ON...so all the text is UPPERCASE? or how can a letter equal A or a

True Or False (help)
Well it's been one of those days whe you learn somthing new and you say hey this is neat, then you go to save and what happens the Fu**ing comp crashes and can i figure out how i got it to work first time :( PISSED OFF :(

here we go, i will try explain this best i can.

on the first key frame of the movie i have this
dismain = false;
discon = false;
disgb = false;
dischat = false;
dischart = false;
dislink = false;

The dis"" is the name of the mc's that r going to be displying the information.
inside each of the mc's first frame i have a mc for clipevents. this has
onClipEvent (enterFrame) {
if (_root.dismain==true) {
_root.dismain.gotoAndPlay("dismain_on");
}
}
i know that this code is not complete becuase i need to and an if statement to check and see if it is false as well (if someone can tell me how to do this cheers). The second frame has a gotoAndPlay(1) 1 being were the clip is checking for true or false.

Now i have a button that triggers dismain to be true.

on (release) {
gotoAndPlay ("unload_signin");
_root.dismain = true;
}


I think thats about it. So can someone see were iam going wrong.
Sample movie
http://ecosse-web.com/~activefm/active/activemain.swf
i am looking to control when the diplay mc plays with true or false.

Does everybody follow me.

cheers

If (mousedown = True) {
is someone able to help me out with the following problem:

i am creating a record on a turntable as a navigation menu for a website so that when the record is turned at different angles (it follows the mouse) you click and go to that angles respective page, as far as i know you can only make the record turn if it is a movie clip, but if it is a movie clip i cant use on (mousedown) so instead i am using if (mouseDown = true) here is some of my code:

a2 = record2._y-_ymouse;
b2 = record2._x-_xmouse;
angleB = Math.atan2(a2, b2);
degrees2 = angleB/(Math.pi/180);
setProperty ("record2", _rotation, degrees2);

deg2 = getProperty ("record2", _rotation )
if ((deg2 > 0)&&(deg2 < 90)) {
setProperty ("equip2", _visible, true);
if (mouseDown = true){
getURL ('news_equ.asp', _self);
}
}else{
setProperty ("equip2", _visible, false);
}

if ((deg2 > 91)&&(deg2 < 180)) {
setProperty ("records2", _visible, true);
if (mouseDown = true){
getURL ('news_rec.asp', _self);
}
}else{
setProperty ("records2", _visible, false);
}
etc...

my problem is as soon as the mouse enters the screen it instantly opens all the links, is anyone able to tell me why or if there is another way i can catch clicks over a MC given the mouse is between certain angles of that MC?

True Zoom
Can anyone help

I have made a map that can be zoomed in on using _scale. I want now to be able to focus on a particular point on the map when zoming in. The mc parent is in the centre of the clip so if its focusing on a part other than the parent, the position changes as it grows bigger.

Fullscreen, True?
I'm using fscommand ("fullscreen", "true"); in my standalone projector and I've set the stage of my movie to be an easy ratio of the monitor resolution (ie. 800x600).
When the projector runs on a Mac, there's about a 20px border on the top and bottom of the screen but it does fill the screen from left to right.
What's with that border? How can I get rid of that? The contents of my movie fits perfectly within the stage. I can't figure out why it's not filling the screen vertically.
Thanks.

True Or False?
hi guys,

i am trying to "trap" the value of a checkbox. (true or false)

i know the value is changing, as i have used the debugger and it works fine, i.e. it changes the value as it should.

i now want to use that value to validate a form. here is my code for the submit button

----------------------------------------------
on (release) {
if (termsread != "true") {
gotoAndPlay("tickerror");
stop();
} else {
gotoAndPlay("truetest");
}
}
----------------------------------------------

termsread is changing from true to false correctly. but it always goes to the tickerror frame and never to the truetest frame!!

any ideas?

gary

[simple]if(abc || Abc==true)
Hi, would you know what's the meaning of following syntaxs?
1. if(!abc)
2. if(abc == true)
3. if(abc == false)
4. var abc=true
5. var abc=false
Thanks in advance!

HELP. Can't Get True Gradient
If someone can help me...
I have a bird flying with a trail behind it. I put a gradient mask over the trail (following the bird) so it looks like it trail fades slowly. Seems easy, right? Well, the graident is 0% Alpha on the left of the box and the same color as the sky on the right.
HOWEVER, there is a band of white between the )% Alpha and the Blue. I CAN'T get rid of it. Has anyone ever heard of this or am I doing something wrong?
Please help, Thanks so much...

If Html Is True. . ..
My variable ("index") is a text box in which I want the text to be read as HTML.

Question: Why can't I display images within the HTML code embeded? Is there a way I can display images within the HTML code? Are there only certain TAGS that flash reads when rendering HTML code?


When I use img src="http://www.domain.com/images/corectlocation.gif" I get a blank spot in the display where it would go. . .not a RED X, but nothing, nodda, zillch.



Thank you for reading this far!

AttachMovie = True?
in an if statement i am wanting to check to see whether a mc is attached? like.
if ((Math.floor(_root.bgClip._x))==1604 && (_root.bdudeStage.AttachMovie) == True)

i dont think that is the proper syntax.
can someone tell me how to check if a mc has been attached and use it as a condition?

thanks
c

True/False
Is there a way to do a trufalse against an array of numbers, as opposed to doing,


Code:
if ((x = 1) or (x = 2) or (x = 3) or (x = 4)){}

Visible=true
hey guys,

i want to make it so when you move your cursor over my button, all of a sudden a movieclip appears. and when you move off it goes black again. what's the code for this? it's something liek this isn't it

on (rollOver) {
visible=true;
}

can you give me the full code?

Not When ONLY BOTH Conditions Are True?
Hey,
I was wondering if the folowing is possible with just a normal if-action:

Code:
1. if(Key.isDown(Key.SPACE)){
2. if(varOne == 4 && varTwo == 6){
3. } else {
4. //--Perform code---
5. }
6. }
As you can see, in line 2, I'mn first testing if both conditions are true. If this is the case it does nothing. When one of the conditions is false it will execute the code starting at line 4.

Why don't you just use an != (not equal) you're thinking? Well, this is why:

Code:
1. if(Key.isDown(Key.SPACE)){
2. if(varOne != 4 && varTwo != 6){
3. //--Perform code---
4. }
5. }
This will ONLY perform the code when BOTH conditions are true. But I want to execute the code when ONE or NONE are true.

So, now my question, is there a code that can fix this?

Hittest Is Always True
Hi, I am not making anything, I am just trying to learn about hittest.
In my file I have a ball moving down and a square moving right. I have a text box, with code for it in a frame:

if (_root.ball, hitTest(_root.square)) {
hityo.text = "ball intersects square";
} else {
hityo.text = "ball doesn't intesect square";
}

It always evaluates to true. I even am using the code directly out of "reference" so help me.

WTF!

Visible = True; ?
HI

I have a movie clip with instance name of newsBox and i'm trying to make it invisible in action script. and i have no idea if i'm doing this right.

_root.newsBox.visible = false; ??? is this right ? if not can somebody tell me how to make a MC invisible ?

thank you

True,false.
I want to make an advanced shooter game.I made one before in which there is a black point appearing when you shot(thehole of the bulet).
I don't like 'buttons shooters'where you just press on heads.
The code for the appering bullet:

Code:
onClipEvent (mouseDown){ _root.blood.duplicateMovieClip("bulletNew", i);
if (i == 10) {
i = 0;}}
Now,I want to make that when you shoot on a bad guy,a blood MC appears just like the bullet but does not appear when you shoot at a wall...I tried to use true and false.
This is the code I used:

Code:
"shoot",false
if (_root.crosshair.hitTest(_root.ds)){"shoot"==true;}
And in the crosshair:

Code:
onClipEvent(enterFrame){if("shoot"==true ){
onClipEvent (mouseDown){ _root.blood.duplicateMovieClip("bulletNew", i);
if (i == 10) {
i = 0;}}
}}
I know it doesn't work...I can't put a movie clip into another one. Help!

StartDrag True?
Can you read the position of a movieclip from a loaded movieclip in another layer??

i want to read the position of "drag" in layer 10 from the main movie in layer 0

can you do this?

Thanks in advance

Always True Result?
code: onClipEvent (enterFrame) {
if (spin == true && (winningnumber != 0 || winningnumber != 1)) {
this._visible = false;
}
}


No matter what the result (as long as spin is true) the code above is always true. What am I doing wrong?

True Statement ?
Not sure on how to even ask the question so sorry if i sound like a retard right out of the box. Ok, here goes i am developing a interactive game based on the color theory. My problem is i am not sure how to set up the AS for this. Example if the user selects color A and then selects color B i want color C to appear (A+B=C). From this point color C is added to the mix as an option for example (C+A=D) I have 12 colors total and all are based on the Color Theory Red Yellow Blue Primary Orange Purple Green Secondary Orange-red, Blue-Purple, Yellow-green, Etc..Tertiary. Hopefully i have given enough info to get an answer or at least some direction thanks. Flash 8 is version Thanks in advance Xlien

True Hittest?
What is the easiest way of using true hit tests?

Like I have an object that is a bannana and an object that is a circle.

I want some thing to happen when the circle hits the bannana, but since the bannana is a wierd shape and doesn't take up the entire room of the square that outlines it when you click it, the hittest tells me when the bannana hits the square outline around the bannana.

How do you do a hit test seeing when something hits the parts of a movie clip actually colored in?

Right now I have:

_root.bullet.hitTest(_root.bannana)

but it doesn't do what I want


Thanks

True Or "true" Or ?
Hi,
going nuts with this seemingly small problem.
I establish a Netstream ns then want to use the code below.
I am using (NetStream.pause method)
just ns.pause() on the button works, toggling between pause and play each click. So the clip is responding, but once I add the if statement no luck.
what am I doing wrong?
oh and what would the syntax be to trace the state of pause()

Code:
go_Clip.onRelease = function() {
if(ns.pause()== "false") {
ns.pause();
this.gotoAndStop("going");
}
else {
ns.pause();
this.gotoAndStop("paused");
}
}
thanks in advance
mark

Why Is This Boolean Always True?
Hi guys, in the change Listener below (about halfway down), does anyone know why I can't get the loadContent variables to ever equal false?

import mx.core.View;
import mx.containers.Accordion;

Accordion.prototype.falseUpSkin = "falseUpSkin";
Accordion.prototype.falseDownSkin = "falseDownSkin";
Accordion.prototype.falseOverSkin = "falseOverSkin";
Accordion.prototype.falseDisabledSkin = "falseDisabledSkin";
Accordion.prototype.trueDownSkin = "trueDownSkin";
Accordion.prototype.trueUpSkin = "trueUpSkin";
Accordion.prototype.trueOverSkin = "trueOverSkin";
Accordion.prototype.trueDisabledSkin = "trueDisabledSkin";
function setAccordionStyles(accordion) {
mainAccordion.setStyle("headerHeight", 22);
mainAccordion.setStyle("color", 0x00ffff);
mainAccordion.setStyle("fontStyle", "bold");
_global.styles.AccordionHeader.setStyle("fontSize" , 10);
_global.styles.AccordionHeader.setStyle("fontWeigh t", "bold");
_global.styles.Accordion.setStyle("backgroundColor ", "none");
_global.styles.Accordion.setStyle("borderStyle", "none");
}
setAccordionStyles(mainAccordion);


mainAccordion.createSegment("content1","s1","Not SO Dumb");
mainAccordion.createSegment("content2", "s2","small FART");
mainAccordion.createSegment("content3", "s3", "BIG heart");
//mainAccordion.createSegment("content4", "s4", "Segment 4");
//mainAccordion.createSegment("content5", "s5", "Segment 5");


// Create new Listener object.
var my_accListener:Object = new Object();
my_accListener.change = function() {
trace("Changed to different view");
// Assign label of child panel to variable.
var selectedChild_num:Number = mainAccordion.selectedIndex;
var loadContent1=false;
var loadContent2=false;
var loadContent3=false;
//var loadContent4:Boolean=false;
//var loadContent5:Boolean=false;
// Perform action based on selected child.
switch (selectedChild_num) {
case 0:
loadContent1=true;loadContent2=false;loadContent3= false;
trace("One was selected and content1 = " +content1 + " and contents 2, 3 = " + content2 + "," +content3);

break;
case 1:
loadContent1=false;loadContent2=true;loadContent3= false;
trace("Two was selected and content2 = " +content2 + " and contents 1, 3 = " + content1 + "," +content3);
break;
case 2:
loadContent1=false;loadContent2=false;loadContent3 =true;
trace("Three was selected and content3 = " +content3 + " and contents 1, 2 = " + content1 + "," +content2);
break;
}
};
mainAccordion.addEventListener("change", my_accListener);

I need to pass this to the info within the content (1,2,3 etc.) movieclips...if true, it does one thing, if false, it does another...

Thanks Kindly for any help

Shawn

[F8] Find If URL Is True?
ive been trying all sorts of stuff for around three hours and im pulling my hair out by now

i need to know if its possible to find if a URL or a File* on a server is there or not
if the file is there trace("true");
else trace("false");

*the file ends in ".bf2demo" so i dont think i can do a .onLoad=function(success) but maybe im just doing something worng

so is it possible
or does anyone have any ideas thanks so much

My Developer Says Can't Be Done, True?
I've got someone creating a Flash widget for me. This Flash widget is simply a vertical bar that will sit inside the body of an htm page along the left margin. It is going to be a "Frequently Asked Questions" widget that will slide open when clicked to display a small scrolling window of FAQ's with their respective answers.

You can see the developers draft here:

http://www.silimedia.com/faqs.htm

This Flash widget is supposed to sit in the left margin with body text wrapped around it. When the FAQ window slides open, I want it to hover over the body text.

See the large gray background? He says that you cannot get rid of that. His only solution is to create the entire page in Flash. I'm not interested in that.

Is there any way to create this widget like I have described, or is the developer correct in that it cannot be done without using full Flash site?

I do not want to simply put the body text that would otherwise be there in the body and rewrite it in the Flash section that would be in its' place.

My thinking is that I've seen banner ads that have slide outs that hover over text...but not sure I've ever seen one with a scrollable window. Is that the deal-breaker, scrollable window?

Any advice?

Thanks,
Ed

[F8] .embedFonts = True; ?
Hi Peeps, Iv been Taking a few tutorials and experimenting over the last few days and iv hit a major snag. Im trying to combine.

This
__________________________________________________ _________
this.createTextField("my_txt", 10, 10, 10, 320, 100);
my_txt.autoSize = "left";
my_txt.border = true;
my_txt.multiline = true;
my_txt.wordWrap = true;

var lorem_lv:LoadVars = new LoadVars();
lorem_lv.onData = function (src:String):Void {
if (src != undefined) {
my_txt.text = src;
} else {
my_txt.text = "Unable to load external file.";
}
}
lorem_lv.load("http://www.helpexamples.com/flash/lorem.txt");

__________________________________________________ ______
And This
__________________________________________________ ______

// 1
this.createTextField("thickness_txt", 10, 0, 0, Stage.width, 22);
this.createTextField("lorem_txt", 20, 0, 20, Stage.width, 0);
lorem_txt.autoSize = "left";
lorem_txt.embedFonts = true;
lorem_txt.antiAliasType = "advanced";
lorem_txt.text = "Lorem ipsum dolor sit amet.";
lorem_txt.wordWrap = true;

// 2
var style_fmt:TextFormat = new TextFormat();
style_fmt.font = "Times (embedded)";
style_fmt.size = 30;
lorem_txt.setTextFormat(style_fmt);

// 3
var mouseListener:Object = new Object();
mouseListener.onMouseMove = function():Void {
// Values for TextField.thickness can range from -200 to +200.
lorem_txt.thickness = Math.round(_xmouse * (400 / Stage.width) - 200);
thickness_txt.text = "TextField.thickness = " + lorem_txt.thickness;
};
Mouse.addListener(mouseListener);

__________________________________________________ ___________
and this is what iv come up with.

__________________________________________________ ___________
// 1
this.createTextField("thickness_txt", 10, 0, 0, Stage.width, 22);
this.createTextField("lorem_txt", 20, 0, 20, Stage.width, 0);
lorem_txt.autoSize = "left";
lorem_txt.embedFonts = true;
lorem_txt.antiAliasType = "advanced";
//lorem_txt.text = "Lorem ipsum dolor sit amet.";
lorem_txt.wordWrap = true;

var lorem_lv:LoadVars = new LoadVars();
lorem_lv.onData = function (src:String):Void {
if (src != undefined) {
lorem_txt.text = src;
} else {
lorem_txt.text = "Unable to load external file.";
}
}
lorem_lv.load("http://www.helpexamples.com/flash/lorem.txt");

// 2
var style_fmt:TextFormat = new TextFormat();
style_fmt.font = "Times (embedded)";
style_fmt.size = 20;
lorem_txt.setTextFormat(style_fmt);

// 3
var mouseListener:Object = new Object();
mouseListener.onMouseMove = function():Void {
// Values for TextField.thickness can range from -200 to +200.
lorem_txt.thickness = Math.round(_xmouse * (400 / Stage.width) - 200);
thickness_txt.text = "TextField.thickness = " + lorem_txt.thickness;
};
Mouse.addListener(mouseListener);
__________________________________________________ ____________
Only problem is it dosent populate the text feild with the text in the external file.
It works if you use the standard ".text ='blah' ;" I think iv wittled it down to
the ".embedFonts = true;" but im not sure why this would cause a problem.
Can anyone see a problem or am i completly barking up the wrong tree.

Any thoughts or input would be great.

Thanks,

Atomiser

MouseOver==true
hi guys..
this script is not working...can you please fix it up


if (some_variable = 650 && my_button.mouseOver==true )
{
do this
}



lots of thannks

=true == False? :)
maybe a stupid question, but i will still ask :P

if i have a boolean and if i say if (something != true), is this the same as saying if (something == false) ?

at first i thought yes, but i am not so sure anymore

_lockroot=true; ?
hello does thus work with as3? because trying 2 loadin a as3 movie into a as2 movie

ButtonMode=true
Do I have to call this function buttonMode = true on every MC where I want to show the hand pointer.

Alnoor

If All Statements Are True, Do:
I want to do the following:


ActionScript Code:
If all the following Boolean variables == true
{
  do something
}

like:

ActionScript Code:
var movingup:Boolean = true;
var movingdown:Boolean = true;
var movingleft:Boolean = true;
var movingright:Boolean = true;

If(movingup and movingdown and movingleft and movingright == true)
{
 call function
}

how is the syntax for this?

HasMovieLoaded(mc, True);
A simple yes or no will do.

Is there a built in function that checks to see of a MC exists on the stage?

Load= True?
okay i have a scen named preload, and i want it to load an external .swf, but once it's done doing so to move on to frame two so far i have

-
stop();
_root.createEmptyMovieClip("container",1);
container.loadMovie("01.swf");
container._x = container._y = 0 ;
if (this.getBytesLoaded() == this.getBytesTotal()) {
_root.play("preloader", 2);
} else {
gotoAndPlay("preloader", 1);
-

and this doesn't work, i think my problem is the "if(this.getBytesLoaded()" but i am not sure how to identify if the movie is loaded, maybe with true and false? but i am not sure how i would do that, help pretty please?

Mc.clickThrough = True;?
Just a quick one. Is it possible to make a mc click-through able, but still making it a rollOver?

Button Help (sad But True)
I have this code on my button Which is Called "guess"

on (release) {


gcount++;
b.text = gcount



if (yourguess < ans) {

a.text = "Higher";
}
if (yourguess > ans){
a.text = "Lower";
}
if(yourguess == ans) {
a.text = "Correct"



}
}

I want it so that if this happens
if(yourguess == ans) {
a.text = "Correct"


i want the visbility of my button to be false how do i do it,

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