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




Movie Madness



I would like to load a MC into my scene by clicking a menu button. The hard part is that I want it to 'swoosh' in from one side of the screen. Further to this when another button is clicked I want it to deload (unload? disload? reverse?) whatever, anyway I want it to play backwards so to speak. Then the second movie clip can swoosh into the stage and so on. Kind of like a fadin/fadeout effect.

If a button is clicked halfway through 'swooshing' then it should immediately 'deswoosh' from where it is, not just disappear.

Sorry but I have no .fla yet, but then again I haven't written a single piece of code cos I can't find a tutorial to assist me.

Sorry if this is easy and I'm crap.



FlashKit > Flash Help > Flash MX
Posted on: 05-08-2003, 09:54 PM


View Complete Forum Thread with Replies

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

Movie Clip Madness
Hello All,

I have a movie clip inside of my main movie clip where I've emulated a drop down menu. User clicks on a down arrow and the choices appear below that. To do this, I have a number of movie clips nested inside each other and things are working brilliantly. (I used a tutorial from this site to make it work.)

The problem is, I want to duplicate the movie clip, as I need another drop down menu, but all of the actions and the source for the next movie clip need to be changed. I've duplicated the top level mc and given my new mc an instance name (called Classification), but whenever I try to edit the nested movies, everything in the first drop down that I have working changes to the new code and no longer works.

Your help is appreciated.

~rockyroad

Movie Clip Madness
Can anyone provide me a script that when applied to a Movie clip it will make the clip randomly jump out at you (change size). It shoud be with no tweening just occasionaly jumps out then gets smaller etc.

Also, as a bonus it would be cool if it could also duplicate with a different alpha value.

Please help someone

Movie Clip Madness
Hi All! I am building a personal portfolio in flash and i'm having some issue with the actionscript. I figured out initially that I could not click on the mc's i was creating dynamicallye ven with an onRelease becuase they had to finish loading before i could call that type of function. did a search and managed to be able to functionally click on them. NOW the only problem is that i cannot call for the 'container' or portfolio[id][i][2] (a link from an XML file to an image path) from within the onRelease function. is there anyway somebody can show me how to do this? or so that it doesnt settle on the last image after it runs through the loop and the link is correct for each instance. Thanks for anyone's help!


Code:
function displayThumbs(section:String, id:Number) {
for(i=0; i<portfolio[id][i].length; i++) {
var mc:MovieClip = createEmptyMovieClip("mc"+i, i);
var ph:MovieClip = mc.createEmptyMovieClip("ph", mc.getNextHighestDepth());

mc.ph._y=35*i+50;
mc.ph._x=200;

ph.loadMovie(portfolio[id][i][3]);

var container=portfolio[id][i][2];
mc.onRelease=function() {
_root.holder_mc.loadMovie(container);
}

}
}

Movie Clip Madness
Does anyone know if it is possible to load a moive into main time line then using a close button in the loaded movie to goto a lable back in the main time line? if that makes sence at all each loaded movie (5 in total) will goto a different place when closed

Movie Clip Madness
I have a movie clip.
It has 5 buttons in it.
They point to 5 scenes.
----------------

When you click on a button ... No go. It will not go to the scene.
----------------

I am REALLY confused. Could there be a problem with my movie clip? Is it supposed to be this hard?

If you have time to look @ it, its here: http://www.versaplanet.com/bugblaster2002.v2.zip

Thanks!
B

Load Movie Madness ( Flash 5 )
Hi

I need to create a movie for a photographer. I have created the main movie and need to sequentially preload the thumbnails into the main scene. What I have come up with so far is preloading say three external .swf's into levels 1, 2 and 3 respectively. Since the big images are going to go underneath the thumbnails I have placed them in a separate movie on lebel 4. Now I need to get the movies to talk to eachother. I can get say movie in level 3 to load but then I cant see 1 and 2 underneath it. How can I unload movie 3 when I want to load movie 1 or 2. I know how to loadmovie into an empty movie clip on the main stage but then will I still be able to see all the thumbnails loading.

Is this the best way do go about things or have I complicated my life as usual.

Does anyone know where I can get a tutorial expaling this.

Thanks in anticipation.
p.s the person that helps will be first on my christmas card list. Lucky hey.

Load Movie Madness ( Flash 5 )
Hi

