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




Masks, Damn Things



Hi,

is it not possibe to place a mask movie into another movie? or can masks only be drawn directly onto the main stage?

cheers
g



FlashKit > Flash Help > Flash General Help
Posted on: 07-06-2004, 08:25 AM


View Complete Forum Thread with Replies

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

How Do I Make The Damn Things Move Slower?
i've downloaded this dynamic menu right here:

http://www.flashkit.com/downloads/mo...Navigation.zip

but i'd like to make the spheres move slower.. any ideas on how or where should i modify the AS ?

Thanks!!

¿How To Enlarge Masks On Rollover While Shrinking Other Nearby Masks?
Hi,

I'm trying to figure out how to acheive a similar effect to the main 4 buttons, at this site, http://www.nationalgeographic.com/forcesofnature/

There is a grid of 4 rectangles, each quadrant is a mask/button. When you rollover one quadrant, the mask/button enlarges, and the other 3 mask/buttons shrink. This all happens inside of the fixed-size grid.

Can anybody lead me in the direction of a tutorial or let me know the name of the technique so I can search out help resources on my own?

Thanks in advance...
kp

Does It Make Things Easier To Plan Things Out Before Programming?
I know this may seem like a stupid question, but as a Actionscript beginner i'd like to know if its easier to plan things out before hand. Basically i've got to make a Class that does the following:

- Creates a shape with a size and colour defined by values passed through the constructor
- the initial position of the shape should be passed to the constructor
- the horizontal vertical speed should be passed to the constructor
- the initial direction (up or down) should be passed through to the constructor
- the shape should reverse direction on "impact" with the stage top and bottom.


Now i want to make the thing itself, but i think im going to struggle. unless i make a really decent plan of the class. so can anybody recommend what the best way to plan out this is?

if anyone can help, i'd appreciate it - if not, no worries.

[F8] How Do I Get Things To Follow Things?
I'm trying to get the enemy follow what you control in an overhead game and my current actionscirpt is...

onClipEvent(enterFrame){
function locate(uuuxe) { //function name is locate()
xd=this._x-_root.uuuxe._x //the difference in-between this symbol's x and the other symbol's
yd=this._y-_root.uuuxe._y
npx=(xd+yd)/Math.pow(2,1/2)
npy=(yd-xd)/Math.pow(2,1/2)
if(npx>=0 && npy>=0) {
this._rotation=0
this._y-=2.5
return 1
} else if(npx>=0 && npy<=0) {
this._rotation=270
this._x-=2.5
return 2
} else if(npx<=0 && npy>=0) {
this._rotation=90
this._x+=2.5
return 4
} else {
this._y+=2.5
this._rotation=180
return 3
}
}
}

What am I doing wrong? Thanks!!

FlashNoobXanthus

Damn
Hey,

my site is http://www.angelfire.com/dc/itproject0 . The problem is that the guy sitting on the chair gets stuck half way through, that little movie clip of that dude is suppose to loop, not get stuck half way through...Before I added the background effect everything was ok.

DAMN BUG IN MX Or Me?
I've got a big problem and let me know if i'm not the only one. Follow the steps and tell me what happens:

1. Run Flash MX
2. Open New .fla
3. Select the Oval Tool
4. Draw a cute Oval on the stage [any damn size...i dont care]
5. Apply Radient Color
5.1 Try applying a shade of red, yellow and green. [again..i don't care..]
6. Leave that Oval alone and draw another one right next to it.
6.1 Yes, it would leave back the same colors drawn for the earlier one..
7. Change the radial colors to anything else e.g. blue, pink, orange.
8. Now,

I WANNA ADD ANOTHER COLOR TO THE FIRST OVAL KEEPING ITS OWN COLORS AS IT IS!! HOW THE BLOODY ******* DO I DO THAT ?!#?$!@?#%? !% YoU CLICK ON THE DAMN FIRST OVAL AND THE COLOR MIXER PALLETE DOESN'T CHANGE!!!

9. Suggestions anybody?

BTW, I've tried it with Flash 5 and that's not the case...it kindly helps you to append colors to the previously created oval...

If Anyone knows the real way to work this out then please let me know...I'm dying to get this str8!!

Damn Pop Up Help
I have been using the pop up generator page thing to make the code for my pop up screens, only problem is, there is options to show the address bar and status bar and toolbar (The one with the icons) But how do u get it to show the other toolbar (The one with File, Edit, View, Favourites)?

Any help apreciated.

Damn This AS3 :lol:
Okay. Another issue. I'm creating everything in my sound spectrum class through AS3. I started to draw few Sprite class and now I added two more, and now it gives me error Sprite can't be loaded?

I've checked I'm using Actionscript 3.0, I have import flash.display.Sprite; command in there. Still? Allso I've tried import flash.display.*; But no...

Anyone gots any ideas? I've shutted Flash and re-opened it... NO! AS3 sucks... (ofcourse it's good but this makes me crazy here :twisted: )

