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




Couple Of Masking Problems



Hi All,

I am using "masking" to create a spotlight effect in Flash. However, my first problem is that i would like the movie to have a black forground and a white background so that it appears as if its totally dark and the masking effect is like the light shining from a light. How do I achieve this black forground/ white backgroun? Adding a black layer or bg below the mask is fine but this doesn't give me the desired white background.

My second question is that I would like to add a button below my text to "turn the light switch" on. This will jump to another scene which will have no mask and the text will simply be displayed. Click the switch again turns the light off and jumps back to the orignal scene/frame with the mask. I have added this button to a layer above the mask, however although it displays once the movie has exported the actionscript to jump to another scene does not. Can any help please. I have attached my .fla file.

Kind regards, J



DevShed > Flash Help
Posted on: May 23rd, 2005, 08:14 AM


View Complete Forum Thread with Replies

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

Masking Issue - Image 'pops' Out Of Masking
ok i been attempting to fix this tiny, but obvious glitch for hours...

3 layers on timeline

bottom layer has 6 different images at regular intervals (every 26 frames).

middle layer is masking the bottom layer. it contains a movie clip of animation of a square shrinking to basically nothing then expanding again (with a 3 frame pause before it expanding again). Basically like a shutter closing then opening.

the top layer is empty except for the action script calls in key frames at intervals to start the animation of the mask. just uses gotoAndPlay('label') to the movie clip in middle/mask layer.

PROBLEM:
The change of pictures if offset in the timeline so the change occurs during the closing of the shutter (mask hiding all of the image).
so the mask movie clip is in layer 2 frame 1.
the first image is in layer 3 frame 7.

for some reason the very first image just pops over the closed shutter i.e. it is visible even though it should hidden. The subsequent 5 image changes behave as they are supposed to.

whiskey tango foxtrot....

edit note:
this movie clips is then placed on the main time line and itself one of a few a masked layers.

Couple Of Q's
Hi - I have a few questions that are probably easily answered:

It seems as though when I draw a detailed image using the pencil tool (& tablet), using a lot of curved lines - I'm finding that, in order to test the movie, it takes forever to load. In some cases, I bail and force quit. Is it true then, that even though we're talking vector-based art, the file size will increase dramatically by creating detailed illustrations?

Would it help to convert to a movie clip or graphic?

Also, with regards to Actionscripting & shortcuts: it's awesome that one can often find the most useful tutorials & actionscripts that can be simply applied to a movie clip or button - but it doesn't seem like the actionscript window allows a cut & paste option. Do you really need to rewrite each line into the window? Or is there a way to copy & paste right into that window?

Thanks for your help! Much appreciated!

Couple Someone Please....?
Could someone please write a quick and very straighforward, no fancy stuff required, program that uses a loop to trace a conversion table from Fahrenheit to Celsius. You can use this conversion code:

Deg.Celsius=(Deg.Fahrenheit-32)*5/9

Basically just a quick program that you could input a number in celsius or fahrenheit, and then it outputs it converted to the the corresponding celsius or fahrenheit number.

Thanks in advance, and your help is highly appreciated, I realize this is alot to ask. Although, flashkit boards seem very reliable for any type of actionscipt help/template. You guys rock

Merci,

Kelly M.

p.s. I am using Flash 7 Pro. Just attach the fla to your message Thanks!

Couple Q's...
1.) Why in the world do those "green box borders" get left behind when I convert something into a symbol?

2.) Is there another version of Flash out there now because I feel like the version I'm using (6 I believe) is very user UNFRIENDLY...? I love what Flash can do though, so I'm still going to try and get better at using this...

Just A Couple Of Question
Okay, I have a few questions. I put up a flash intro on a web page; however, it is really screwed up. I put the basic preloader on it, but it's not working. You have to uncheck "Play" before you see the preloader, then it doesn't even load. Any ideas how to remedy this? You can view it at http://www.altaregomusic.com. Also, how do I change the size of the flash file from pixels to a percentage, so that it will work on different resolutions? Thanks for any help you people have to offer.

