Error In Flash Logic ...Help Please
Hi Soo I'm using Flash MX 2004
what I encountered was something like.
a,b - array a = b; b=c+d;//modifdied parameter in the array
from this normaly a <> b
What I got was a == b //a has the same modified parameter I looked there is no function that makes a=b after b has been modified. the only one is at the begining and before that one I have a trace() so it should have come up.
Why???????? How can I bypass this cuz I tried like everything?????????????
I made them globals , i put one of them in a function, I created different variables to hold all the modifications and only at the end to change "b",........and none of these techniques worked.
Sooo What can I do???? I would be imposible to program anything if all the modifications that take place to a variable occur in it's predecesors also.
DarkSoul666
FlashKit > Flash Help > Flash ActionScript
Posted on: 11-11-2007, 10:17 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Strange Multidimensional Array Logic Error
Hello all, long time lurker, first time poster...
I was trying to build an array containing arrays of coordinates.
After reviewing many posts on this board and other places on the web I figured out how to make this piece work like this:
ActionScript Code:
var multiArray:Array = new Array;
for (var i:uint = 0; i < 3; i++) {
multiArray[i] = new Array;
for (var j:uint = 0; j < 2; j++) {
multiArray[i][j] = Math.round(Math.random()*10);
}
trace("i = " + i);
trace("multiArray = " + multiArray);
}
/*
Output is:
i = 0
multiArray = 9,10
i = 1
multiArray = 9,10,7,8
i = 2
multiArray = 9,10,7,8,4,9
*/
However, I cannot for the life of me figure out why this doesn't also work. Why does it go back and change position 0 and 1 of the multiArray?
ActionScript Code:
var multiArray:Array = new Array;
var holderArray:Array = new Array;
for (var i:uint = 0; i < 3; i++) {
for (var j:uint = 0; j < 2; j++) {
holderArray[j] = Math.round(Math.random()*10);
}
trace("i = " + i);
trace("holderArray = " + holderArray);
multiArray[i] = holderArray;
trace("multiArray = " + multiArray);
}
/*
Output is:
i = 0
holderArray = 9,4
multiArray = 9,4
i = 1
holderArray = 3,2
multiArray = 3,2,3,2
i = 2
holderArray = 5,3
multiArray = 5,3,5,3,5,3
*/
I am standing by waiting for the doh! headslapping moment...
Flash 5 Sometimes Not Very Logic
hi there,
just ran into a problem with actionscript. trying to copy a movieClip and than set the x pos....
this doesn't work!!!
duplicateMovieClip ("mainButton", "mainButton1", 5);
mainButton1._x=250;
,but this does
duplicateMovieClip ("mainButton", "mainButtonA", 5);
mainButtonA._x=250;
i specially have this problem targeting generated movieclips. i eventually like to target the mc like this (i=1)
"mainButton"+i._x=250 << this doesn't work either
what's the trick on expresions and strings..?
is there a good tutorial on this around??
thanx, yoken
Flash Logic
I feel really Marz-ish today so I'm gonna give you all a tutorial. This will be actually a series of tutorials on some types of logic in AS. This isn't really for advanced users, more intermediate, but all you guys like Senocular and Marz (examples, there is more) can just have fun with it.
Here is a basic overview:
1. Listener Logic
2. Timer Logic
3. Random Logic
Thats basically it! I'll get started today...
Flash Logic
I feel really Marz-ish today so I'm gonna give you all a tutorial. This will be actually a series of tutorials on some types of logic in AS. This isn't really for advanced users, more intermediate, but all you guys like Senocular and Marz (examples, there is more) can just have fun with it.
Here is a basic overview:
1. Listener Logic
2. Timer Logic
3. Random Logic
Thats basically it! I'll get started today...
Flash 5 Actionscript Logic
I was just wondering why the flash 5 logic is so terrible?
Can someone please explain how flash works out it's scripting logic?
Mark
Logic Gates In Flash
Hi there. I am looking for some animation or code of logic gates (AND , OR, NOT gates, etc). Does somebody knows any link or web pages to download some examples?. Thanx in advance.
Flash MX Checkbox Logic
i have two checkboxes on the main timeline. i am trying to make it so when one is checked the other can not be checked, or if it was checked, to become unchecked. only one can be checked at any given time.
i have given each checkbox an instance name of var1_Yes and var1_No.
here is the code i have on an actions layer:
if (_root.var1_Yes="true") {
_root.var1_No = "false";
}
if (_root.var1_No="true") {
_root.var1_Yes = "false";
}
...end code...
what am i doing wrong? is this possible to do? thanks.
gretch.
Flash Defies Logic
Ok in a really little nutshell, here's the problem...
if x < 10
sabrina is true
if x > 10 && < 20
isn't true
If x > 20
isn't true
if sabrina = true
go plan my wedding
Ok, sabrina was true when we got together but now she's cheatin - you know she's false and you even told me [trace()] so why are you still planning that wedding? And vice versa, she wasn't true now she is - you recognized the change in value yet why doesn't the according script come into play.
bad analogy aside - I've been designing a flash radio and this the first part of this script is to control which of it's features is active (radio in particular) the second part controls the tuner itself. Both pieces of the puzzle work fine, however I have come up against a wall integrating them.
Halp?
K$
//CHUZER-----------------------------------------
//the chuzer is a knob which dictates if you are listening to radio, cassette or vinyl
//ChuzcurVal is a variable determined by the amount you have spun the knob
//I have tested this part of the script with trace( )statements and it works fine, the boolean //values for vinyl, cass., and tuner change with the knob --- HOWEVER – the second
//part of the script…
if (_root.CHUZcurVal< 33){
//tuner
vinyl=false
tuner=true
cassette=false
}
if (_root.CHUZcurVal> 33 && _root.CHUZcurVal< 67 ){
//vinyl
vinyl=true
tuner=false
cassette=false
}else{
//cassette
vinyl=false
tuner=false
cassette=true
}
// …which is everything following this… should only be ‘active’ when tuner = true
// however, it remains stubbornly independent. When you start it takes the initial value of
//tuner and either kicks in or doesn’t. After that if you turn the chuzer knob away from //tuner, the value of tuner changes to false, the trace( ) function lets me know that the
//program knows the value is now false however the radio continues to operate!!
//Aaaaarrrgh!!!
//The reverse is also true, if you start off with the tuner value as false and then change it //to true you get confirmation that the value has changed – but the radio she no go.
//confused.
////////TUNER-------------------------------------
if (tuner=true){
//LOOP 3 //////////////////////////
if (_root.tunebar._x > 315 && _root.tunebar._x < 325 ){
//stop the other loops
sound1.stop
loop4= "notPlaying"
loop5= "notPlaying"
loop6= "notPlaying"
loop7= "notPlaying"
loop8= "notPlaying"
//check to see that this station's loop hasn't already started and play if not
if (loop3 != "alreadyPlaying"){
stopAllSounds();
sound1=new Sound;
sound1.attachSound("mySound3");
sound1.start();
sound1.setVolume(VOLcurval);
///loop the loop
sound1.onSoundComplete = function(){
sound1.start();
}
loop3= "alreadyPlaying";
}else{
//it's already playing - so don't do anything!!
loop3 = "alreadyPlaying"
}
}
//LOOP 4 //////////////////////////
if (_root.tunebar._x > 360 && _root.tunebar._x < 380 ){
//stop the other loops
sound1.stop
loop3= "notPlaying"
loop5= "notPlaying"
loop6= "notPlaying"
loop7= "notPlaying"
loop8= "notPlaying"
//check to see that this station's loop hasn't already started and play if not
if (loop4 != "alreadyPlaying"){
stopAllSounds();
sound1=new Sound;
sound1.attachSound("mySound4");
sound1.start();
sound1.setVolume(VOLcurval);
///loop the loop
sound1.onSoundComplete = function(){
sound1.start();
}
loop4= "alreadyPlaying";
}else{
//it's already playing - so don't do anything!!
loop4 = "alreadyPlaying"
}
}
//LOOP 5 //////////////////////////
if (_root.tunebar._x > 290 && _root.tunebar._x < 300 ){
//stop the other loops
sound1.stop
loop3= "notPlaying"
loop4= "notPlaying"
loop6= "notPlaying"
loop7= "notPlaying"
loop8= "notPlaying"
//check to see that this station's loop hasn't already started and play if not
if (loop5 != "alreadyPlaying"){
stopAllSounds();
sound1=new Sound;
sound1.attachSound("mySound5");
sound1.start();
sound1.setVolume(VOLcurval);
///loop the loop
sound1.onSoundComplete = function(){
sound1.start();
}
loop5= "alreadyPlaying";
}else{
//it's already playing - so don't do anything!!
loop5 = "alreadyPlaying"
}
}
//LOOP 6 //////////////////////////
if (_root.tunebar._x > 390 && _root.tunebar._x < 400 ){
//stop the other loops
sound1.stop
loop3= "notPlaying"
loop4= "notPlaying"
loop5= "notPlaying"
loop7= "notPlaying"
loop8= "notPlaying"
//check to see that this station's loop hasn't already started and play if not
if (loop6 != "alreadyPlaying"){
stopAllSounds();
sound1=new Sound;
sound1.attachSound("mySound6");
sound1.start();
sound1.setVolume(VOLcurval);
///loop the loop
sound1.onSoundComplete = function(){
sound1.start();
}
loop6= "alreadyPlaying";
}else{
//it's already playing - so don't do anything!!
loop6 = "alreadyPlaying"
}
}
//LOOP 7 --static-- //////////////////////////
if (_root.tunebar._x > 200 && _root.tunebar._x < 289 ){
//stop the other loops
sound1.stop
loop3= "notPlaying"
loop4= "notPlaying"
loop5= "notPlaying"
loop6= "notPlaying"
loop8= "notPlaying"
//check to see that this station's loop hasn't already started and play if not
if (loop7 != "alreadyPlaying"){
stopAllSounds();
sound1=new Sound;
sound1.attachSound("mySound7");
sound1.start();
sound1.setVolume(VOLcurval);
///loop the loop
sound1.onSoundComplete = function(){
sound1.start();
}
loop7= "alreadyPlaying";
}else{
//it's already playing - so don't do anything!!
loop7 = "alreadyPlaying"
}
}
//LOOP 8 --static-- //////////////////////////
if (_root.tunebar._x > 326 && _root.tunebar._x < 359 ){
//stop the other loops
sound1.stop
loop3= "notPlaying"
loop4= "notPlaying"
loop5= "notPlaying"
loop6= "notPlaying"
loop7= "notPlaying"
//check to see that this station's loop hasn't already started and play if not
if (loop8 != "alreadyPlaying"){
stopAllSounds();
sound1=new Sound;
sound1.attachSound("mySound8");
sound1.start();
sound1.setVolume(VOLcurval);
///loop the loop
sound1.onSoundComplete = function(){
sound1.start();
}
loop8= "alreadyPlaying";
}else{
//it's already playing - so don't do anything!!
loop8 = "alreadyPlaying"
}
}
}
--
insert witty signature here
Flash Website Logic
Hi, I want to do a flash website and never done it before so any kind of help/link/tutorial would be appreciated. But I have a question just to see if I understand the logic, the basic of how it works. I've used flash before without programming, although I know where the commands are and such.
So, tell me if I am wrong but for me, I think doing a website in flash would be like for example I have my intro animation on a frame with a stop at the end or again a goto frame, where it has a stop with my navigation menu. Is it simple like that... using goto frames and stop to go to different section... say I just want to present a design portfolio...
Anyway I hope I am clear enough, i am just trying to understand the logic of it, if anyone can help me, it would be very appreciated...
thanks for your time
Logic Board To Use With Flash?
In order to do interactive installations with motion sensors or proximity sensors and interact using Flash, what's the best way?
tia
Flash MX Holds No Logic
Ok, I've been working on this flash file(s) for some time now. Let me explain the makeup of this project and then what the problem is...
It is a combination of 3 flash files:
1. NewLayout; It is the navigation for the project.
(http://www.kernlearn.net/Personnel/kirupa/NewLayout.swf)
(http://www.kernlearn.net/Personnel/kirupa/NewLayout.fla)
2. OuterMovies; It is the content that is 'supposed' to work with the NewLayout.
(http://www.kernlearn.net/Personnel/k...uterMovies.swf)
(http://www.kernlearn.net/Personnel/k...uterMovies.fla)
3. Main; It is the brain of the 3 files and it imports and executes NewLayout and OutMovies.
(http://www.kernlearn.net/Personnel/kirupa/main.swf)
(http://www.kernlearn.net/Personnel/kirupa/main.fla)
---------------------------------------------------------------------------------
Ok now that that is done. What I do is inside the MC of 1 of the hover buttons (ie. Btn1) on the 93rd frame it sets a variable called _global.checkFrameIsSafe to either 1, 2, 3, 4, or 5 depending on which button you clicked. Then in the OuterMovies file I check on enterFrame for what the variable is. Then if the variable is equal to the one that is doing the testing it will play the movie but of course Flash wants be be an a-hole and not work with me. Can somebody please help me?!?! This is for my job and if I can't get this working I will be up **** creek without a paddle.
Thank you,
Taylor A. Pennington
I have my AIM on 24/7 if you can help me then IM me @ LiquidPhreak1220.
Humain To Flash Logic
Just how do you check if the same array elements exist in another array and run a statment accordingly
This is the logic I'm after:
(both arrays contains numbers only.)
arrayOne
arrayTwo
for each number that exist in both arrayOne and arrayTwo{
loop throught all the movieClips and fade in those corresponding to those numbers}
so if the numbers 4 and 7 are present in both arrays, movieClip 4 and movieClip 7 will be visible.
Flash MX Logic/varible Syntax
Hello all
New around here
I cut my teeth on Flash4 and havent had a chance to jump onto FlashMX until recently, so I guess I count as a Newbie
(I was never a good coder or a good actionscripter in the first place, so bear with me anyway)
Layer1 is the Frame/Control level
Layer2 has my buttons
Layer3 I have a MovieClip sitting on the Stage
Frame1 of Scene1 - I set my variable:
set(open, false)
inside the movieclip Instance (named content) on frame1 I have it looping with the actionscript:
if (open = true) {
gotoAndPlay("tween")
} else {
play()
}
Back on the main stage, my button has the script:
on (release) {
tellTarget (content) {
set(open, true)
}
This is based on my rudimentary knowledge of actionscripting from Flash4, which seemed to work fine (thank god for the syntax error alerts)
FlashMX seems a bit more of a confusing bundle
I've set traces for everything and;
- The button can find the movie (and can move the timeline around)
- the varible is recognized and switches the movieclip on and off correctly
BUT
- The button doesnt seem to trigger the varible for the movieclip
- And even worst - it affects the Instance by triggering the varible without a 'release'
any clues? somebody told me the 'logic' to this incorrect
Array Logic Problem Flash 5
Hello!
I am baking in the hottest August for years and on top of that I've got an array problem in Flash 5.
I've been working on this for 3 days and I can't get anywhere.
My array is made up of, say, 5 items like this:
({clip:"player"+i, poss:0, active:1});
I want a key press to assign the "active" variable 1 to a different item in the array.
And if one item's "active" equals 1, all the others "active"s in this array must equal 0.
I've got no problem with the key press part, just the reassigning of the values.
Can anyone help me, please?
DjRubbish
Flash Notepad Logic/Jargon
Hi Everyone, I'm a flash newb and I need some help getting started on a flash/script project I would like to implement into my website.
Here is the idea: I want to make a dynamic "scrolling window" notepad. I'm very familiar with ASP/javascript for backend stuff. Say there are 8 notes stored in a file (txt file or xml file), but when a user visits the website, I don't want them to have to scroll down through a listbox with all these notes in it, instead I want to make a flash (movie/script) (pardon me for my lack of jargon), that will allow the user to click on the box, or a link inside the box and the box will "open" (scroll down) making all the notes visible, and then click the box again to close them. I know stuff like this exists and I'm not asking for anyone to do it for me, but what I'm really asking for is what is this type of feature called? I lack the jargon so I can't find any good tutorials or examples through search engines. If someone can point me in the correct direction to get me started I would greatly appreciate it. Post back on her or contact me through some other means
I would greatly appreciate any help you can offer. Thank you so much for your time. Bye for now.
Sincerely,
Fish
I Am Baffled, Flash Seems To Be Ignoring Logic
I'm trying to get a rotating character to stop at around 0 or 360 degrees and then die.
All the following code is within an enter frame event.
This is the offending piece of code:-
if(cakeOrientation > 358);
{
trace(cakeOrientation);
cakemanRotate = 0;
removeEventListener(Event.ENTER_FRAME, cakeShuffle);
cakemanDies();
}
before this i have:-
cakemanRotate ++;
cakeman.rotation += cakemanRotate;
cakeOrientation += cakemanRotate;
if(cakeOrientation >= 360)
{
cakeOrientation -= 360;
}
i've traced cakeOrientation and it's behaving normally and producing the right values but for some reason when it encounters this part:-
if(cakeOrientation > 358);
{
trace(cakeOrientation);
the number traced can be absolutely anything, i've had 3, 40, 280 and 340 so far. As you'd expect the object dies off at various angles.
This is really baffling me, please help :s
Thanks in advance,
Rich
Flash Code Logic Problem
I commissioned a website and a program to connect and pass parameters to it. The programmer has gone walkabout and, although I (and a website guy who is helping) have the source code, neither of us know Flash.
The problem is that the program should connect to the "processupdate.php" when passed the following parameters (delimited with spaces):
http://www.targetsoftware.co.uk/update/ SAGAXPAPJV 1.13 C:TESTCONTROLUPGRADE
but it doesn't. We feel that the problem lies in this chunk of code - can anybody point us to the problem?
Many thanks for ANY assistance,
Chris McNab
============================== the suspect code ==========================
CODE
fscommand("flashstudio.cmdparameters", ""1",cparam1");
fscommand("flashstudio.cmdparameters", ""2",cparam2");
fscommand("flashstudio.cmdparameters", ""3",cparam3");
fscommand("flashstudio.cmdparameters", ""4",cparam4");
waittime=0;
this.onEnterFrame=function()
{
waittime++;
if(waittime>60)
{
this.onEnterFrame="";
if (cparam1.indexOf("@")>0)
{
body="";
attachments=cparam3;
cparam2=cparam2.findreplace("_"," ");
fscommand("flashstudio.sendmail_clientside", "cparam1,cparam2,body,attachments");
fscommand("flashstudio.exit");
}
else
{
if(cparam2.length==10)
{
if (cparam1.toLowerCase()=="http://www.targetsoftware.co.uk/support/") address="http://www.targetsoftware.co.uk/support.php?cs="+cparam2;
else if (cparam1.toLowerCase()=="http://www.targetsoftware.co.uk/orders/") address="http://www.targetsoftware.co.uk/orders.php?cs="+cparam2;
else if (cparam1.toLowerCase()=="http://www.targetsoftware.co.uk/update/") address="http://www.targetsoftware.co.uk/processupdate.php?cs="+cparam2+"?vn="+cparam3+"?path="+cparam4;
else address="http://www.targetsoftware.co.uk/index.php?cs="+cparam2;
getURL(address,"_blank");
fscommand("flashstudio.exit");
}
else
{
getURL("http://www.targetsoftware.co.uk","_blank");
fscommand("flashstudio.exit");
}
}
}
}
stop();
Programming Logic For Flash Slot Machine
Hi there... anyone know where I can find information on the logic behind creating slot machine games for Flash? I am looking for the actual programming logic... I'd appreciate a push in the right direction!
Thanks!
KC
Logic In Flash For Checking Existing Users In DB
Hi guys-
I have a php file checking my database for existing entries in the DB.
The PHP works fine. My flash logic however is somewhat off. I have never done this before, so some suggestions would be greatly appreciated. Here is the AS I have right now:
ActionScript Code:
stop();var dataOut:LoadVars = new LoadVars();var dataIn:LoadVars = new LoadVars();errortxt.autoSize = true;dataIn.onLoad = function() { _global.responsetext = this.msgText; _global.errorIsTrue = true;};submit.onRelease = function() { _global.firstName = fname.text; _global.lastName = lname.text; _global.theEmail = email.text; dataOut.fnametxt = firstName; dataOut.lnametxt = lastName; dataOut.emailtxt = theEmail; dataOut.sendAndLoad("http://mm214.com/rswietek/authoring/post/checkuser.php", dataIn, "POST"); if (fname.text == "" || lname.text == "" || email.text == "") { errortxt.text = "Please fill in all fields."; } else if (errorIsTrue == true) { errortxt.text = responsetext; trace("1"); } else { _global.startTime = getTimer(); _global.firstName = fname.text; _global.lastName = lname.text; _global.theEmail = email.text; trace("2"); //_root.gotoAndStop(2); }};
and if you need to see the php:
PHP Code:
<?$firstName = $_POST['fnametxt'];$lastName = $_POST['lnametxt'];$email = $_POST['emailtxt'];$con = mysql_connect("localhost","uname","pw");if (!$con) { die('Could not connect: ' . mysql_error()); } $db = mysql_select_db("uname", $con);if (!$db) { die('Could not connect: ' . mysql_error()); } $query = "select * from assessment where fname = '$firstName' or lname = '$lastName ' or email = '$email' "; $result = mysql_query($query); $num_results = mysql_num_rows($result); if ($num_results > 0){ echo "&msgText=Duplicate Entry."; }?>
Thank you.
Logic Behind Flash's Classes (or: When/where To Extend A Class)
Hey there,
I'm still quite new to flash &programming and I'm half way through a book called "object-oriented actionscript for flash 8".
I am reading about the framework of classes that flash provides and I'm just wondering how exactly "borders" are decided between classed and extensions for them
for example: the movie class and the UIObject class (UIObject extends Movie class):
in Movie class there is a function called moveTo(x:Number,y:Number)
then in UIObject there is a functin called move(x:Number,y:Number)
so why aren't both in Movie or both in UIObject? are they really the same thing, but it just depends where you want to access movement from? I'm generally confused in when I extend classes, and where I would "draw the line" between one class and the extension of it, and Im trying to get an idea of logic by looking at how flash does it.
Any comments or pointers are much appreciated!Thanks!
Logic In Flash For Checking Existing Users In DB
Hi guys-
I have a php file checking my database for existing entries in the DB.
The PHP works fine. My flash logic however is somewhat off. I have never done this before, so some suggestions would be greatly appreciated. Here is the AS I have right now:
Code:
stop();
var dataOut:LoadVars = new LoadVars();
var dataIn:LoadVars = new LoadVars();
errortxt.autoSize = true;
dataIn.onLoad = function() {
_global.responsetext = this.msgText;
_global.errorIsTrue = true;
};
submit.onRelease = function() {
_global.firstName = fname.text;
_global.lastName = lname.text;
_global.theEmail = email.text;
dataOut.fnametxt = firstName;
dataOut.lnametxt = lastName;
dataOut.emailtxt = theEmail;
dataOut.sendAndLoad("http://mm214.com/rswietek/authoring/post/checkuser.php", dataIn, "POST");
if (fname.text == "" || lname.text == "" || email.text == "") {
errortxt.text = "Please fill in all fields.";
} else if (errorIsTrue == true) {
errortxt.text = responsetext;
trace("1");
} else {
_global.startTime = getTimer();
_global.firstName = fname.text;
_global.lastName = lname.text;
_global.theEmail = email.text;
trace("2");
//_root.gotoAndStop(2);
}
};
and if you need to see the php:
Code:
<?
$firstName = $_POST['fnametxt'];
$lastName = $_POST['lnametxt'];
$email = $_POST['emailtxt'];
$con = mysql_connect("localhost","uname","pw");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
$db = mysql_select_db("uname", $con);
if (!$db)
{
die('Could not connect: ' . mysql_error());
}
$query = "select * from assessment where fname = '$firstName' or lname = '$lastName ' or email = '$email' ";
$result = mysql_query($query);
$num_results = mysql_num_rows($result);
if ($num_results > 0){
echo "&msgText=Duplicate Entry.";
}
?>
Thank you.
[F8] Flash Currency Handling Has Error.NumberFormat Error, Is Losing A Dollar / Pound
When I add two numbers together Flash adds them fine. If I use the Locale to format it as currency, Flash will lose a dollar! This only happens on certain combinations of numbers. I've been banging my head off a wall on this. Paste the script below into an empty flash document to recreate the problem.
Anyone with any ideas of how to solve this please help
code: import mx.controls.*;
import mx.format.NumberFormat;
import mx.format.Locale;
import mx.format.locales.Nl;
import mx.format.locales.*;
var iPaid:Number = 0;
// simulate strings from a textinput field
var sValue1:String;
var sValue2:String;
Locale.registerLocale(new En_US());
var fmt:NumberFormat = new NumberFormat(Locale.currentLocale.currencyFormat);
sValue1 = "226.89";
sValue2 = "28525.11";
trace("sValue1: "+sValue1);
trace("sValue2: "+sValue2);
iPaid = Number(sValue1)+Number(sValue2);
trace("iPaid: "+iPaid);
trace("String(): "+String(iPaid));
trace("NumberFormat.format: "+fmt.format(iPaid));
trace("Where's my money!!!");
sValue1 = "226.11";
sValue2 = "28525.89";
trace("sValue1: "+sValue1);
trace("sValue2: "+sValue2);
iPaid = Number(sValue1)+Number(sValue2);
trace("iPaid: "+iPaid);
trace("String(): "+String(iPaid));
trace("NumberFormat.format: "+fmt.format(iPaid));
trace("Any Ideas!!!");
Error Error Adobe Flash Player Has Stopped A Potentially Unsafe Operation
Dear Sir,
This is regarding the error which i am getting when i open one perticuler adobe application
"error adobe flash player has stopped a potentially unsafe operation "
I got one cisco flash presentation i am not able to open the file because of this error. It would be really helpfull for me if you could guide how to solve this problem.Awaiting your reply.I would appreciate your earleast reply
Regards
Lijesh.
**Error** TempInit : Line 1, Column 5 : [Compiler] Error #1084: Syntax Error: Expecti
Hi,
I'm trying to convert my AS2 project to AS3. I got rid of all errors but one :
**Error** tempInit : Line 1, Column 5 : [Compiler] Error #1084: Syntax error: expecting identifier before 45.
var 45:MovieClip;
I got no idea what tempInit is, and no where do I declare a variable called 45...
After searching the web for hours I am tired and thus asking for your help.
Thank you,
Error #2044: Unhandled IoError:. Text=Error #2032: Stream Error. Cannot Be Caught
Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: file:///C|/LocalWorkspace/Simulation%20Platform/sim/assets/conversations/14/Maria/NPC_104.MRK
Hi all, I'm getting this error, and I damn well know why. Its because I'm trying to load a file that doesn't exist. But the thing is, I'm wrapping the code in a try catch, and I'm still getting the error. Also, I'm being told that the error is on this line:
ActionScript Code:
var loader:URLLoader = new URLLoader();
I need to do it this way because i know that some of the files I'm trying to load do not yet exist.
But what could possibly be wrong with this line? And either way, it should be caught by the try, catch. So, whats the problem?
ActionScript Code:
try {
var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, completeHandler);
loader.load(new URLRequest(_filename));
} catch (error:Error) {
trace("DATA: loadAnimData(): Error loading lip synch data.");
}
Error Message ? Error #2044: Unhandled IoError:. Text=Error #2032:
Can anyone give me any advise on why in safari 3 and firefox i am getting this error:
Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: http://www.nayomusic.com/music/1.mp3
URL: http://www.nayomusic.com/home
The error occurs when a any link is clicked on from within homepage
If anyone has got any idea why this error occurring then this would be much appreciated
Thanks
Jon
Error #2044: Unhandled IoError:. Text=Error #2032: Stream Error.
I'm trying to open a new centred window with a javascript in AS3, the code is working in the browser but when tested in flash I got this error:
"Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: javascript:void(newWin=window.open('http://www.actionscript.org','newWindow','width=500,heigh t=500,left=590,top=262.5'))"
This is the code that I'm using.
Code:
var resX:int = flash.system.Capabilities.screenResolutionX
var resY:int = flash.system.Capabilities.screenResolutionY
var winW:int = 500
var winH:int = 500
var winX:int = (resX/2) - (winW/2)
var winY:int = (resY/2) - (winY/2)
var jsCode:String = "javascript:void(newWin=window.open('http://www.actionscript.org'," + "'newWindow','width=" +winW + ",height=" + winH +"," +"left=" + winX +",top=" + (winY-winY/2) + "'))";
var urlLoader:URLLoader = new URLLoader()
urlLoader.load(new URLRequest(jsCode))
What is wrong becouse if you test a compiled .swf with this code in the browser a centred window opens.???
Error #2044: Unhandled IOErrorEvent:. Text=Error #2032: Stream Error.
Hi all,
I created a simple streaming mp3 player and it works perfectly fine locally, but when i upload it i get the below error. I only get this error if i go to refresh or leave the page. The flash itself loads but does not function.
Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error.
at player.audio.actions::SoundLoader()
at player.audio.actions::Mp3Player()
at main_fla::MainTimeline/frame1()
The code that includes the url is below:
Code:
var songs:Array = ["believe.mp3", "newSong.mp3"];
the swf file is saved in the same directory as the mp3 files but i am still getting the stream error.
I have tried changing the path to a full url with no luck.
What is strange is that if i load the mp3 directly via the URL i have uploaded it to, and then go back to the player, it works. but only in firefox and IE. safari for windows does not work either way.
the class i used to load the url is below:
Code:
public function SoundLoader(songs:Array, player:Mp3Player)
{
songList = songs;
musicPlayer = player;
soundReq = new URLRequest(songList[songIndex]);
loader.load(soundReq);
loader.addEventListener(Event.COMPLETE, songLoaded);
}
Does anyone have any ideas? It's driving me nuts!
Much appreciated!
Error #2044: Unhandled IOErrorEvent:. Text=Error #2032: Stream Error
This is my code. (Even though this error occours, it doesnt affect my file in anyway, except when you look at it on a website a little error comes up (click it away) and everything is still exactly fine)
ANyway its annoying me now, so iw ont to get rid of it:
Heres my code:
ActionScript Code:
var s:Sound = new Sound(new URLRequest("Galactik_Football.mp3"));
s.play(0, 1000);
var ba:ByteArray = new ByteArray();
addEventListener(Event.ENTER_FRAME, loop);
var bmd:BitmapData = new BitmapData(700, 400, true, 0x000000);
var bm:Bitmap = new Bitmap(bmd);
addChild(bm);
var sp:Sprite = new Sprite();
addChild(sp);
var blur:BlurFilter = new BlurFilter(10,10,3);
var colorMatrix:ColorMatrixFilter = new ColorMatrixFilter([
1, 0, 0, 0, 0,
0, 1, 0, 0, 0,
0, 0, 2, 0, 0,
0, 0, 0, 0.99, 0
]);
function loop(e:Event):void
{
sp.graphics.clear();
sp.graphics.lineStyle(2, 0xFFFFFF);
sp.graphics.moveTo(-1, 150);
SoundMixer.computeSpectrum(ba);
for(var i:uint=0; i<256; i++)
{
var num:Number = -ba.readFloat()*200 + 150;
sp.graphics.lineTo(i*2.75, num*1.3);
}
bmd.draw(sp);
bmd.applyFilter(bmd,bmd.rect,new Point(),blur);
bmd.applyFilter(bmd,bmd.rect,new Point(),colorMatrix);
bmd.scroll(3,0);
}
Error #2044: Unhandled IOErrorEvent:. Text=Error #2032: Stream Error
Hi, i've written out some code that doesn't seem to want to work and im not too sure why. Basically i've imported a sound file in to flash and i have two buttons to play and pause. I've set up a custom class thing in the linkage properties of the sound file.
ActionScript Code:
var audio:Sound = new Sound(new URLRequest("Phil.mp3"));
var audioChannel:SoundChannel = audio.play();
pauseBtn.addEventListener(MouseEvent.MOUSE_UP, pauseSound);
playBtn.addEventListener(MouseEvent.MOUSE_UP, playSound);
function pauseSound(e:MouseEvent):void
{
audioChannel.stop();
}
function playSound(e:MouseEvent):void
{
audioChannel = audio.play(audioChannel.position);
}
When i try and run the code, it comes up with this message
"Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error.
at Untitled_fla::MainTimeline/Untitled_fla::frame1()"
if anyone can give any assistance as to why this doesn't work - it'd be super.
Error #2044 Unhandled IoError:. Text=Error #2032: Stream Error. URL:
Hey Everyone
Can someone explain this to me. I am using Go Live CS2 to upload my files and I only get the Error (below) when I upload my files to the internet. I have one FLA file and inside the FLA I have a request to a .xml doc to load in my images. The images appear when I test the file in FLash, and when I test my published html page. But as soon as I upload the files to the internet I get the error below. The flash file runs correctly but the images do not appear.
My page www.ii-designs.com/maybe then click on the works tab and where the bottom gray lines is where the images are suppose to be
I get this error
Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: file:///private/var/tmp/folders.501/TemporaryItems/AdapterTemp/Server_1/public_html/maybe/data/photoImages.xml at _photoImages/frame1()
please help this is driving me crazy
Thanks
Ryan
Error #2044: Unhandled IOErrorEvent:. Text=Error #2038: File I/O Error.
Gday guys,
im making a lil flex app to upload images for guys on my forum.. problem is, it works fine in opera and firefox im told now also, but in internet explorer.. im getting this error..
"Error #2044: Unhandled IOErrorEvent:. text=Error #2038: File I/O Error.
at uploadd$iinit()
at _uploadd_mx_managers_SystemManager/create()
at mx.managers::SystemManager/::initializeTopLevelWindow()
at mx.managers::SystemManager/::docFrameHandler()"
this is my code? its str8 off the adobe site itself. from what i gather, its the way the scipt is handling the error itself? its terminating itself bcos of it.?
Code:
<mx:Script>
<![CDATA[
import mx.controls.Alert;
import flash.events.DataEvent;
public var fileRef:FileReference = new FileReference();
public function upload():void {
// listen for the file selected event
// listen for the upload complete event
fileRef.addEventListener(Event.SELECT, selectHandler);
fileRef.addEventListener(Event.COMPLETE, completeHandler);
fileRef.addEventListener(DataEvent.UPLOAD_COMPLETE_DATA , uploadCompleteHandler);
// browse for the file to upload
// when user selects a file the select handler is called
try {
var imageTypes:FileFilter = new FileFilter("Images (*.jpg, *.jpeg, *.gif, *.png)", "*.jpg; *.jpeg; *.gif; *.png");
var allTypes:Array = new Array(imageTypes);
var success:Boolean = fileRef.browse(allTypes);
}
catch(error:IOErrorEvent) {
trace("IOErrorEvent catch: " + error);
}
}
// when a file is selected you upload the file to the upload script on the server
public function selectHandler(event:Event):void {
var request:URLRequest = new URLRequest("upload.php")
try {
// upload file
fileRef.upload(request);
textarea1.text = "uploading " + fileRef.name + "...";
}
catch(error:IOErrorEvent) {
trace("IOErrorEvent catch: " + error);
}
}
// dispatched when file has been given to the server script. does not receive a response from the server
public function completeHandler(event:Event):void {
trace("file uploaded complete");
}
// dispatched when file has been uploaded to the server script and a response is returned from the server
// event.data contains the response returned by your server script
public function uploadCompleteHandler(event:DataEvent):void {
trace("uploaded... response from server:
" + String(event.data));
textarea1.text += event.data as String;
}
]]>
</mx:Script>
Also id like to be able to directly have the link traced into the message box itself, so people dont have to copy n paste.. is there an easy solution in the php code?
Heres the link, the upload is on the left of the main reply box.. heres a direct link to the forum, use
User: Ryann
Pass: temp
http://www.weride.net/ThrashedMinis/phpBB2/
, and press a reply or new topic sumwere to view it.. thanks for anyone taking a look..
Ryann.
Error #2044: Unhandled IoError:. Text=Error #2032: Stream Error.
Hi all I really need help. What I understand from this error is that Flash can't find the file which is a bit of confusing, because if I copy the code to other file it works. Is there something with that I have 2 urloaders in the code I load 2 different type of files one txt and one xml? This is the structure of my xml file
Code:
<xml>
<name>Some Name</name>
<address>Some Address</address>
<option>Some Option</option>
<other>Some Other</other>
<bank>Some Bank</bank>
<iban>12300 0000 0000 0000 0000 00</iban>
<bic>25500000</bic>
</xml>
Please help
Error #2044: Unhandled IoError:. Text=Error #2032: Stream Error.?
I get this message "Error #2044: Unhandled ioError:. text=Error #2032: Stream Error." when I try to get parameters from a .asmx doc that looks like this:
.net:
flUser.Movie = string.Format(@"{3}?UID={0}&strUserName={1}&strWsUrl......
In as3:
var oParam:Object = LoaderInfo(root.loaderInfo).parameters;
strUserID = oParam.UID;
I get the parameters written into a textfield but it doesn't work? Anyone know what's wrong? Could it have something to do with Sandbox issue? Do a miss an "import.display"?
Flash/Actionscript "quiz" Logic Needed
I am in dire need of the "guts" or logic to use for a simple Flash quiz game that will basically store values (presumably using arrays) of correct/incorrect answers (only 10 questions), total score... you get it. I cannot find anything usable online anywhere.
Could somebody please point me toward something that I might be able to use as a template and just reskin? It would be extremely helpful! Thanks in advance.
Need AS Logic Wiz
Hi:
If you're not up for a challenge, this thread probably isn't for you. Just wanted to say that to keep from wasting people's time. However, if you are good at scripting logic, and want to help me out, then please read on....
If you need a visual, take a look at my site (under construction):
http://www.ekigroup.com
Almost all of my actions are controlled with AS. If you click on "portfolio," for example, the content in the center panel will change, and the left panel will open to reveal additonal content.
This works fine, except that I need to use the left and right panels for other content as well. So, all of the button actions have to be coordinated. For example, if the left panel is closed when the "portfolio" link is clicked, I need it to open, as it does now. However, if it is already open, then I need it to close and reopen, replacing the content, with that of the "contact" link, when it is clicked, for instance. This too works for now, but I have more content to add to other buttons, possibly using the righthand panel as well.
I had already worked some of this out using more than one button for the links affected, but, now, all of the possiblities are becoming too complicated to easily work out all of the actions by swapping buttons.
So, what I need to do is to be able to individually control the opening and closing of the left, right and center panels, as well as coordinate these actions with all of the other buttons, so that there are no conflicts.
The easing content is controlled like this:
On each MC containing the content for their respective links, I have the following actions:
onClipEvent (load) {
this._x=500;
this.finalX=500;
this._y=25;
this.finalY=25;
}
onClipEvent(enterFrame){
this._x +=((finalX - this._x)/5);
this._y +=((finalY - this._y)/5);
}
Obviously, I'm setting the intial _x/_y and the finalX/Y to the same coordinate, so that the MC is at rest when the movie loads. Then, all I have to do is change the final X/Y to ease it into place when a button/link is clicked.
Below is an example of the actions from one such button/link:
on (release) {
_root.mainWindowMask.contactContent.finalX=100;
_root.mainWindowMask.contactContent.finalY=25;
_root.mainWindowMask.aboutContent.finalX=100;
_root.mainWindowMask.aboutContent.finalY=500;
_root.mainWindowMask.portfolioContent.finalX=500;
_root.mainWindowMask.portfolioContent.finalY=25;
_root.mainWindowMask.servicesContent.finalX=-500;
_root.mainWindowMask.servicesContent.finalY=25;
_root.mainWindowMask.mainContent.finalX=100;
_root.mainWindowMask.mainContent.finalY=-500;
}
So, unlike tweens, the nice thing is that if the MC is already at the desired location, it stays put, if it isn't it goes there. These only affect the main (center) panel at this point, but this is the same premise/logic I want to apply to all three (left, center, right) panels at once.
So, how do I do that, without the actions conflicting?
I started out by trying to integrate a simple if/then/else, but I can't get it to work.
Here is an example that I added to the above script for the "contact" button:
if ((_root.leftPanelMask.leftPanelGraphic2.finalX=0) && (_root.leftPanelMask.leftPanelGraphic2.finalY=0)) {
_root.leftPanelMask.leftPanelGraphic2.finalX=0;
_root.leftPanelMask.leftPanelGraphic2.finalY=-250;
}
else if ((_root.leftPanelMask.leftPanelGraphic2.finalX=0) && (_root.leftPanelMask.leftPanelGraphic2.finalY=-250)) {
_root.leftPanelMask.leftPanelGraphic2.finalX=0;
_root.leftPanelMask.leftPanelGraphic2.finalY=0;
}
To the best of my knowledge, the above actions are saying, if the left panel is up, then close it, if it is down, then open it. But this isn't working. And I also need to add some AS that will also reopen it, if need be. I have played around with making the actions frame actions, but it's been difficult coordinating the replacing of the content with the opening and closing of the panels.
I have "contact" info that I want to display in the lefthand panel, along with the form in the center panel, so I need the above mentioned logic. If the left panel is up when the "contact" button/link is clicked, close it, then reopen it with the new "contact" content. However, if the left panel is already down, like it would be if no other buttons have been clicked yet, then I just need it to open with the "contact" info.
So, any of you AS geniuses have any ideas? Better yet, can you get me started with the code logic? Even if it involves one or two button swaps, I'd be happy with a shove in the right direction.
Thanks for any assistance,
James E. Cover
He is risen!!!
A Little Help With Logic
I am working a project that needs to do the following:
I have a map of the US and I need to be able to click on a state and add it to a list. (Everyday I make a list of the coldest states for our shipping dept).
Anyway I have done other things in Flash but I am having trouble on deciding the best way to do this project.
Anyone have a tutorial that could be modified to do what I need or any ideas?
Again, I need is a simple list (printable .txt or just show up on next to the map to print the screen) when states are selected.
CD Rom With Logic
Hi
I'm looking at designing a stand alone CD Rom that will alow users to take a test and at the end printout the results as well as give the user a qualification.
So after they take the test the get given the results as well as something along the lines of "You qualify to be an engineer".
I'm hoping this can be done entirely in flash? Is this possible? If so can you point me in the right direction please?
Thanks
Frogstar
Help With Some If Logic
id is a number
'any value in this array' is an array of numbers
How can I do this:
ActionScript Code:
if (id != 'any value in this array')
{
//run the code;
}
else
{
//id already in array so skip
}
The only way I can think of is using a for loop..is that the only way or is their an easier?
Looking For Some Logic
Hi all,
I am wondering if anyone can explain how i would go about doing the following below.
I have got some information in a database (MYSQL) and I want to display that flash, but for every record in the database I want it represented in flash as a movie clip (guessing) at some random location on the stage. Each movie clip must act as a button as well so when hovered over it display the text for that record from the database it represents.
So I am thinking tell me if I am right or wrong.....
Use php to build the XML dynamically and arrays to hold the value.
create a movie clip to hold the xml info
duplicate the movie clip for each record in the database
Am I on the right track
Where's The Logic?
now i'm new to AS and am learning a great deal from trial and error and the wonderous ppl on here!! But when I try and impliment those things i've learnt it seems that my logic is different to AS writers!!
I have this code >>>
this.onEnterFrame = function()
{function wait()
{_root.btns_container.btns._alpha = 0}
{if (_root.container1.SUB._x > 440) {
_root.container1.SUB._x += -30;
} else if (_root.container1.SUB._x > -30) {
_root.container1.PAGE._x += (-65-_root.container1.PAGE._x)/8;
_root.container1.SUB._x += (0-_root.container1.SUB._x)/2;
else {delete this.onEnterFrame;
}}}
}
Which moves 2 objects from right to left with ease. Then on release of another button I want those button to move back in with ease. So i altered the code to the following >>>
this.onEnterFrame = function()
{function wait()
{_root.btns_container.btns._alpha = 0}
{if (_root.container1.PAGE._x <= 0){
_root.container1.PAGE._x += 355;
} else if (_root.container1.PAGE._x >= 30) {
_root.container1.SUB._x += (660-_root.container1.SUB._x)/4;
_root.container1.PAGE._x += (307-_root.container1.PAGE._x)/8;}
else {delete this.onEnterFrame;}
}}}
Most of it works, except PAGE doesn't slide in anymore it just jumps from one position to another!
Am willing to send files via email incase anyone wants to have a look, but they r too big for attaching.
Much needed help.
Claire
[XML] - Some Logic Q's
Ok so first time XML'er here. Basically my file setup looks like this
Code:
<?xml version="1.0"?>
<SKU>
<ID>Celcon_CE-10</ID>
<DESC>Designing with Celcon acetal copolymer(CE-10)</DESC>
<FILENAME>Celcon_CE-10.pdf</FILENAME>
<MARKETS>
<ANTIMICROBIAL>No</ANTIMICROBIAL>
<APPLIANCES>Yes</APPLIANCES>
<AUTOMOTIVE>No</AUTOMOTIVE>
<BATH>No</BATH>
<COMPOSITES>No</COMPOSITES>
<CONSUMER>No</CONSUMER>
<COOKWARE>No</COOKWARE>
<CONNECTORS>No</CONNECTORS>
<FLUIDHANDLING>No</FLUIDHANDLING>
<GEARS>No</GEARS>
<ITS>No</ITS>
<MEDICAL>No</MEDICAL>
<OIL>No</OIL>
<RITEFLEX>No</RITEFLEX>
<STRUCTURAL>No</STRUCTURAL>
<TECHNICAL>No</TECHNICAL>
<UNDERHOOD>No</UNDERHOOD>
</MARKETS>
<PRODUCTS>
<CELANEX>No</CELANEX>
<FORTRON>No</FORTRON>
<GUR>No</GUR>
<HOSTAFORM>No</HOSTAFORM>
<IMPET>No</IMPET>
<RITEFLEX>No</RITEFLEX>
<VANDAR>No</VANDAR>
<VECTRA>No</VECTRA>
</PRODUCTS>
</SKU>
This is only one record. Now, I'm not sure how I should load this stuff. Should each record be it's own array or do I want and ID array, Desc array, etc..
Right now
ActionScript Code:
function loadXML(loaded) { if (loaded) { _root.id = this.firstChild.childNodes[0].firstChild.nodeValue; _root.description = this.firstChild.childNodes[1].firstChild.nodeValue; _root.filename = this.firstChild.childNodes[2].firstChild.nodeValue; _root.markets = this.firstChild.childNodes[3].childNodes[0].firstChild.nodeValue; } else { trace("Error loading file"); }}xmlData = new XML();xmlData.ignoreWhite = true;xmlData.onLoad = loadXML;xmlData.load("../xml/config.xml");
Will load each node into varaibles - but I'm not sure this will help me any.
Any advise?
Logic Help
Is there a way I can get the .fla file here so you can see the source of my problem? Instead of pasting all the code?
Rod
Logic Help
I am building my first flash site and so far everything is going well. I have a vertical accordion navigation.
It is setup so that when you click on an nav item, the nav items below the selected will move down on the "y" axis 200px. I have it setup this way to allow the selected portfolio piece to come in from the left into the open space.
I am having trouble with the logic to have my portfolio piece's tween in. As well as when you click on another item the current item should tween out, the nav spreads (which I already have working), then the new item will tween into the available space.
This seems to be easy, but I just need a bit of guidance.
Thanks
Logic AS - Do You Have It?
So... I'm trying to build a button list from an array. The amount of buttons will depends on the lenth of the array.
ActionScript Code:
var listID:Array =["1", "2", "3", "4"];
function buildList() {
var spacing:Number = 50;
for (var i = 0; i < listID.length; ++i) {
trace("entered loop");
var name:String = listName[i];
var y:Number = i * spacing;
display_mc.list_mc.attachMovie("infoBar", name, i);
display_mc.list_mc[name]._y = y;
display_mc.list_mc[name].buttonOver.onPress = function() {
trace("Pressed: " + name);
}
}
}
Right now as is... When I try to press on the "buttonOver" I get the last variable on the array- "4"
All I want is for the button to stick with a value. Anyone have any ideas? Or other ways to go around it? OMG THANKS
Actionscripting Logic
Hi Programming Gurus,
I am importing 8 numeric variables into my flash movie, var1 through var8. I wanted to figure out which variable is the largest and assign that to a new variable and so I threw in this code:
_level0.biggest = _level0.var1
for (i=1; i<9; i++) {
if (_level0["var" + i] > _level0.biggest) {
_level0.biggest = _level0["var" + i];
}
}
It doesn't set _level0.biggest to the right value though. Does someody tell me why this script won't determine the largest variable?
Thanks much!
bread_man
Logic Problem
I wondered if you could help me as Ive been racking my brains on this simple task but can't understand why it doesn't work.
On my main timeline I have three layers
actions
main menu
menu 2 - amovieclip with an instant name workmenu
In the actions layer I have script which is - workmenu._visible=false;
On mainmenu layer I have a movie clip containing
actions layer - stop()
an invisible button layer - which stretches two frames
a text layer - with two frames, one frame which has an off state, and the other an on state.
Here is my code on the invisible button
on (rollOver){
gotoAndStop (2);
on (rollOut){
if(_root.workmenu._visible = false){
gotoAndStop(1);
}else if (_root.workmenu._visible=true){
gotoAndStop(2);
}
}
on(release){
_root.workmenu._visible=true;
gotoAndStop(2);
}
Basically I want movieclip menu 2 to appear on the invisible button release. This happens but if I rollover and then rollout out the workmenu appears and I don't no why. It seems strange as I have set the rollout statements accordingly.
Can you help?
A Little Programming Logic Help Please
Not sure if I should post this here or in "Backend Server" stuff. I'll try here 1st.
Here's the deal. I have a vbs file that sends my flash app some vars containg room names (like in a house). I then use the vars to diplay the text dynamically and the status of the device in a room. Vars come in this format:
devloc_0, devloc_1, devloc_2, devloc_3...
I know I am going to get values like, "Kitchen", "Den", "Bath Rm" and so on. However, there are not always in the same variable. Example, "Den" is not always contained in "devloc_0". Part of my screen layout in Flash is hard coded (images of rooms are fixed and I use the dynamic text above image for discription)
So, here is what I need to do. I need some coding ideas on how to control/re-map the vars to containg the room names.
A little more detail. Let's say devloc_0 comes to me as "Kitchen", but on my screen I have dynamic text var devloc_0 above the "Den icon", I don't want it to say "Kitchen" I would want it to display the text "Den".
So, how can I do this in code? Any better way to tackle this. Ideas?
Thanks,
-Glenn
|