I need to create a movie for a photographer. I have created the main movie and need to sequentially preload the thumbnails into the main scene. What I have come up with so far is preloading say three external .swf's into levels 1, 2 and 3 respectively. Since the big images are going to go underneath the thumbnails I have placed them in a separate movie on level 4 so that the will always be above. Now I need to get the movies to talk to eachother. I can get say movie in level 3 to load but then I cant see 1 and 2 underneath it. How can I unload movie 3 when I want to load movie 1 or 2. I know how to loadmovie into an empty movie clip on the main stage but then will I still be able to see all the thumbnails loading.

Is this the best way do go about things or have I complicated my life as usual.

Does anyone know where I can get a tutorial expaling this.

Thanks in anticipation.
p.s the person that helps will be first on my christmas card list. Lucky hey.

Button Within Movie Within Movie Madness
Well day by day I'm getting closer and closer on this menu thanks to all the help from the Flash forums. But I still need a little more help.

On my menu I have a list of buttons that are enabled to work depending on what section your in. As of right now I think I have that working but I don't seem to have the button to click and enable the 3rd button to work. It says it's gone to the next section but for some reason my file structure is a little messy. Like buttons within movies and such. Could someone take a look at this and let me know what it is I'm missing. I think it has something to do with the way I have the buttons within movies but not sure. Thanks. Links are below.

http://www.rustygeorge.com/MENUtesting.fla
http://www.rustygeorge.com/MENUtesting.swf

Preload Madness - Preload Movies Clip In A Movie?
hey people... a brought up this subject here a while back but it didn't really go anywhere... now that this sections seems to be a bit more lively perhaps some of you flashers can help me out... I am going to break this down very simple... I haven’t even storyboarded this so this is an extremely rough draft of the idea



I am building a photo gallery



this gallery has eight images which range from 30k-75k (roughly) so I don't want the user to wait for a full load of 240k-600k



I want to first load the thumbnails for the images... and then begin to preload the first image directly after that... then display it



and then from that point when the user clicks a thumbnail the corresponding full image will preload and then display


basicially this is about preloading a movieclip in a movie... I jsut can't wrap my head this... so I will ask for help before I get too deep.... any input on the basics of this idea would be appreciated

thanx!

Help Me Out Of This Madness
I am trying to access movies from a page, but all of the movies have different properties to show they are in proportion. Do I have to create separtate movies in different timelines to keep them in proportion? Even if I put the movies in different scenes, it still changes the stage properties for everything. Please help.

Madness
If I use (moving) function for movie Clip it works just fine but when I use same function for button it don’t work.
Also my dynamic text field that use value loaded from text file loaded on start, loose, actually don’t appear nothing if I put them inside movieClip, but they work great if I put it in button.
Means I have situation where I cannot apply or value to the dynamic text or cannot apply function to the button.
I’m mad and have headache. Please help.

Madness
Well some people out there play on the internet game Madness Combat and I have been looking everywhere for a program to make a modification with. I was told FlashKit but I just don't know which one to choose.

Madness Please Help
Ok I have the following Script on a frame in my movie:

stop();
home_btn.onPress = function () {
gotoAndPlay("home");
}
furn_btn.onPress = function () {
gotoAndPlay("furn");
}

collection_btn.onPress = function () {
gotoAndPlay("collection");
}

services_btn.onPress = function () {
gotoAndPlay("services");
}

contact_btn.onPress = function () {
gotoAndPlay("contact");
}



And of course as you press each button it should go to the coresponding frame and play. What is crazy wierd is that the "home","collections" and "contact" ones work but the "furniture" and "services" dont! I have made sure that the frame label is correct that its supposed to go to. and I have named the button instance accordingly "furniture_btn" etc... But it just wont go! Any Ideas? I have attached a simplified version of the fla if anyone could take a look? Thanks!!! spen

3d Madness
sup. im a sapling programmer with wild ambitions. can anyone put me on the path to creating a site with these stunning 3d actions? bbdo.com, matthewmahon.com, mailorderchickens.org, billharveymusic.com - in particular, the actual way to create these actions, how to move back in space by clicking around the movieclips and how to apply blurs and easing for realistic motions... thanks so much (i surmise that as the thread builds i'll have more questions for yall).

P

Help. CS3 Wants Me To Die Of Madness.
Maybe this is so simple I'm going to look like a fool. I've reduced this bug(?) to it's simplest form:

1) I create a new .fla (untitled-1 is default name). I write one little actionscript line in the first frame: trace("save me from madness")
2) I run this via ctrl-enter. I see the trace. No problem.
3) I save this file under a new name test.fla
4) I run this via ctrl-enter. No trace. No nothing.