A Couple Of Questions ...
Okay ... I am currently working on an iResume of some of my work. I have a couple of quick questions to see if anyone may know an answer:
1) Is there a relative path that would be equivalent to the %SYSTEMROOT% (C:windows on 9x & C:winnt on NT or even whatever the user chose to name it). I want to store some variables (nothin' big a couple of true/false switches so you see something different all the time) on the local machine because I'm shipping a CD, I can't store them on the CD (hence read-only memory).
2) I also want to add a little remote control style panel that will always float at the top right (or top left whichever is easier) of the screen (I'm using the FullScreen FSCommand) no matter what the resolution is. Anybody know how to do this.

Also, I'm almost positive there is no way to do this, but I'll ask. Is there any way to get rid of the right click menu. I want to use keyboard navigation (mouse.hide) and if they accidently right click even though there's no mouse they'll get a little popup menu. Not to worry I'm giving Macromedia credit and everything, I just want to remove that if I can.
Thanks for any answer's I can get.

Just A Couple Of Questions......
ok...

1) so i've been checking out some flash sites, and noticed that when you go to enter some, a pop up window opens, that fills the whole screen, and acts as a browser for the site you are entering...
I was wondering how you create this?
(if you know what i'm on about!)
I mean, how do you create the pop-up browser, that will fill the whole screen, that will display the contents of your site?

2) is there an action script that detects the size of the screen of the viewer, so that whatever resolution they have it set at, my pop-up browser window will fill their screen?

3) i'm thinking of trying to create a game as the intro for my site, or as the preloader for the intro...
any links to tutorials, as a starting point for getting into game design using flash???
i know this is the wrong forum for that but...

cheers guys and gals....

Couple Questions
hiya, i figured out my other problems but i still cant get a preloader to work

Ive looked all over for a tutorial on makign a preloader in FlashMX all ive found is one on this site but its for Flash4 and FlashMX doesnt accept the code in that one. could someone tell me were i could find a tutorial on it or maybe just tell me

Thanks
[Edited by Jamoan on 06-08-2002 at 08:36 PM]

Couple Of Doubts
Hi flashers, I´ve been making a couple of flash games, and I´d like them to work fine, so there it goes...
The first one is a puzzle, so simple, you drag a movieclip and when rising other, droptarget, but how can I make a mc that it´s already place not to appear above the one you´re dragging?
Hope u can help me...if can I´d send .fla, thank you all.

Couple Of Questions...
Okay, I have a couple of questions because I'm making a site for company, but some things don't work
- I want to create the site for people with a 800x600 or a 1024x768 resolution. I created the site with a stage of 800x600. When I publish the site, in 1024x768 the icons will get out of shape and when I view it in 800x600 some text aren't readable. I'm publishing the site with a component which removes the border around the Flash movie.
- When I work in Photoshop I can add a vector-mask to a layer, then take the gradient tool and make a sort of 'fade-in'effect (the picture becomes more visible through the stage). The problem is; when I use a .esp in Photoshop and then add this effect; I can't copy->paste in into Flash. Is there a way to export this vector shape (with the effect) to Flash? Or a way to do this effect in Flash?
- Last question; I also want to have a news-section on the website. So I decided to load a textfile in, because this is easy to eadit by the company. Everything works fine when I look at it in the .swf, but when the .swf gets loaded into the main-movie; I only give me this: "_level0.LoadMC.text.text" What does this mean, and how can I solve it?

I hope I can get a anser to all these question... I posted here because my experience with Flashkit is that you get a really quick (and usefull) anser
Greets,
Maarten de Groot

A Couple Of Quirks I'm Having ...
1.) If I use the Scrollpane UI Component, for some reason, I could be crazy, but it feels like my .swf files become "chunky" so to say. It seems to slow down and keep my preloaders from showing right away ...

2.) ... which brings me to my next question. I have a .swf and it's 250kb. The preloader won't show up right away and sometimes never. It's not just with a specific movie though; I find it happening all the time. There's no funny stuff going on with my movies, it's straight up flash animation, they are straight up vector so there's no gigantic images. Does anyone know or have a clue to what the deal might be with this?