Damn You XML Damn You
Hello I have built borrowed and stole some ideas on this simple XML slide show. However I am having a few issues.

I am trying to build it where when the play_btn is pressed it will play through all my pis. I have it workin going to next pic and I have it going back to the 1st pic but I don't know how to just let it play throug.

The 2nd issue I am having is when it gets to the end pressing the next_btn it doesn't just loop to the begining instead it goes blank and if I am in Flash it gives me an error of undefined.

here is my code within the main timeline
Code:

function loadXML(loaded) {
   if (loaded) {
      xmlNode = this.firstChild;
      image = [];
      description = [];
      webDescription = [];
      linkDescription = [];
      total = xmlNode.childNodes.length;
      for (i=0; i<total; i++) {
         image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
         //description[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
         //webDescription[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
         //linkDescription[i] = xmlNode.childNodes[i].childNodes[3].firstChild.nodeValue;

      }
      firstImage();
   } else {
      content = "file not loaded!";
   }
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images.xml");

function nextImage() {

   if (p<(total-1)) {

      p++;
      if (loaded == filesize) {

         picture._alpha = 0;
         picture.loadMovie(image[p],1);
         //desc_txt.text = description[p];
         //title_txt.text = webDescription[p];
         //link_txt.htmlText = linkDescription[p];
         picture_num();

      }

   }

}
function prevImage() {

   if (p>0) {

      p--;
      picture._alpha = 0;
      picture.loadMovie(image[p],1);
      desc_txt.text = description[p];
      title_txt.text = webDescription[p];
      link_txt.htmlText = linkDescription[p];
      picture_num();

   }

}
function playImage() {
   
}


function firstImage() {

   if (loaded == filesize) {

      picture._alpha = 0;
      picture.loadMovie(image[0],1);
      desc_txt.text = description[0];
      title_txt.text = webDescription[p];
      link_txt.htmlText = linkDescription[p];
      picture_num();

   }

}
function picture_num() {

   current_pos = p+1;
   pos_txt.text = current_pos+" / "+total;

}






Here is my code nested inside the buttons mc.

Code:


next_btn.onRelease = function() {
      _root.nextImage();
   //trace("next btn");
   
};
back_btn.onRelease = function() {
   _global.myRoot.remoteReset();
   //_global.picture.unloadMovie();
   _root.firstImage()
};
play_btn.onRelease = function() {
   //trace("play");
};
stop_btn.onRelease = function() {
   //trace("stop");
};



Now there is one more item I would like to address and I have no clue how to do this but basically my first picture is just for when you come into the page, if and when you all help me with my looping issue I want to skip over this picture until I call it back.

Thanks,


tmo

Damn Smartclips
I have a dynamic text inside a smartclip and i need it to show a variable, but it wont understand. how can i make it work???

This is how the dynamic text is set:

name | value
nome | _root.dj

Damn Flash
Hi,

I'm having a problem which I can't solve. I want to get the tv-lines (on every 2 pixels a line) effect in flash. I did It first in Photoshop but when I imported It into flash It's all scrambled. After that failure I tried to do It in flash, but It's still crappy.

Is there a way to get these lines in good quality in flash?
I've seen It on other sites before so I know It's possible.

Plz help me out!

Thx

Damn Levels
Hi, it's the rush time and I have a **** with a loadmovie/multiple level site!

this is the problem:

I have a main.swf, in this one you can open a menu
this loadmovie is loaded on the 2nd level

This menu can open the third loadmovie on the third level.

Now that I have trhee levels actives, I have to close the third by a button and told a clip on the root of level 2 to play the next frame of himself...


the command is called by a telltarget on a button, on the third level!!!


on (release, releaseOutside) {
tellTarget ("level2._root.menu_secondaire") {
nextFrame ();
}
_root.gotoAndPlay("Fermeture");
}



menu_secondaire is the clip instance's name


WHY DOESNT WORK!!!!!!!!!


thanks a lot!

Ben

Damn....button
hi,
On my timeline frame 1 - I have a button. On 2nd frame I have a mc (instance: just)

How I can make to play the mc via my button by using actionscript?

I've trid this code but nothing :

(button) : on (press) {
just.gotoAndPlay (2);
}

Damn Annoyed
My nav system @

http://www.djdusky.co.uk/test

(the squares)
is really annoying me. I know there's a way to stop the words 'sticking' when you roll off the button - but I can't figure it out. Is there a way of changing the frame rate of a specific movie clip or something like that?

Many thanks in advance

Sorry Its That Damn Preloader Again...
i know there was a previous problem about this, when my file was small it started from 0%, however as it was growing the preloader started later as in like 30% or so....heres the preloader script for foolproofing...pls help me...thanks...
onClipEvent(load){
Loaded = 0;
Total = _root.getBytesTotal();
}
onClipEvent(enterFrame){
if(Loaded < Total){
Loaded = _root.getBytesLoaded();
percentLoaded = Math.round(100*Loaded/Total);
if (Loaded < Total){
_root.displayText = "Loading..."+_root.getBytesLoaded()+"bytes";
barfill._xscale = percentLoaded;

}else{
_root.displayText = "Loading Complete.";
barfill._xscale = 100;
_root.nextFrame()
}
}
}

GOD DAMN FONTS
Hey,

IM trying to use the 'saved by zero' font in my flash movie. I've extracted it to c:/windows/fonts.

But no luck, i've tried a few different types but I still get the default font list in the flash UI . Im getting royally p****D off.

any ideas folks please!!!!

DAMN BUTTONS
OK LETS SEE I HAVE ABOUT 25 MOVIE CLIPS ON MY STAGE AND SOME OF THEM OVER LAP! WHAT I"M LOOKING FOR IS TO CONTROL THEM WITH A STOP AND PLAY BUTTONS THAT WILL STOP ALL THE MOVIES AT THE SAME TIME AND PLAY AT THE LAST POSITION LEFT OFF. I'VE TRIED TO PUT A BUTTON ON THE STAGE BUT IT DOESN'T SEEM TO WORK AND WHEN I PUT THEM IN THE MOVIE CLIP IT ONLY STOPS THAT ONE MOVIE CLIP PUT THE REST SEEM TO CONTINUE TO PLAY HELP PLEASE

Damn Buttons
I'm trying to build a page with different scenes and i have the same set of buttons (all in one layer named "Links") in every scene wich, i hope, will some day work as a menu...

I've only been trying to make the first two buttons (Home & History) work and i have done all the things i read here but the movie simply doesn't move at all! I couldn't get the buttons to work even when i had everything in one scene and used the "gotoandplay(frame number)" thing (the scenes are really small, so i tried this first...)!

The button symbols were made with a "gif + square" symbol joined with a text field.

The first scene is "1Home" and the first frame is labeled "Home". The second scene is "2History" and the first frame is labeled "History". All the mentioned frames have the "stop()" thing and all the "within scene" buttons work well with the same scripts wich are giving me these headache.

To go from button "history" on scene "1home" to scene "2history", frame1 "History" i've been trying to use (among other things...):

(on (press) {
gotoAndPlay("2History", "History");
}

I've also tried the frames numbers and lots of other things.

The question is: why the hell doesn't this work???
what am i doing wrong???

Help! It's my first webpage with flash and i've only started learning flash a couple of weeks ago. I'm getting desperate!

I'm sorry for so much writing but i tried to explain my problem the best that i could.

DAMN SOUNDS......
ok im guessing this is action script but i want a long sound to play but i dont want to extend the frames for the sound is there any way just to keep it playin because if i leave it with short frames it just stops at those frames.... its probably easy im just stupid!!

thnx Tom

Oh, Those Damn Variables...
THE problem is: I can't use variable "myVar" outside the function! Well... this is how I TRIED to do it... (read: screwed it up )

frame 1 (root):

---
myScrollpane.setScrollContent("productsMC");

prodTxt = new loadVars();
prodTxt.load("products_01.txt");

stop();
---

MC that locates in library and is loaded to the scrollpane with "setScrollContent" (see the above code):

---
_root.prodTxt.onLoad = function() {
myVar = Number(_root.prodTxt.<var I have in the text file>);
_root.mytxtField.text = myVar;
};

_root.mytxtField.text = myVar;
---

This includes the text into "mytxtField" when done INSIDE the function but when done in the SAME mc OUTSIDE the function, nothing happens. I am sure that I am doing something wrong here... but what? It is easy to suppose that variable "myVar" is allowed to use in any MC ...once created. But it seems not...

PS. I am trying to do a button menu into a scrollpane ...by dynamically loading the external pictures into that MC and for those pictures I need the info from the external text file (ex. name of the picture, length, height, so on...) So, when I (somehow) get first image loaded then I should locate next picture beneath the previous one ...with help of the height value got from that text file. Sounds complicated but I need to do a sort of ENGINE that loads pictures no matter how many there are and so on...

Damn Timeline
this might sound stupid, but in flash MX, u know how u have those keyframes that are just dotted lines? that sometimes jstu end up trailing behind your movie for like an extra 50 frames? IS THERE ANY WAY TO GET RID OF THEM ?

Damn Images....
I am working on a demo right now with alot of screenshots and vector images. I would say about 50% of the images look like crap. I am aligning X and Y, as well as exporting in various methods (PNG, JPG, GIF) Does anyone know of a solution to get great looking imported graphics?

I appreciate any help you might be able to give!

Thanks,
/zach

Damn Rollovers.. Help
Hi,

Having trouble with FlashMX... I've created a series of rollover wotsits, but when the blank space beside them is rolled over (where images appear when the images are rolled over) then the images appear! Please check it out...

http://www.80scartoons.co.uk/4MW/new/right/dots2.swf

... to see what I mean. How can I make the images appear when ONLY the orange dots are rolled over?? Grrrr!

Thanks muchly for any help,

Claire

Damn Preloader
I have a movie which worked fine until i put a preloader in. The preloader has been put in a scene before the main scene, and consists of three frames:

Frame1:
if (_root.getBytesLoaded()>=_root.getBytesTotal()) {
gotoAndPlay("Scene 1", 1);
}

Frame2:
if (_root.getBytesLoaded()>=_root.getBytesTotal()) {
gotoAndPlay("Scene 1", 1);
}

Fame3:
gotoandplay(2);

The problem is that when this is added to the movie, my animated over_state buttons, and a scroll button dont work properly. They seem to keep jumping back to frame 1 or something.
I have uploaded it:
www.red135.co.uk/cars.html - this is how the movie should work (try the buttons)

www.red135.co.uk/problem.html - this is how it works with the preloader.

Any help would be greatly apreciated.

Tha Damn Loadmovie Why? Why?
Why doesn't anything seem to work?

Look guys, I've got this small picture which i want to load on stage from another movie clip. I want to LOAD IT because this will eventually be done for about 30 of them.

So, i created a rectangle at the exact dimensions of the little picture. Made it into a symbol.
Now i want it:

onClipEvent (load) {
loadMovie("pica1.jpg", ?what goes here? );
}

so that the orginal movieclip disappears and infront of it my little picture appears (at the exact place where the movieclip was)

A second question
If this is done for about 30 movieclips, each loading a different little pcture, can they be made into one large movie clip so that a scrollpane can scroll them from the first to the last?

I Can't Get The Damn Smoothing Off
okay, i have this tiny .gif and it refuses to display clearly. it's a little sound icon and i have the smoothing turned off but it still shows up all wacky. i've tried using a .jpg or tracing the bitmap to make it a vector but i still can't get a clean image. please have a look at the attached file and zoom in the icon to get a look at it. any help would be greatly appreciated.

thanks!

p.s. i can't run the movie at a lower quality, is there another way to turn anti-aliasing off?

God Damn It HitTest
I would like to learn about getBounds() in flash

Thanks

Damn, How Am I Surpose To Do This
am trying to create a picture slide using the fader mixer, for some reason i can't link my project picture to the fader. does any1 now how am suppose to do it.



there surpose to be 2 role of picture on either side going up and down when i move the fader. how do i link the fader to the picture strip.

Damn Resolutions
Ok I am working on a site for a client that wishes to improvise frames in his site. Now I am creating the site on my 1024 X 768 desktop screen resolution but when I drop down to 800 X 600 for people with crappy resolutions and old computers, the work looks like crap. Burry Text! Etc Etc.

Is there a way to fix this without creating two seperate sites.

Damn Button
I made a button but its messed up you have to put your cursor on top of the button near the shine instead of the whole button activating the movie.... just check it out, plz i need to fix this.

Damn I Need To Learn
okay i need a tut for making animations similiar to xiaoxiao 1 or 2
i really really need it!

Damn Cheaters Need Your Help
ok ive built a game for a game i play planetside..

a question based game which can be found at the folowing link:

www.knaggsy.co.uk/planetsidegame/index.html

however people can right click the game and click pause.. givign them as much time as they like. or click forwads on the end screen to go to the next question.

How can i fix this so it just says settings as ive seen on some sites.. or not let them right click on it at all.

thanks for your time.

knaggsy

PLEASE PLEASE Help Me With These Damn Buttons
The file is linked below this post. I am only concerned with the first two categories (copy writing and art design) not the second two (Design and contact). What I need is for all the numbed buttons (1-12) to be recoded so they work just like they do now, yes just like they do now. which means when you roll over one its movie clip will play on top, when you roll out it stops, and when you click it stays on top moving under when you roll over another one and stopping when you click another one. The problem with the way it is now after you go between the categories a couple of times the movie clips start staying on top on just rollovers and sometimes they stop working all together. I am trying to figure out what I am doing wrong. Can someone please help me out?

Here is the file I am referring to:

https://www.filesdirect.com/info/D.a...e834a6d21f015c

Damn Popups
Hey guys, I have two questions here both relating to popup windows. My first is about a popup window opening from a flash video. So far I have been using this code, but I need one that will center the window horizontally and vertically

on (release) {
getURL ("javascript:NewWindow=window.open('http://www.photograffiti.ca/slideshow/slideshow.html','Contact','width=800,height=600,le ft=0,top=0,toolbar=No,location=No,scrollbars=No,st atus=No,resizable=No,fullscreen=No'); NewWindow.focus();void(0);");
}

My second question is more of a javascript one, but I thought someone here might know. I am opening a popup from my index page which contains the flash video. I want it to open before the video is loaded, but as of now I have to wait for the video to load and then the popup will come.

Here's the code for that. The first part goes in the head

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,men ubar=0,resizable=0,width=466,height=239,left = 407,top = 392.5');");
}
// End -->
</script>

This part is in the body

<BODY onLoad="javascriptopUp('http://www.photograffiti.ca/welcome.htm')">

Damn Email
I've been trying to send a flash email using php, but i just cant get it to work , i recieve a 'your form has been submitted', but no email!
So i'd be eternally grateful if you guys could check my code.

Here is my php:


Code:
$subject = $_REQUEST["subject"];
$message = $_REQUEST["message"];
$sender = $_REQUEST["sender"];


// include sender IP in the message.
$full_message = $_SERVER['REMOTE_ADDR'] . "

" . $message;
$message= $full_message;

// remove the backslashes that normally appears when entering " or '
$message = stripslashes($message);
$subject = stripslashes($subject);
$sender = stripslashes($sender);

// add a prefix in the subject line so that you know the email was sent by online form
$subject = "Contact form ". $subject;

// send the email, make sure you replace email@yourserver.com with your email address
if(isset($message) and isset($subject) and isset($sender)){
mail("mail@hotmail.co.uk", $subject, $message, "From: $sender");
}
?>
The Actionscript:

Code:

stop();
send_btn.onRelease = function() {
my_vars = new LoadVars();
my_vars.sender = email_box.text;
my_vars.subject = subject_box.text;
my_vars.message = message_box.text;
if (my_vars.sender != "" and my_vars.subject != "" and my_vars.message != "") {
my_vars.sendAndLoad("formresponse.php", my_vars, "POST");
gotoAndStop(2);
} else {
error_clip.gotoAndPlay(2);
}
my_vars.onLoad = function() {
gotoAndStop(3);
};
};
email_box.onSetFocus = subject_box.onSetFocus=message_box.onSetFocus=function () {
if (error_clip._currentframe != 1) {
error_clip.gotoAndPlay(6);
}
};
thanks

[F8] Damn Problem Again.
Hittesting, i know everyone gets peeved because there is so many threads on this already.
But, i've searched all these different search engines all pointing me to unneeded ammount of time wasted on tutorials.
And i've searched for it in this forum.

I'm in the midst of an rpg.
Its not set into tiles and not based on coordinates. My background im talking about.
And i want to create an mc, with my image inside. say like a statue.

I can do hittests , hit areas.
Its just putting the code inside my hit function.

If this involves shapeflag in anyway?
Or a certain kind of math skill.
Please let me know so i can reaearch it alot more.

Or any old codes you have going spare for my to mess about with.

Bear in mind , im looking for the full x,y coordinate of an object.
And i dont want to get stuck with large ammounts of code doing each side of the object.

Thank you in advance.
(this isnt for the contest by the way,i've been struggling on this alot longer )

Damn Another Bug...this One I Cant Figure Out...
This issue, like my print issue, is beyond me...it worked previously...now its broken...i swear, i dont test all my functions enough...because I edit one, then all hell breaks loose with the rest, cause when I test, I test the crap Im working on...not the stuff that previously worked...bad idea...

anyway...

When you click a booth, you see an info popup...when you click a rented booth a more detailed popup comes up...but this popup is the one thats broken...

boothInfo and xBoothInfo are mcs in the library that are linked to the AS...

code to call an available booth
code:
function xBoothPress(index:String, txt:String)
{
if(showLoad && !boxOpen)
{
boxOpen = true;
attachMovie("xBoothInfo", "xBoothInfo", 450000);
disableUI();
disable2();
showBoothTip = false;
toolT._visible = false;
xBoothInfo._x = (31 + (hitAreaMain._width / 2));
xBoothInfo._y = (60 + (hitAreaMain._height / 2));

var tween_handler:Object = new Tween(xBoothInfo, "_alpha", Strong.easeIn, 0, 100, 0.5, true);
tween_handler.onMotionFinished = function()
{
xBoothInfo.xBoothID.text = index;
xBoothInfo.xBoothText.text = txt;
}
}
}

this is the code within the xBoothInfo mc...
code:
exit.onRollOver = function()
{
_root.mouseIsOver = true;
this._alpha = 50;
_root.myInterval = setInterval(_root.showToolTip, 500, "Close", this);
}

exit.onRollOut = function()
{
this._alpha = 100;
_root.hideToolTip(this);
_root.mouseIsOver = false;
clearInterval(_root.myInterval);
}

exit.onReleaseOutside = function()
{
this._alpha = 100;
_root.hideToolTip(this);
_root.mouseIsOver = false;
clearInterval(_root.myInterval);
}

exit.onRelease = function()
{
removeMovieClip(_root.xBoothInfo);
clearInterval(_root.myInterval);
_root.enableUI();
_root.showBoothTip = true;
_root.boxOpen = false;
_root.hideToolTip(this);
}


all that works fine and dandy...the tooltip comes up and disappears at it should, and the close button works too...

here is the code to call the rented booth info
code:
function boothPress(index:Number)
{
if(showLoad && !boxOpen)
{
disableUI();
attachMovie("boothInfo", "boothInfo", 420000);
var tempScale:Number = boothInfo._xscale * 1.2;
boothInfo._xscale = boothInfo._yscale = tempScale;
showBoothTip = false;
toolT._visible = false;
boothInfo._visible = true;
boothInfo._x = (31 + (hitAreaMain._width / 2));
boothInfo._y = (60 + (hitAreaMain._height / 2));
boxOpen = true;

var tween_handler:Object = new Tween(boothInfo, "_alpha", Strong.easeIn, 0, 100, 0.5, true);
tween_handler.onMotionFinished = function()
{
boothInfo.tab1.boothNum.text = _global.boothID[index-1];
boothInfo.tab1.exName.text = _global.exName[index-1];
boothInfo.tab1.add1.text = _global.add1[index-1];
boothInfo.tab1.add2.text = _global.add2[index-1];
boothInfo.tab1.city.text = _global.city[index-1];
boothInfo.tab1.state.text = _global.state[index-1];
boothInfo.tab1.zip.text = _global.zip[index-1];
boothInfo.tab1.country.text = _global.country[index-1];
boothInfo.tab1.contact.text = _global.contact[index-1];
boothInfo.tab1.phone.text = _global.phone[index-1];
boothInfo.tab1.fax.text = _global.fax[index-1];
boothInfo.tab1.email.text = _global.email[index-1];
boothInfo.tab1.web.text = _global.web[index-1];

boothInfo.tab2.profile.text = "This is where the profile description for each company will reside....";
boothInfo.tab3.products.text = "This is where there will be a list of products/services offered by the company...maybe a picture or two";
}
}
}

here is the code within the mc to control the tabs and tooltips...
code:
tab2._visible = false;
tab3._visible = false;
tab1Text.tabOpen = true;

tab1Text.onRelease = function()
{
tab2._visible = false;
tab3._visible = false;
tab1._visible = true;
tab1Text.tabOpen = true;
tab2Text.tabOpen = false;
tab3Text.tabOpen = false;
this._alpha = 100;
_root.hideToolTip(this);
}

tab2Text.onRelease = function()
{
tab1._visible = false;
tab3._visible = false;
tab2._visible = true;
tab2Text.tabOpen = true;
tab1Text.tabOpen = false;
tab3Text.tabOpen = false;
this._alpha = 100;
_root.hideToolTip(this);
}

tab3Text.onRelease = function()
{
tab1._visible = false;
tab2._visible = false;
tab3._visible = true;
tab3Text.tabOpen = true;
tab1Text.tabOpen = false;
tab2Text.tabOpen = false;
this._alpha = 100;
_root.hideToolTip(this);
}

exit.onRollOver = function()
{
if(!this.tabOpen)
{
_root.mouseIsOver = true;
this._alpha = 50;
_root.myInterval = setInterval(_root.showToolTip, 500, "Close", this);
}
}
tab1Text.onRollOver = function()
{
if(!this.tabOpen)
{
_root.mouseIsOver = true;
this._alpha = 50;
_root.myInterval = setInterval(_root.showToolTip, 500, "View Company Contact Info", this);
}
}
tab2Text.onRollOver = function()
{
if(!this.tabOpen)
{
_root.mouseIsOver = true;
this._alpha = 50;
_root.myInterval = setInterval(_root.showToolTip, 500, "View Company Profile", this);
}
}
tab3Text.onRollOver = function()
{
if(!this.tabOpen)
{
_root.mouseIsOver = true;
this._alpha = 50;
_root.myInterval = setInterval(_root.showToolTip, 500, "View Products/Services Offered", this);
}
}

exit.onRollOut = tab1Text.onRollOut = tab2Text.onRollOut = tab3Text.onRollOut = function()
{
this._alpha = 100;
_root.hideToolTip(this);
_root.mouseIsOver = false;
clearInterval(_root.myInterval);
}

exit.onReleaseOutside = tab1Text.onReleaseOutside = tab2Text.onReleaseOutside = tab3Text.onReleaseOutside = function()
{
this._alpha = 100;
_root.hideToolTip(this);
clearInterval(_root.myInterval);
_root.mouseIsOver = false;
}

tab1Text.onPress = tab2Text.onPress = tab3Text.onPress = function()
{
_root.hideToolTip(this);
}

exit.onRelease = function()
{
_root.xBoothInfo._visible = false;
clearInterval(_root.myInterval);
_root.enableUI();
_root.showBoothTip = true;
_root.boxOpen = false;
_root.hideToolTip(this);
}


the problem is that in the rented booth info...each tab and the close button are supposed to generate a tool tip...which appears after about a second or two of mouse being over the object...but when the tooltip is supposed to show up (near the mouse) the booth info popup disappears and the tool tip appears below the "Expocad" logo in the top left corner...this in effects makes all the rest of the functions not work...so it disables the application...any obvious mistakes in my code?

test it here...

http://www.expocadvr.com/expocadflas...o/default.html

[F8] Those Damn Loops Again LOL...
Hi guys - just wondering if anything is wrong with my else statement - i double checked it and cannot see anything wrong with it!

my online form connects to a php file that uploads data to a mysql database - however the data is not uploading - just wanted to run the actionscript by you guys - please tell me if there is anything wrong with my code - if not i guess the issue must be with my php file. thanks in advance!


Code:
submit.onRelease=function(){
var action:String = "";
if(!status1.length){ //var that is tied to a specific item chosen
// dynamic txt field
status2="Please Choose an Item to redeem.";
}
else{
status2 = "";

// contact info declaration for php
item = status1;
amount = money;
pnts = points;

//load variables to and call server-side script
loadVariablesNum("http://www.mywebsite.com/code/the_php_file.php", "0", "Post");
status = "Sending request to database...Please stand by...";
}
}
stop();
I also tried to change status2 to 'status2.text' and gave it an instance name instead of a var name - however it still did not work.

Damn Paths Help Please...
I have a button "golf" in movieclip "menu_01" that should activate a labeled motion tween "rule_down" in the main timeline. Nothing is happening. Here's the code I'm using:

on (press) {
_root.menu_01.gotoAndPlay("rule_down");
}

Thanks,

Yoshy357

Damn It, I'm Too Slow
Great to see an as3 focused forum! Thanks Adobe!

Damn Slide Bar....
hi everyone!

I'm trying to follow this tutorial here: http://www.kirupa.com/developer/flash5/menudragger2.htm

The problem is: In that slider only are 4 items. The thing is that i need more. If i just add more, the slider only goes 'till half of the 5th item...

What can i make to put this thing working??? Please, somebody help me!!!!!....

Sq1: Load Damn It
right back to square one...

I have this on a dynamic action for buttons,

you select a swf address from xml and load it into container. (for dropdown)


Code:

container.loadMovie(xmlNode.childNodes[whichSubMenu].childNodes[whichAnimation].attributes.variables);
however whenever I try to say... this.createEmptyMovieClip("test"+ anyDAMNvariable, get.NextHighestDepth);

the load into that movieclip it just won't have it

i've tried a number of ways but can't get it to work pooh

thanks *I should know this...newbie*

Damn Button
I am currently developing a Custom garment designer for the company I work for. I haven't used flash for a wee while but it's all coming back. I have designed a simple interface where the user selects a garment design, then colours it, adds logos and lettering and then sends it too us for a quote etc.

But I am stuck after my design is coloured I want to go on to the next stage of dropping in logos but my next button won't work. It's just a gotoAndPlay command to a frame number.
I think the problem seems to be something to do with the pointer being used as a colouring instrument and then getting it to click a button. Is there some way to make it "drop" all the fill colour info on rollOver or when it enters a different "field" where the buttons are?

Damn, This Looks Hard To Do
Does anyone here know how to do something like this:

http://www.project86.com/

At the top, the flash image moving from side to side. Except I need to have it so that just an image moves back and forth as the user hovers over a menu that is not a part of the image, i.e. underneath the image.

I am so new to flash it hurts, if anyone can tell me how or help I'd greatly appreciate it and would return the favour money-wise. http://www.project86.com/

Not The Damn Music Again
Hey out there;
So, my OLD webmaster couldn't figure out how to make my website theme song play without a popup player(and seemed too bothered to come here and ask for help, even though you kindly offered) so now it falls to me. Awhile back on this forum I think it was suggested to put the sound in a flash file and use a flash player. Since my site automatically loads the flash plugin, this seems doable, but i still have questions.

How the hell I do it?

Okay, I make the flash file, but what action script do i need to use to trigger the loading of the music file on the opening page? - is this something i really need a new webmaster to handle?

And just as important, how do I make it shut up when a visitor is watching one of my movies (related to stopallsound command?), and how do i make it start back up (or pick back up) when the watcher is done with my movie? (the demo site will have 5 active movies to choose from).

And i don't want more buttons; to start and/or restart the main theme song. I want it to stop on its own when a movie is selected and to pick up on its own when the visitor leaves the movie.

I may be asking for a lot of info here, so if there is a tutorial you know about that might help out here, please send it.

Your hummble servant
Hoss (Ignorant Boy)

DAMN THESE SMART CLIPS
OK , i learned about sclips like just yesterday morning ( i dont like to sleep at night) and for some reason i cant get them to work in my movies, i made one perfectly and used it... im tryin to use a clip to make a menu so i can just beteween frames, ya know..., but i cant get it to work, i can only get them to work when i set them to get a url, but not to jump between frames, im trying to use the clip on the main scene, someone , anyone, skool me on the subject..

enkiptid - the only flasher that raps

Damn Those Blurry Fonts
I know this is a common problem but I was wondering why this was happening when I load an external movieclip into another flash movie?

Having followed all the golden rules, kept pixel sizes at 8, and XY co-ordinates on exact numbers, as well as the the actual movieclip XY etc etc...I am confused at to why the font is horribly blurred?

It looks crispy in the external file before loading and
It only occurs after I have loaded it into another movie.

To see go to http://www.e-risk.com.au and click on the training button and have a look at the heading.

Why? Why? Why? Can this be fixed or is it best to cut my losses, convert the text to a gif and call it a day?

I've also tried setting the _x and _y position of the movieclip on load, but it still happens.

Is this a Flash 4/5 flaw, and will it be addressed in Flash 6?

Damn Draggable Windows@#**@
Hi everybody,
I am having a serious problem with one of my Flash movies right now. My client wants to have a custom cursor that can be made by adding some actions to a movie clip. I made that and everything was going very fine. Suddenly I was told to make a draggable window in which two buttons will be visible('Exit' and 'Cancel'). I made that too and after adding the required actions, It was cool. But alas! When I clicked on a specific button to see that very draggable window and started dragging it, the custom cursor no longer followed my mouse. From then on, the custom cursor never followed my mouse and I had to completely delete that ****.But I'm really keen on solving this problem because my client is not going to buy my project without that damn custom cursor. Anybody expert in Actionscript please help me in an urgent basis. PLeaseeeeeeeee...... Save me from losing my job.
Bye.
[Edited by Future_Flash on 10-20-2001 at 07:18 PM]

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