I've tried using the Delete ASO files to no effect. Has anybody experienced this? If I have a button on stage, it starts flickering when I publish after the save, as if the .FLA isn't compiling right, but no compile errors are displayed in the output window.

Thanks for any help.

DMcQ

MC Madness
Hey people..

Take a look at this site: tomstephan
When you browse the navigation on the site, the image shakes! Is NOT the image effect I'm after, but when we press one of the buttons, the image on the "scene" shakes, before changing to another image.

In other words, how can I make a movieclip play, that are allready on the "scene" (like tomstephan) - before it change to the next movieclip - no mater what button I press, the movieclip on the scene plays before changeing!..
Is this possiable without using serperate swf's?

Hope you know what I'm talking about! ..any help would be NICE!

Xml Madness, Please Help
hi people, I am new to flash and xml and I am having this problem, should be simple, but I can not find how to fix it

on my button I have this code

on (release) {
attachMovie("certo", "c", 2);
c._x = tres._x;
c._y = tres._y;
function loadXML(loaded) {
if (loaded) {
_root.premio4 = this.firstChild.childNodes[0];
_root.c.premio_txt.text = _root.premio4;
trace(this);
} else {
trace("file not loaded!");
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("premiacao.xml");
}

what my text field display is this;

<ganhou>Você ganhou uma melancia!!!</ganhou>

it is the correct info, but the xml tagas are showing too

my xml is this;

<?xml version="1.0" ?>
- <premios>
<ganhou>Você ganhou uma bola!!!</ganhou>

<ganhou>Você ganhou uma laranja!!!</ganhou>

<ganhou>Você não ganhou nada!!!</ganhou>

<ganhou>Você ganhou uma melancia!!!</ganhou>

</premios>

anyone could help me out with this??

thanks

This Is Madness
I had only one scene in my movie. In that scene I had a button in the first frame. That button had a very simple action attached to it:

onRelease {
gotoAndStop(_currentframe+1);
}

That worked great. Upon releasing the button I'd go to frame 2.

Now I added a loading scene (a scene that comes up before the main scene) and the button I just mentioned started to work goofy. When released it takes me to scence 19!

I didn't change anything at all in the main movie. All I did was add a scene. Anybody has any idea what's going on? Thanks a lot!

Pop Up Madness- Help
I am building a website for someone and the person im doing this for is really annoyed that if he pushes the back button the site reloads (as we all know about flash) So i decided to make a splash page and have the flash movie pop up full screen with no nav. The problem is his pop up blocker stops that screen. I am stuck between a rock and a hard place- unless there is a code that makes a window with no nav and isnt considered a pop up.... owww my head hurts

MORE--->Input--MaDnEsS
Is there a way to evaluate just a "portion" of the characters typed into an multi-line input field??

Getbounds Madness
Hi, i posted this in the games section before by accident when i mean to post it here. If you've seen it before forgive me :-O

i'm trying to use getbounds too. I'm trying to make a circle bounce around inside of a square movie clip. Right now it just has a seizure and i go :-(

here is what i put on the circle movie clip:

onClipEvent (load){
myBounds = _root.square.getBounds(_root);
goX = 3;
goY = 3;
}
onClipEvent (enterFrame) {
this._x+=goX;
this._y+=goY;
if(this._x > myBounds.XMax or this._x < myBounds.Xmin){
trace(Xmax);
goX *=-1;
if(this._y > myBounds.YMax or this._x < myBounds.Ymin){
trace(Ymax);
goY *=-1;
}
}
}

here is a link to the .fla file: http://www.threebrain.com/bs/circle_...nds_100201.fla

this is driving me nuts! I'm sure i'm doing something stupid. If anyone helps me i'll give them a back rub or a dollar.

thanks,

threebrain

Button Madness
Hi can you help.
I have a movie clip (b) inside another movie clip (a) which is is set on the main timeline in scene 1. I want the button in clip (b) to send it to another frame within itself. It works fine using the enable simple buttons in the control panel but when i test the movie it's a fizzer (dud). What's the problem? Does anyone know what the script should be or can you not assign buttons in side movie clips which sit inside another?
Thanking you
Miffy

Preloading Madness
Greeting fellow Flashers,

I have a preload problem, I want to preload some images during a game. In the first frame I use the actionscript "If target is loaded (frame 60)" "tell taget (loadbar) go to frame 2" [THE MOVIE IS STILL IN THE FIRST FRAME]

It 's loading the frame (60) but the tell target (loadbar) doesn't work. I getting stressed becouse in my mind it must work.

Can somebody relieve me from my stress?
With kind regards,
Sander "Rednas" Hermans

(I'm Dutch, so excuse my Englisch)

Scrollpane Madness
I have got a scrollpane that I am displaying multiple MC's with several textfields within them. I have placed the Arial font in the library and set a linkage name of 'embedArial' to it. I also have set the embedFont property to 'true' for the textfields that are created in each MC. Trouble is, any time I want to display a 2nd or 3rd movie clip, the text doesn't show up, only the top MC text shows. For clarity 'testMC' is in the library and the linkage id is 'testMC'. The scrollpane is set on the stage and named appropriately 'scrollpain'. Also for clarity, I like to pass objects to functions rather than many arguments.

Here is the .fla link to see what I have done so far:

http://www.tcswebdesign.net/FlashFil...crollPain.html



I am using embeded fonts and have embeded the arial font used in the textfields and the options set to export for actionscript and export in first frame. In the fla file you'll see that at one time i had 4 textfields per MC, I have reduced it to just one Textfield for clarity, however the trouble is the same.

Any help is appreciated.

Menu Madness
this one is killing me;
i'm working on a navigation bar for a website, with 5 buttons, one button shows a submenu that slides out when the button is pressed. the problem is; when i push another button, the submenu needs to slide back in, and after that a new scene or movieclip needs to be loaded...i 'm stuck on this for far too long, pleeze help me

Loading Madness
I have a simple loader:

total_bytes = _root.getBytesTotal();
loaded_bytes = _root.getBytesLoaded();
percent_done = int((loaded_bytes/total_bytes)*100);
bits = loaded_bytes + " bytes of " + total_bytes + " loaded.";
percent = percent_done + "%";
bar.gotoAndStop(percent_done);
ifFrameLoaded ("main", "next") {
gotoAndPlay("continue");
}

Old script from somewhere. It works fine, but on my dialup when you hit the movie, it hangs up on an empty frame and sits there for a while before you even see the loader. The first frame is tiny. Ideas?

?Preloader Madness?
Hello,

I have been messing around trying to get a preloader to work in a web site I'm working on for three weeks. I've been given a few code examples and have failed to apply them correctly or the code was incorrect. I am in need of someone with decent preloader experience who doesn't mind taking the time to help someone learn preloaders once and for all. Basically is what I'm looking for is this..... I would like it when a user goes to my website, a preloader starts with a little animation and a download box showing the progress of the download. I would like the animation to loop until the progress box reaches 100% when it would then load the movie and start playing it. If someone wouldn't mind taking the time to make a small animated preloader with a progress box, and then an extremely simple movie and send me the .fla file so I could look it left to right top to bottom and figure out exactly how it was done. I would greatly appreciate it if someone could do this for me. I understand that communicating threw forums is difficult so I am going to add my msn messenger addy below to use "voice" or be able to chat faster. Thanks in advance for your time.

msn messenger = da_stealth_@hotmail.com
e-mail = andrewj2883@earthlink.net

, Andrew

Nested MC Madness
Can someone please explain why my movie clip does not play completely when I have an MC collision? I have mc1 and mc2. Now when mc1 and mc2 collide mc3 (which is nested in mc1) should play from frame 2 to 15. Instead it only plays frame 2 and stops. I attached the file. Please help!!

PHP GuestBook MADNESS
ok guys check this out... this is my guest book it works perfect.

http://www.mrmass.com/TEST/guest_book.swf

but as soon as I try to load this movie into empty movie clip with instance name /CONTAINER on my main movie, he doesnt wanna call in php file which i'm calling on guestbook on level0

NumLow = 0;
NumHigh = 10;
loadVariablesNum ("GuestBook.php?NumLow="+NumLow+"&NumHigh="+NumHig h+"&R="+random(999), 0);
stop ();

and this is on my button on my main movie

on (press) {
loadMovie ("mad_skills.swf", "/CONTAINER");
}

php loads .txt file and they both communicate with flash...

since guestbook the link above works good I assume that the problem is the target so I'm probably missing .. or / I dont know

ANYONE CAN HELP ME OUT?

Desperate to finish my site

MrMass

Concatenating Madness
Hey all,

I want to concatenate 2 variables from a .txt file into one variable to be then used for getURL.

So in the .txt I have

&addy=udfug
&suffy=.org

Then I load the variables in on frame one.
They come in just fine.
Then on frame 2 I do:

where = "http://www." + addy + suffy;

but where displays as: http://www. AND THAT IS IT, in the output window when testing.

So I am doing something wrong when concatenating them together....I want to get where = http://www.udfug.org


Uh...any help? I tried eval(); too to no avail.

Thanks!

Concatenating Madness
Hey all,

I want to concatenate 2 variables from a .txt file into one variable to be then used for getURL.

So in the .txt I have

&addy=udfug
&suffy=.org

Then I load the variables in on frame one.
They come in just fine.
Then on frame 2 I do:

where = "http://www." + addy + suffy;

but where displays as: http://www. AND THAT IS IT, in the output window when testing.

So I am doing something wrong when concatenating them together....I want to get where = http://www.udfug.org


Uh...any help? I tried eval(); too to no avail.

Thanks!

Key Code Madness
I'm trying to get some key code to work, and it does, in test movie. It won't do anything when testing the standalone swf from disk. And it seems to skip some frame code in the actions layer, passes right by it and ignores it. Here's the code:


Code:
ritKey = new Object();
ritKey.onKeyDown = function(){
if(Key.isDown(Key.RIGHT)){
this.nextFrame;
}
};
Key.addListener(ritKey);

lftKey = new Object();
lftKey.onKeyDown = function(){
if(Key.isDown(Key.LEFT)){
this.nextFrame;
}
};
Key.addListener(lftKey);
Anybody know a better way or whats wrong with this?

Multidimensional Madness
Hi- i'm creating 2D arrays. I have been writing and rewritingthis code for an hour now, I've got totally stuck. For some reason it is determined that afaceArr and bfaceArr must be the same. So


Code:
// set up the arrays
_root.aArr=new Array(10);
_root.bArr=new Array(10);

// create a temporary Array so we can make multidimensional arrays
// with a loop. The value i is included for testing purposes.
for(var i=1;i<=9;i+=1) {
tempArr=["null",i,"null"]
_root.aArr[i]=tempArr;
_root.bArr[i]=tempArr;
}
tempArr="";

for(var i=1; i<=9; i+=1) {
//
_root.aArr[i][0]="aardvark";
_root.bArr[i][0]="baboon";
}
Returns the two arrays, but unfortunately _root.aArr[1][0]="baboon",
not "aarvark", and in fact it appears that aArr=bArr, which it obvoiusly should not.

This is the only code in the movie, I'd really appreciate any suggestion.

FComboBox Madness
Try this, drag a FComboBox component on to the main stage in Flash MX.

Name it "Box" or whatever, by selecting it and then typing "Box" in the properties panel.

Then click on frame one and add this script to the actions panel....

box.addItem("Jan",01);
box.addItem("Feb",02);

Works a charm, then try adding....

box.addItem("Aug",08);

.....it outputs a syntax error.

box.addItem("Aug",8);
box.addItem("Aug",18);
box.addItem("Aug",01);

....all work, for some reason 08, and 09 aren't acceptable data types, which is a damn shame cos I planning on throwing those variables into a database.

Anyone have any idea what's going wrong??

Hex Colorfade Madness...
I am working with a colorfade script from Flashkit tutorials and having some strange results. I should note, however, that in the past (the files are from more than a year ago) everything worked perfectly, but recently things have gotten a bit strange.

When I "Publish Preview" from flash the files runs perfect - colrs fade properly and to the right color, but...

When I view the files in explorer, netscape or safari the colorfade does not function properly - it always goes to a blue color! And when I click the button that should make it go blue it goes gray!? Is there a reson that browsers would render files differently than flash? Could this be an issue with my Processor or amount of RAM (not enough to process and execute the actionscripting)? Has actionscripting syntax changed in MX making my script malfunction?

Please check out the posted version and let me know if you are seeing the same error as. Please also provide your info - Mac or PC, processor speed, RAM, etc - so I can try to nail down the problem. Any info, gusess, or insight is GREATLY appreciated. I am BAFFLED!

Posted version:
http://www.virmalo.net/ren_post12/renemarie.htm
Source files:
http://www.virmalo.net/ren_post12.zip

b
brett@virmalo.net

Telltarget Madness
ok i really need someone to explain to me telltarget properly. I tried learning it with help in flash but it didnt help me much.
Atm im trying to make a simple platform game made with little actionscript.
The only problem i have with it is that when a key is pressed, the playhead goes to the next frame, but i also want it to play another movieclip in my library. Argh these levels are so confusing! some please explain it to the noob.

Preloader Madness
hi guys!
im back and i appreciate all of your help in the past im learning so much in these forums, heres a new problem im having though,
im trying to script a preloader but for some reason this script isnt working:

ifFrameLoaded (scene 1,2){
gotoAndPlay(scene 1,1);
}


im getting the following error code:

Scene=intro, Layer=actions, Frame=1: Line 1: ')' expected
ifFrameLoaded (scene 1,2){

im almost positive i have it set up correctly this code is in the 1st frame of my 2 frame preloader in the 2nd frame is the loop whats wrong -ive switched the code up several times but it still gives me the same error code -thanks in advance

LoadMovieNum Madness
I have a main swf that loads another swf into level 10 and passes a couple variables for dynamic text and an image name that loads into the level 10 movie. Everything works great when I'm running the swf file, but when I run the HTML file the text and the image will not load. Anyone have any clues?

This is my code (from main movie button)...

<as>on (release) {
_root.EnlargeImage = "E04_2-3_7Web.jpg";
_root.ProjectName1 = "";
_root.ProjectName2 = "Tower Bank";
_root.ProjectLocation = "Fort Wayne, Indiana";
loadMovieNum("EnlargeImage.swf", 10, "Post");
}</as>

I'm still searching posts, but haven't found anything yet.

Thanks for any assistance.

Preloader Madness
For a preloader to work, does the movie HAVE to load Top to bottom?

thx

Animation Madness
Hello all,

Here's the deal, I have a menu and I use animations as buttons.
An animation plays forwards when the mouse is over it (until the last frame of the animation is reached).
Then, when I move the mouse off the animation, it plays backwards, returning to it's first frame.

Now, when I click the animation I want it to freeze in it's last frame. It should stay this way even when the mouse is not on it!
Then, when I click a different animation the first one should return to it's default situation and the clicked one should freeze in it's 'mouse-over' state.

As to show the user which animation (s)he last clicked.

I can't get the part working that should make the animation stay in it's mouse-over situation after being clicked and return to it's mouse-off state when another animation is clicked.

I have included a file to show you what I mean. It's a zip, with a Flash MX file and the Neuropol font, which I use in this file.

Thanx a lot!

P.S. The Neuropol font is very cool.

March Madness Help
I'm using Flash MX trying to create a game where a player shoots freethrows. There is a vertical bar with an empty circle close to the top, which is a movie clip, that is set to the main timeline. On top of that is another movieclip with a basketball circle that moves up and down the bar. I need the script to check whether or not, when the mouse is pressed, the basketball is within the _y parameter on the vertical bar clip. If it is, then add one point to a text field. If not, don't add the point.
Thanks!

Movieclip Madness
I have loaded an swf into an existing movie at level1 called "where.swf"

The where .swf contains a movieclip

I have a button in the original movie which I want to click and load the where.swf...but at a certain frame of the movie clip contained in that swf.

I've tried various onLoad / onLoadMovie commands...I can get to the first frame of the movieclip no problem.

I was looking around and I wonder if it has to do with the swf loading and at same time I am asking to load a frame of a movie clip

Can anyone help?

Thanks

Datagrid Madness...
I need to be able to filter through a user-editable datagrid (can add columns, rows, etc.) and be able to identify all of the values in the datagrid for a new XML doc. Help. Any additional info I can give, let me know.

Using Flash 8.

RH

FileReference Madness
Hi all,

I've been trying to get a simple FileReference example to work for the last few hours without any luck.

Here's the ActionScript:

PHP Code:




import flash.net.FileReference;
var listener:Object = new Object();
listener.onSelect = function(selectedFile:FileReference):Void {
    selectedFile.upload("http://www.mackstudiopro.com/simpleUpload.php");
}
var imageFile:FileReference = new FileReference();
imageFile.addListener(listener);
uploadButton.addEventListener("click", uploadImage);
function uploadImage(event:Object):Void {
    imageFile.browse();
}






And here is the PHP script:

PHP Code:




<?php
move_uploaded_file($_FILES['Filedata']['tmp_name'], "./images/".$_FILES['Filedata']['name']);
?>






As you can see, it's watered down to the bare minimum; on the root of my server I placed all of the following:

- a cross-domain security policy
- the swf file
- the html file
- the PHP file
- a new directory called "images" with permissions set to read and write

The only thing I was expecting to see were files being added to the images folder as they were uploaded; instead nothing appears to be happening.

My server supports PHP 4.3.1 and I am authoring on a Mac.

Also, when I add the onHTTPError event to the listener I get a "HTTPError number: 500 File: undefined" error when I try to visit the page live.

Any help greatly appreciated.

Button Madness
I have a navigational bar with buttons that direct the main timeline. Problem is sometimes when you click on a button and it moves to the next frame, if you haven't moved your cursor it does not detect the rollOver or (released) events. This is annoying because you may want to hit the "forward" button several times in a row, in this scenario you don't want to have to move your cursor off the buton and then back ono it to allow it to work.
The really frustrating part is, this problem does not present itself EVERY time you click, only some even though it is the same navigational butons being used across the main timeline

Randomizing Madness
I have been racking my brain on this one for awhile, so any help is most appreciated.

Right now I have variables that are equal to a certain number.

var1 = 1
var2 = 2
var3 = 3
var4 = 4
var5 = 5

I want each one to be equal to a random number (in this case 1-5), but they can't have the same number. So an example would be:

var1 = 3
var2 = 1
var3 = 5
var4 = 4
var5 = 2

I have the random part down:

aRandomNumber = Math.ceil(Math.random()*5);

I've Created Madness
I'm trying to create a box which when clicked, will allow you to drag a mc of a circle on to the canvas.

Also their any seperate colour boxes below the main box that will alter the colour of the mc you drag out on to the canvas.

Ive had a bash at it and been all day playing with the scripting and i seem to have hit a wall - i've attached where i've got to and as you can see all sorts of stuff goes off when you start flicking between the 2 clips on stage and the colour box

my scripting knowledge is pretty limited and i've no idea why it wont let me drag more than one clip onto the stage at a time and how to get the colour change working.

would really appreciate it if someone could point me in the right direction... please?

Submenu Madness
this is driving me mad


i have a movie clip menu
in that menu there are individual movie clip options ie about, contact etc.
one of those movie clips "services" has a submenu listing those services

the action on the frame for services is as follows:


Code:

stop(); // stop the movie clip from playing (stop button
from growing, we want that when the mouse rolls
over only

this.onEnterFrame = function()[
if(rewind == true){ //if rewind switch is set to true play
backwards
prevFrame(); // play backwards
]
]

this.onRollOver = function()[
rewind = false; //set variable (or switch) that decides
whether or not to play backwards...
play(); // play this movie clip.. (grow the button(tween));
]

this.onRollOut = function()[
rewind = true; //set or rewind switch to true so it will
play backwards...

]

this.onRelease = function()[
_parent._parent._parent.collector_mc.loadMovie("our_approach.swf");
]
so that when on scrolls over "services" the submenu appears

the issue is... none of the options in the submenu will work with the
following script


Code:
on (release) [
this._root.loadMovie("test.swf",collector_mc);
]
i either want to link them to load in an empty root movie clip or or load a frame in another scene..

any assistance will be greatly appreciated.

[CS3 AS2.0] Ball Madness
Hey there, i was just goofing around making a small "ball" generator. The user inputs the number of balls to be created (max 99) and then clicks "generate" the balls spawn and bounce around the screen at different speeds etc. My only problem so far is with the friction side of things. Due to the random speeds and a fixed friction value of 0.9 some of the balls seem to glide very very slowly when they should be stationary. A little help plz as i wanna move on and make an array of colours they can spawn; as well as being able to pick them up idividually and lob them around.

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