Thanks for all of your help.

Selfminded

A Couple Of Questions
Music ???
i need to know a way how to play music in flash mx
the thing is if i load my mp3 into the library and it is about 3.5mb
i wont be able to upload the swf later will i ? and i want to have about 5 songs in my movie ?
load swf ???
can anyone explain this in a nutshell please ?

A Couple Of Questions
ok Q1:
a sound/loop problem, ok, i have my sound loop, i want it to play smoothly but instead i get thise 1 or 2 second gap as it goes from end of loop to begginning then it plays over again..
how do i stop this?

Q2:
a button effect question, iv done my button roll over effect, its a nice fad in block kinda thing.. how do i make a roll off effect so the block fades off again after i move my mouse off it?

any help would be great,
cheers

Have A Couple Of Questions.
Sorry I am sorta a newbie at this but I have a couple of questions about the script.

1. Can I return a string value to _currentframe, like instead fo saying if _currentframe is equal to frame 9, say if _currentframe is equal to "framelabel"

2. Is there any way I can set a timer on the script? Is there such a thing as delay in actionscript, so that I can do one funtion, have a delay for it to be finished and then do the next function. I'm sorta looking for something simple, in theory i could do a loop for it to create soem sort of count delay but I am not really sure as to how to go about doing it.

ANy help would be much appreciated

thanks in advance.


BTW this is for flash 5
thx

Looking For A Couple Of Tutorials?
I need a couple of tutorials. First one,
how to send only certian variables to my cgi script. Other words lets say I have 10 input text boxes and for this example we will name them I1 - I10. On one button I would like to send lets say I1-I5 and on another button I would like to send I6-I10. Can someone point me in the right direction for this. Number 2 questions issssss. Is there a way and a turorial on how to set up dynamicaly on a button a url. Other words I have a bunch of buttons that I have in a interface and I would like to have a input txt box by each one and when you enter the url and hit the save button it will save the url in a perl script so that the next time you hit that button it goes to the url you typed in before. Hope that makes some sence. Thanks for any help anyone can give me on this.

Couple Of Questions
Im creating a login movie clip for a site. And a couple things i need some help on. 1. I have a user name and password input text. i have instance names for them both, and when u click submit it checks
if(username=="dweiss" && pw =="trythis")
{
tf = 1;
}
else
{
tf = 2;
}

(tf is true false just for me to track to see what they entered)

so how do i make what they entered not case sensitive. so say they could enter DWeiss or dweiss and it wouldnt matter. because im getting 2 which is false even when i enter the correct information ;[
doh. If you can help thanks!

A Couple Of Questions....
hey...
i have 2 questions that i need help with...


1)...i wondered if theres a way to create a counter for my websites html index page, within a flash movie...
ie: can i use flash to create a hit counter that i'll then place on a html page...?

2)....i want to create s form, or a survey within flash,for my site visitors to post feedback, tkae a survey, etc...

how do i do this...i dont know much about creating forms...or about the 'post' actions, etc...

oh, and can i somehow create pie charts and bar graphs within flash that will show instantly the results of the survey so far...
(you know, like the mini polls have in the bravenet webservices...)


cheers....

Couple Of Questions
Hello,
I have been away from Flash for a couple of years and need some
help. I am using Flash4. I am combining a interactive story and
flash. The user will be on a quest. He/She gets a box, but can only
open it at a certain time (certain scene) If he tries to open it
before this time, he is taken to a scene that says "It can be
dangerous to open this box before the right time." Is there a way
when the player tries to open the box the third time that the game
is ended? I am not that familiar with how you would do this with
changing scenes/frames and all.
Second question: In this story, the player will opening things,
pulling things, etc. Is it possible that the cursor can be a
hand?
Thanks for any help.
If there are any questions to clarify my question, it may be awhile
before I get back. I seem to be at work more than at home.
Bill

Couple Effects
Hello.

I was browsing through some of the web forums and found this link :
http://home.halden.net/sigma/ .

Now there are a few things this site does that I'd like to know how to do.
So here we go :
1.) If you click on the "profile" button, on the left a lne drawing of a jet appears then fills then becomes an image. How was the line drawing achieved? How was it filled?

2.) When you click on various links, the contents that load sort of sweep in, for instance the links button, it loads a page and a series of buttons sweep in, how was this done?

3.) lastly, When I load my site that I'm working on, It will contain blocks that will contain text or menu buttons and so on. I want each blocks shape to be "drawn" then filled, then fade to its final look. (If that makes sense), how is this done.

Sorry bout all the questions guys, even if you could refer me to a tutorial or something I'll be well happy.

Cheers!

A Couple Of Questions...
question 1: how do i go about making a "loader"?



question 2: i would like to learn to program action script, can anyone point me in the right direction?

Couple Of Questions....
I'm reading a book on AS and have come across a couple of questions. One is, that when do you use "var" and when don't you? I've seen variables introduced like....

onClipEvent(load) {
var myTotal = _root.getBytesTotal();
}

But I've also seen...

onClipEvent(load) {
currentTime = new Date();
myHour = currentTime.getHours();
myMin = currentTime.getMinutes();
mySec = currentTime.getSeconds();
}

In both cases, the variables myTotal, currentTime, myHour, myMin, and mySec are being introduced for the first time. So why don't they all start off using "var"?

The next question is prolly a VERY minor one. Usually the first line of the script starts off with something using parentheses and then a curly bracket. Like this....

onClipEvent(enterFrame) {

But I've also seen the same thing written as....

onClipEvent(enterFrame){

The first has a space between the end parentheses and beginning curly bracket, the second doesn't. Does it matter? When do you and when don't you? Thanks in advance for any help!

How? Couple Of Things.
Hi,

If you click here you will find a very nicely put together site.

First question how do you do the percentage that follows the cursor?

Second question, when the site has loaded click on company link and then about us , how do you do the timeline thing scrolling and text appearing below?

I want to use this technique for something that I am working on and I have all of my graphics sorted, but need some help on the scripting.

Any ideas, tut's or source?

Diggz

How? Couple Of Things...
Hi,

If you click here you will find a very nicely put together site.

First question how do you do the percentage that follows the cursor?

Second question, when the site has loaded click on company link and then about us , how do you do the timeline thing scrolling and text appearing below?

I want to use this technique for something that I am working on and I have all of my graphics sorted, but need some help on the scripting.

Any ideas, tut's or source?

Diggz

HOW? Couple Of Things...
Hi,

If you click here you will find a very nicely put together site.

First question how do you do the percentage that follows the cursor?

Second question, when the site has loaded click on company link and then about us , how do you do the timeline thing scrolling and text appearing below?

I want to use this technique for something that I am working on and I have all of my graphics sorted, but need some help on the scripting.

Any ideas, tut's or source?

Diggz

A Couple Of Questions
I have just started to use FlashMX 2004, i am trying to do two things, however i just can't seem to get it too work, the first being that i would like a symbol to follow my mouse cursor, secondly, i would like to know how to get symbols to randomly move acroos the screen and bump into each other? any ideas, links to help sites etc.

A Couple Problems I Have
ok guys.. this is the deal.. so i made my first flash movie
first off let me tell you i did the whole movie in swish max(flash for newbies) and i have the whole movie going to music and everything is set up perfectly ok so now.. i have some problems.. the movie runs different on other peoples computers.. so i tried to set a constant frame rate with swish and that just made my movie all jerky and it didint even fix the problem so what i did is i imported it into the flash mx and i set up the music and everything (set it to stream and set the fps so its just right)


now there are a couple of problems though when i imported it

1.all my animated gifs that i had in the thing.. well... the dont play anymore its just the first frame of the animation
2. it dosent play to the end of the movie.. it just kinda cuts off with about 2-3 seconds left
3. everything kinda got shifted over to the right a little is there like some sorta move all in everyfram command lol (dont think so but worth a shot)

yeah so can you guys help me with that?!? either just post here or if you want i can send you the file and you can fix it w/e works AIM Sms4001 email Sms4001@aol.com thanks in advance!

A Couple Of Quickies
Hi,

I was wondering if there's anyway to highlight an item in a combo box, if so how would I do this (preferably using Actionscript).

I have some text (set as dynamic) that I change using Actionscript .text property. But this means that the text can be selected with the mouse, I would rather have it like static text that cannot be selected, is this possible? I have set the text type to static, but this of course means I can't change the text...

Thanks
Alex

Help With A Couple Things...
Basically, I want to do something similar to this.
I've got the drag thing down ok, I think the next step would be getting it to snap to the mouse... I don't really know how to describe it... when you click on it, you drag it by the same location each time, instead of wherever you originally clicked on the movie clip. I couldn't find any tutorials for that... O.o

Couple Of Questions
Here's what I'm trying to do:

I want to use the file below and place it inside a movie clip I created. I went through the code but can't seem to make it work properly. It works fine on the main stage but not inside the movie clip. Why is that?

http://www.flashkit.com/movies/Anima...-402/index.php

Also, when I try to implement a text scroller found from this site and use a pixel font set on dynamic text, why does the text disappear when I publish the swf file? Is there a way to fix this?

Thanks.

Couple Of Questions
1. Is it possible to make a transparent gradient? for example if I have a red/blue gradient I can choose to make the red transparent.

2. I've had a look around but found nothing but is it possible to do scalable flash? for example depending on the browser size of the user the flash will scale to fit.

thks
z3ph.

Couple Of Print ?s
Happy Holidays to all - gotta love the work wind down til January 1!

Can you have a print button, created as a movieclip, not show up on the page that is printed?

With the help of this forum, thank goodness, I have created a small project that allows a user to "rollover" to see if they want to select the item.

Then, once they select the item it turns a different color ("active").

All this is done with MovieClips.

Question: Can you print only the "active" selection, since they are done only in the MovieClip?

I have attached a sample.

be careful driving around today!

A Couple Of Questions
1) How do I make Dynamic Text...More Static-looking...and less ugly.

2) How do I make it so a movie clip can only move over only another movie clip.
Example: I am making a movie with a stick figure...I want him to ONLY be able to move over the grass, not trees or buildings or anything...Is there anyway to do this without going through all the other movie clips and manually making them Un-walk-through-able.

Answer one or both...Or whatever. I just need help.

Please Help With A Couple Things
HELLO,

Need Help on a couple of simple issues, and I know one of you geniuses can be my Hero...

Issue 1: Preloaders
I have made my preloader based on a couple web tutorials, but none of them tell me exactly how to then put it in my movie...

Issue 2ownloading
How do I make a button that allows users to download a file? If there is any HTML involved, please keep in mind that I am an idiot, and, if possible, please include it.

Issue 3:Preloaders (again)
Once I finally get my preloader for the whole movie to work, how can I put it on other stuff? an MP3 player for example?

Issue 4: .swf's vs. mc's vs.scenes
If I wanted to put a slideshow on one page of my movie and a mp3 player on another page, would it be better to create a new file, export it as a .swf, and then load it into my movie, or create it as a mc in my existing movie? Or to make a new scene? Or does it matter?

Issue 5:Uploading
When I upload, how much of the original files do I have to upload with it. Do I need to include all the bitmaps and stuff?

Thanks for any help on any one of 'em, or for just taking the time to read my ramblins....

A Couple Of Big Questions.
I'm building my first game right now, sorta based off of the Dave Doull arcade game tutorial but trying to use that as a base and go a little crazy. At the end of the game I want to have a continue selection screen. I have an arrow that I want to move between two bitmaps "Yes" and "No". I tried this AS but I couldn't get it to work. Any ideas?

This code is a restartArrow MC in a layer name "restart". After hit collision is detected therefore killing blowing up the ship the actionscript in the HitTest if loop is this:

if (this.hitTest( _root.spaceship ) ){
_root.gotoAndStop ( "restart" );

onClipEvent(load){
arrowPos=1;
upperLimit=2;
lowerLimit=1;
jumpingSize=30;
}

onClipEvent(enterFrame){
if (Key.isDown(Key.DOWN) and (arrowPos<upperLimit)){
this._y-=jumpingSize;
arrowPos++;
}
if (Key.isDown(Key.UP) and (arrowPos<upperLimit)){
this._y-=jumpingSize;
arrowPos++;
}
if (Key.isDown(Key.DOWN) and (arrowPos>lowerLimit)){
this._y+=jumpingSize;
arrowPos--;
}
if (Key.isDown(Key.UP) and (arrowPos>lowerLimit)){
this._y+=jumpingSize;
arrowPos--;
}
if (Key.isDown(Key.ENTER) and (arrowPos<upperLimit)){
gotoAndPlay(1);
}
if (Key.isDown(Key.ENTER) and (arrowPos>lowerLimit)){
stop();
}
}


Let me know why the arrow will not move when i hit up or down. Nor can I hit enter and restart. Should I make the second Key.ENTER if statement point to another frame instead of saying stop(); ?

Last question, the game works on scrolling horizontally, however right now the ground image i have right now just loops endlessy. I want the background to change after a certain amount of time (or distance traveled) how can I approach this?

Thanks for any help guys.

EDIT: I forgot something else I've been struggling to make work. I wanted the ship to look like it was rotating up to climb and rotate down to decend. I got it to do it but I want the animation to look smoother rather than snap back. I have a bunch of sprties for the motion but it seems like only one frame is playing here is the code:

if (Key.isDown(Key.DOWN)) {
gotoAndPlay(3);
this._y+=moveSpeed;

} else if (Key.isDown(Key.UP)) {
gotoAndPlay(5);
this._y-=moveSpeed;

}

}


onClipEvent (keyUp) {
if (Key.getCode() == Key.RIGHT) {
scrollStart=false;
}
if (Key.getCode() == Key.UP) {
gotoAndPlay(6);}
if (Key.getCode() == Key.DOWN) {
gotoAndPlay(8);}

}

So for these things to work what I did is have 3 sprites for the directional movement (UP & DOWN) to make it a gradual turn rather than snap and I thought that by putting code in I.E. frame 5 of the spaceship MC to tell it to stop after playing 3 and 4. Is this right? or is it only playing the final frame.

Thanks again

Couple Questions
Im looking to create a couple of things.

I want to create a easter egg type thing. Kind of like whats on a dvd. If you press a certain type of button combination it would make a button appear.

for example if you pressed the up arrow 2 times and the right arrow 1 time a button named secret would appear.

Does anyone know of a tutorial on how to do this or if this can be done.



I also want to create a flash version check movie. I want it to check the version of the flash player thats installed on the users machine and display it in a movie.



I appreciate any and all help that you can give me.


TIA

Sn4p
http://sn4p2k.net

A Couple Of Questions
1) I was wondering what was the easiest way to make a loader aka easy script example might help O.o

2) Ive been trying to get a movie clip to play when a button is pressed.. i asked earlier and solved the error i was getting but when i press the button nothing happens. The script is:

MB_But.onPress = function () {
MB_TinClip.gotoAndPlay(1);
}

A Couple Of Quickies
I need to know a couple of bits of HTML code.

1. What is the code to make the background image on a page hold. i.e, does not scroll with the page content.

2. What is the code needed to make a "Bookmark" button/link.


Probably really obvious, but I'm having one of those days.

Leroy

Couple Of Questions
Doubt #1

I got a flash file attatched. What i would want is that when I click on button 2 I want to play the window 1 exit animation and only then play the window 2 enter animation. similarly for the button 2 animation too. The thing is that I have succeeded in doing this after a bit of tweaking with the action script.

Actually I am a bit confused as to how action script gets executed! In my file you will see that I have included the following AS for button 2.

on (release)
{
_root.gotoAndPlay("x"+_root.link);
_root.link = 2;
}

Assuming initial state to be in 1, would the above code first goto and play the label x1(the window 1 exit animation) before it changes _root.link to 2 ?

Or does it first change _root.link to 2 and then go to label x1. If it isin't the latter I am still very much confused!!! (note that i have included gotoAndPlay("s"+_root.link); at the last frame of the exit animation)

Doubt #2

Well, I am doing a portfolio website and I got a lot of thumbnails. I am planning to have mouse over animation for all of them. Is there any way of doing them all togethor ? I am really tired of creating individual tweens for the mouse over state of each thumbnail. Any batch processing or nifty actionscript tricks..?

Thanx 4 reading..

A Couple Of Questions
i have a few questions:

1. how would you make it so when the user moves the mouse something follows, or something moves (like a bee floating around or an arm moving around that's still on the body)

2. how would you make it so if you click, the gun will shoot and whatever you're shooting at would have a hole and some blood (if it's a human)?

sorry they're so hard q's!

im using flash 8

A Couple Of Actionscript Q's - Please Help
Hi,

i don't know much about actionscript and was wondering if anyone can help with one of the following problems:

I was given this script to get a background to show day and night:
Code:
var my_date:Date = new Date ();
if (my_date.getHours () <20 )
{
trace("day");
}

else
{
trace ("night");
}
Now i want this to load 2 different background movieclips and also want to specify that day is between 6am and 8pm and any other time is night.

How would i go about this?


Also,

I want to create a cartoony cloud effect (i have made the image already) and i want it to be randomly sized at random levels on a vertical axis and moving horizontally at random speeds - kind of like the bubble /snowflake effects you see but not moving in vertical curves, only i want them to be moving straight horziontally

If anyone could help, i would greatly apprieciate it, Thank you

A Couple Of Questions
Hi, I've got a few questions:

1. A have a flash movie that I move away from and come back to at a later time. When I come back the 2nd time, I would like the movie to start on a frame other than 0. Is there a way to do this or do I simply need to have two separate flash movies?

2. I have a text field that is loading text dynamically. I would like the text to fade in, rather than just come on. Alpha does not seem to work, and I've also tried masking with no luck. Is there any way to fade the textfield in?


Thanks!

Couple XML Questions?
Hi,

I have some flash files with text, I was wondering if there was a way I can edit the text via an xml file, so then when I want to update I don't have to go in to the flash file and insert text.

I also have a image gallery that has images that fade in and then fade out for the next one to fade in. I want to have it so I can load the images in via an XML file, is this possible?

If any one can help would be awesome.

Thanks

[CS3] A Couple Of Questions...
Actually just a quick question. Is anyone familiar with proboards??
You don't have to. It's a free, customizable forum. That eh, wasn't the question lol.

I would like to view my forum, through my flash application. Is that possible? To view a webpage through a flash app?

That's all, thank you.

A Couple Of Questions
I have a couple of questions regarding the project I'm doing.
Is there way to program random movement within specific parameters ie. have random movement but only on the x axis and how would you check which way a movie clip is facing?

Couple Of Questions
Hi there,
A couple of questions for a beginner here.

1. Can anyone tell me if there is a simple code to play one of the sounds in the library. So if the sound is called "sound.wav", what code would I use to play this sound? (I want to use it in an if statement so I can't just drag it on to the score.)

2. Is there any code to pause/wait for 2 seconds. At the moment I have some code to make an object move, but I want to wait 2 seconds before this happens.

Thanks!

A Couple Of Questions
Hey guys, i am making a game in flash and i have 7 movclips lables by letters and heres what i want to happen.
first before i go ne further here is the arrray i created witch contains the names of the mc's i want to use.

var athosArray:Array = ["jj_mc", "i_mc", "s_mc", "ff_mc", "aa_mc", "u_mc"];

so each of thease movie clips have a short animation called engage and what i want is that when the user click on all of thease mc's in that order they are in in the array and then they click on a mc called engage i want it to do an event such as make another movie clip play an animation. but heres the thing, if they click on ne of them mcs in some other order i want the other movie clip to do nothing.
============================
also. i have a movie clip called border_mc and at the start with an onEnterFrame event i have made it so the alpha level of that clip is 0 and what i cant figure out is how to control its alpha via pressins shift+d on thekeyboard, so at the start if they press shift+d while its alpha level is 0 i want that mc's alpha to goto 100 and vise versa.

hope u can help and thanks in advanced

Couple Of Questions
Hi guys,

I am learning actionscript...I am in basic stage.
Plz help me in couple of queries.

Firstly,
I have a dynamic text box. How can I output the mouse position[xcordinate,y cordinate] in that text box based on where my cursor on stage?

Secondly,

Can i link the mouse cursor to couple of movie clips(say we create couple of rectangles & convert them to mc) on top end & left end of my stage so that when my mouse cursor moves in a stage, these 2 movies clips will move horizentaly or verticaly.
Basicaly my left end movie clip[x=0 always] will read the y values of the mouse cursor & top end movioe clip[y=0] will read x values of the cursor and move according to the values.


Plz provide the action script of above. Thanks.

A Couple Of AS3 Questions
Here's the scenario:

I have a map, with 50 movieclips each representing a store in a mall.

Each one of these movieclips has a value appended to them of .storeID

so I just set

clipname.storeID = 1; and then some mojo fires off based on that later on.

My problem is that the mojo can't fire off unless I attach event handlers to each one of these clips. There are 50 of them, and somehow I doubt Adobe's intention was to simply have us type out

clipname.addEventListener

50 times.

I had two ideas, neither of which I can get to work in AS3.

Idea #1)

Create a for each on the main timeline, the store clips are actually a special class that extends MovieClip so the actual line I imagined would look something like

Code:
for each (var clip:StoreClip in Stage)
{
clip.addEventListener(arg1, arg2);
}
However the Stage, parent, and this properties seem to be sliiiightly different than they were in Flash 8. If I try any of those, it just doesn't execute the loop at all.

I know this works, I just don't know, nor can I find, the proper syntax.


Idea #2)

Create an array on the main timeline that would store the object reference to each one of the clips, and the clip itself would add itself to the array when it is created.

So in the StoreClip constructor, there is a line

parent.storeClipArray.push(this);

However, this raises a compiler error saying that storeClipArray does not exist, despite the fact that it clearly does. on line 2 of Frame 1 of the FLA. I've been reading that classes communicating with function and variables on the main timeline, hell, even in other instantiated classes is a big no-no, which raises the question, wtf?


Any help/links would be appreciated.

Thanks.

Couple Issues.. AS 3.0
First off.. I am getting error w/ this fallowing code:

ActionScript Code:
var imageFiles:Array = new Array();
var myXML:XML = new XML();
myXML.ignoreWhite=true;
var myXMLReq:URLRequest = new URLRequest("http://71.180.55.167:8080/images/headerData.xml");
myXML.onLoad = function(success:Boolean) {
    if (success)
    {
        var myImage = myXML.firstChild.childNodes;
        var i:Number = null;
        for (i=0; i<myImage.length; i++)
        {
            imageFiles.push(myImage[i].firstChild.nodeValue);
        }
    }
};
myXML.load(myXMLReq);

the error says "Value is not a function.." which I assume is pointing to the onLoad delegate.. Basically I am just trying to import a loaded XML(you can see the link) file to an array.. how im trying to do that should be appearnt~

Secondly, I am having trouble w/ a Z-Buffer.. I have an imported image(converted to a movieclip symbol) which I want to show above the newly loaded displayobject child~ fallowing this method:

ActionScript Code:
var myLoader:Loader = new Loader();
var myRequest:URLRequest = new URLRequest("http://71.180.55.167:8080/images/assassinCreed.jpg");

myLoader.load(myRequest);

myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,showLoadResult);

function showLoadResult(evt:Event):void {
    myLoader.alpha = 0;
    addChild(myLoader);
}

addChild(myLoader); is displaying the newly created object over the previously imported image(movieclip) I have.. which I don't want to happen.. I found swapDepths method though, think that works only in actionscript 2.0..

I am fairly noobish, though if anyone can help me w/ those two issue's I'd be greatly happy.. the name of my movieclip is SymbolOne.. I did try SymbolOne.z = 99; and myLoader.z = 0; though I just get issues w/ "unidentified method z".. so.. help? :S

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