Small Script, Supposed To Be Easy I Guess...
I'm using Flash 8, this small script isn't working. I don't know what's wrong.
I have 4 MC's on the stage called mc_1, mc_2, mc_3 and mc_4. They should move when clicked.
Code: var mcArray:Array = new Array(); mcArray.push(this.mc_1); mcArray.push(this.mc_2); mcArray.push(this.mc_3); mcArray.push(this.mc_4); var endY:Number = 400; for (var i:Number = 0; i < mcArray.length; ++i) { trace (mcArray[i]); mcArray[i].onRelease = function() { mcArray[i]._y += (endY - mcArray[i]._y)/3; trace(i + " " + mcArray[i]); } }
The TRACE always returns "4" for the variable i, no matter what mc I click on. It should just return 0,1,2 or 3, depending on the mc the user clicked on.
Also, the TRACE returns undefined for mcArray[i]. That should return the name of the MC the user clicked on.
Any idea what's wrong?
FlashKit > Flash Help > Flash ActionScript
Posted on: 02-23-2006, 06:39 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Big Ass Button Supposed To Be Small
hey.
i got a few buttons lined up in a row.
the first one, using a different font color, appears bigger than the rest.
not as big as an ass, but a pixel or two. this happens at different zoom levels. at maximum and the ones following that, it's ok. but when coming to normal size, it appears out of porportion. at small size, it's intact again.
this bad button has exactly the same size as the rest. which is why i don't get it; why it gotta act like this?
thanks!
Addition Is Supposed To Be Easy...
Problem: When I add two dynamic numbers they are joined rather than added (1+3 = 13). See below for more detail.
As an experiment I've been writing some code to construct musical scales based on a template. The template is an array of numbers. The following function is intended to construct the scale using a starting note in numerical form(rN) and the template(scale). A third index array (chromatic) is used to return the actual notes:
code:
function buildScale(rN, scale){
outputScale=[];
outputScale.push(chromatic[rN]);
for(i in scale){
rN+= scale[i];
outputScale.push(chromatic[rN]);
}
}
What seems to happen is when i add to rN (in order to find the next note in the scale) the two numbers are joined so 3+1 becomes 31 and i eventualy end up with an 8 digit number.
I guess this is something to do with extracting the numbers dynamically, but i'm stumped for a solution.
Not An Easy One I Guess ...
hello all!
what i need to establish:
- i've got a square (graphic symbol)
- i put the square into a movie clip
- i place my movie clip on the main timeline
- i want to transform the movie clip instance so that the sqare no longer appears as a sqare but perspectively scaled.
i know that this is not possible by scaling and only is possible by shaping the suare graphic symbol. but there has to be a way using action script to manage what i need to.
any suggestions?
thanks, elo.
Easy Question I Guess... Please Help..
I have 2 layers (with images) which is ready to be the background of my movie, but please help me how to do that?
or, alternate question; is there any way to make a layer or more exist in the whole movie automatically, as long as the movie runs?
One more question, is there any way so that if the movie is being played, the area outside the workspace is not visible? Because what i got here, is when I maximize into full-screen mode, the area outside the workspace is filled with the background color..
hope i wrote my questions clear enough for you... thanks for the reply.
[Edited by aquanova on 07-08-2002 at 11:42 PM]
This Could Be Easy ....or Hard I Guess..
i have a button and when you click it...
it loads a .swf into layer 10.
and at the end of the .swf it has a stop action.
..ok that part is simple..
and if you navigate to another part of the site...
the .swf is still loaded into level 10.
ok.... no problems.
what i want to know is there a code to put on the button
that looks to see if its already loaded..
not to load it again..but to play it ???
cause if it has to load it again
its more load time..ya know
Pretty Easy I Guess...?
I cant figure out how to stop this button from loading the external file everytime you click on it.
Check it - I have a button for each external file, and one mc where they load into.
the code is super simple cus Im a noob in AS:
onClipEvent (load) {
url = "test.swf."
}
Is there a way or line of code I could plug into it so itll kinda disable the button from multiple clicks/loads?
(I Guess) An Easy Button Question - How To Make A Function For A Button
Hi!
I have a little button problem. I have plenty of buttons in my presentation which should take the movie to different frame labels. But some of the buttons shouldn't be active from the beginning and they should have a different ("not active") color. Instead of setting enable = false; and color changes for every button, I tried to make a function and then call it. I put it in the first frame. It looks like this:
code:
/*** TRYING TO CALL THE FUNCTION ***/
_root.flowerButton.notActive(this._name);
/*** FUNCTION ***/
function notActive(nameofbutton) {
nameofbutton.enabled = false;
//color change...
}
I don't know if this script is alright or not, it simply doesn't work. I tried many combinations and put trace to the function, but nothing. It looks like I can't call a function for a button like this. Can anybody help me how to make it work? And I would really appreciate an explanation why this code doesn't work.
Thank you!
Poco
Small, Probably Easy... Q
I was lookin' at some coding on someone's post a while back and saw this..
Code:
/:<variable name>
the rest of the code was uminportant but i was wondering, what exactly is this used for...
Also when you refer to an MC by its name...
"/MCNAME" why is there a '/' used, i am just curious
~Zakarus2001
Small Code Not Working (easy I Am Sure)
okay heres the deal i have a dynamic text box that loads 5 different text files when a user clicks on one of the buttons (but1, but2, but3...). I am trying to get it to work with the scrollbar component and i finally got the scrollbar to work but the new AS wont load the text into the dynamic text field.
so heres what i am trying to achieve. If I take the 5th line of this and remove but1.onrelease and change to load, and it loads the text fine but i need it to load when the button is clicked as opposed to just being there. What did i do wrong here???
stop();
loadText = new LoadVars();
loadText.load("contact.txt");
//creating the loadVarsText function
but1.onRelease=function() {
scroller.text = this.myText;
};
theres the AS for it this is just for one button to load the text into the scrolled dynamic text box. any ideas as to what i am missing?
I thoght maybe a funtion for the load text but i get nothing but errors so if thats it please show me what to add and where cause i cant for the life of me get it to work.
Thanks!
Is This Supposed To Happend?
Does anyone know if this is supposed to happend..
I have a dynamic text box with HTML checked.. I get tags when I view the SWF in Flash Player.. however this is not true when viewed through a browser or when the movie is tested from the "builder"..
_function Not Doing What It's Supposed To
I've been tring to adapt an email form tutorial to my own needs;
http://www.flashkit.com/tutorials/Dy...-658/index.php
For some unknown reason to me, I can't make more functions in the functions layer work. I want to make all fields required to be filled in. It works with 2 functions, but when I put a third one, it doesn't recognize it. In this .fla i've created a function (function layer) named ckPhone() which doesn't work.
Please help cause this is driving me nuts.
Jantunes
I'm Supposed To Spend $700?
Hello,
I'm on vacation for the holidays. Yesterday I played a really fun flash game called Hapland 2. Anyway, I already know how to program so I thought I would spend my vacation learning how to make a game like that.
I figured I would just need to learn a new scripting language and find an editor/compiler somewhere... was I wrong? All I see for development is a $700 flash 8 package from macromedia. Is this really what I'm supposed to buy just to play around on my vacation? I've never done anything web-based so I have no idea.
Please help me out if there are any alternatives. I see a $300 "academic license" package but that's still $300 and I have no idea what an "academic license" entails. I can't believe the only people out there with access to play with flash are professionals, students and people with parrots on their shoulders.
My Butto Wont Come Out To Where Its Supposed To Be
on my menu sytem when you rollover the dot four dots are supposed to come out and then the center dot is suppose to be a button for home and the center button you have to try to find the text. whats wrong i just want the dot to come out so it can be used for navigation.
Tween Doesn't Look Like It Supposed To Be
please check out:
pixelranger.com, then portfolio...
if you move over the different option, this very small, but neat tween appears, a rectangle , in which a pie-peace get cut out of,
i did the tween myself, but it just doesn't look at smooth as this one...., even if i use shape-hints for every corner... nothing...
can somebody tell me how they make it so smooth....?
greetz
melvin
Variables Incrementing By More Than Supposed To?
Hi,
Ive run into a problem with some variables im using ok so in my game im developing as the player collects the balls the score variable increments by one (scores original value is set to 0) ok so on my first try i had the code as:
Code:
_root.score = _root.score + 1
This did not work and incremented by too much each time so on the first counter it became 1 then jumped to 3 rather than 2?.
Ok so i then tried just += 1 as below:
Code:
_root.score += 1
And this again incremented by too many?
How can i stop this from happening as i only want it to increment by 1 for each counter not like is has been doing 2?
If Loop Running Even Though Its Not Supposed To...
I have a variable "sceneCount" that tells the code what scene the movie is at. it starts at 1 for scene 1. When you click the next button it runs a function that looks at "sceneCount" and determines which scene should loaded next. Here is the bare bones coding for that...
Code:
function nextClick(event:MouseEvent) :void {
infoBox_mc.textBox_txt.text = "";
trace(sceneCount);
if (sceneCount == 1) {
scene2();
}
if (sceneCount == 2) {
scene3();
}
}
when the next button is first clicked, the sceneCount = 1, so it should run function scene2(). This works, but it also loads function scene3()...Any idea why?
DataGrid Popping Up Where It's Not Supposed To
I have a flash document with several scenes, and in one of the scenes I have 2 DataGrids that I've written in with code. Once I go to this scene and then go to another scene, the DataGrid floats over the text of the other scenes! Any thoughts on how to prevent this?
Publish Preview Is NOT What Is Supposed To Be .....
Sorry all I am very new to this and very frustrated...
I have tried to create a simple movie that rolls/fades
the letters in and then they should blow apart...
I see what I intend within flash on the workspace...
but when I preview and or publish it doesn't work correctly...
argggggg..
Any help is appreciated ....
I have attached a copy of the file
thanks
Echo4Bravo
Buttons/links...is It Supposed To Look Like That?
well, my project is not done. i have been working pretty hard @ it, and i (well actually it was lostinbeta, lol) have come across something that now bothers me. are those links supposed to look like that? im going with...no! i dont know how to fix them. i found the one topic about this, but it really didn't help me much. i tried editing the different states, but it looks the same to me. anyways, all help is appreciated!
Animation Not Playing When It's Supposed To... :(
http://www.matthewcorway.com/interface.fla
I'm working with this file, I've so far gotten my interface top to work how I want it to but I can't get the little man to animate when someone mouses over a button.
If you press the LEFT or RIGHT arrows he will animate properly but if instead you use your mouse and go over a button. It will assign a variable a direction and then it is supposed to tell the man to animate but it doesn't work.
Can anyone please give me a hand and tell me how to fix this? If I have to code something else to at least get him to animate while he is moving then so be it, I don't mind as long as it works in the end.
Thanks,
Publish Preview Is NOT What Is Supposed To Be .....
Sorry all I am very new to this and very frustrated...
I have tried to create a simple movie that rolls/fades
the letters in and then they should blow apart...
I see what I intend within flash on the workspace...
but when I preview and or publish it doesn't work correctly...
argggggg..
Any help is appreciated ....
I have attached a copy of the file
thanks
Echo4Bravo
Animation Not Playing When It's Supposed To... :(
http://www.matthewcorway.com/interface.fla
I'm working with this file, I've so far gotten my interface top to work how I want it to but I can't get the little man to animate when someone mouses over a button.
If you press the LEFT or RIGHT arrows he will animate properly but if instead you use your mouse and go over a button. It will assign a variable a direction and then it is supposed to tell the man to animate but it doesn't work.
Can anyone please give me a hand and tell me how to fix this? If I have to code something else to at least get him to animate while he is moving then so be it, I don't mind as long as it works in the end.
Thanks,
How The Heck Am I Supposed To Use SET MASK?
I need help.
I've tried, but don't understand set mask.
Is this true? It is a way to make one movie clip, mask another movie clip?
Do they have to be on the same layer? Can they be different layers?
I can't get the code to work.
It doesn't even appear that I have the option to select two seperate movie clips. It just gives me the parameter to fill in one clip.
What gives?
Thanks.
Problem With Images Mutating When The Are Not Supposed To.
I have noticed that whenever I put a motion behind and image ....like a moving ball to create a moving glow. The image shifts, morps, or nudges when the motion occurs. This has happened in more than one file. Can any one tell me what can be done to prevent this form happening.
TIA
Button Plays Animation When Not Supposed To Help
Hi,
When a scene first loads up, my button plays its roll OFF animation even if i dont scroll of with the mouse curser. any one hit me with some code to stop this from happening?
check it out at
www.hfchose.tk
(Click the button in the button right corner to miss out the intro sequence and go straight to the site with the button)
fanks very much!!
Am I Supposed To Be Able To Use Arrays In The VAR Box Of Dynamic Text?
Basically, I want to have a table of names, in an array, so I can sort them.
I set some dynamic text, and in their "Var" box in properties, I try to refer to the array. This does not work, and it only works when I have the "Var" property as regular variable names.
For example:
My array would be called "names". So in the Var box, I'd put "names[0]" in an effort to display the name in that position in the array. This does not work. Nothing gets displayed in the dynamic textboxes.
Using a regular variable "name0", I can get the name to appear. This works. But I do not want to do it this way, mainly because I don't want to have to transcribe each separate name in the list in my array into its own String variable. It would be a real mess, and it would be a lot cleaner just to have one array for everything.
Why are these dynamic textboxes being so stubborn? What can I do about this?
Checkbox Is Supposed To Activate Button
Hi board,
what could be the reason why my checkbox doesn't activate the button?
ActionScript Code:
var btTerms:Button;
function addNextSectionButton():Void {
// ---------------- <create button to go to the "terms section"> -----------------------\
btTerms = _global.mcCard.createClassObject(Button, "btTerms", 10);
this.onEnterFrame = function() {
delete this.onEnterFrame;
btTerms.label = "Enter your contact details.";
btTerms.enabled = false;
btTerms._width = 270;
btTerms._x = 370; //(_global.mcCard._width - _global.mcCard.btTerms._width)-5;
btTerms._y = 341; //(_global.mcCard._height - _global.mcCard.btTerms._height)-5;
// Event Handler for Terms
btTerms.onRelease = function() {
_global.mcCard.destroyObject("btTerms");
_global.mcCard.gotoAndStop('form');
};
// ---------------- </create button to go to the next section> ------------------------- \
};
}
function addTermCheckBox():Void {
cbTestTerms = _global.mcCard.createClassObject(mx.controls.CheckBox, "cbTestTerms", this.getNextHighestDepth());
cbTestTerms.selected = false;
cbTestTerms._x = 370;
cbTestTerms._y = 320;
tfAcceptTerms = _global.mcCard.createTextField("tfAcceptTerms", 100, 385, 315, 300, 30);
tfAcceptTerms.htmlText = "I agree to the terms and conditions.";
}
// Create handler for checkBox event.
function checkboxHandler(evt_obj:Object):Void {
btTerms.enabled = evt_obj.target.selected;
}
cbTestTerms.addEventListener("click", checkboxHandler);
These Buttons Aren't SUPPOSED To Toggle
Hi there!
I could use some help...
the link: http://www.mc2ads.com/chapelhillshow
&
click "view show"
Only the first button (JCPenney - Women) is active. Once you click on that link, some thumbnails load at the button of the picture. If you click on one of them, it swaps out the picture (actually it takes you to a labelled frame that has the different picture). Problem is, that if you click the same thumbnail again instead of just going to the same spot, it goes the the next labelled frame. So it shows you a different picture instead of the one it is supposed to show.
The actions on the buttons read:
on (release) {
_root.mainpicholder.gotoAndPlay("jcW");
}
and there is a stop action at each of the labeled frames.
Any idea why this is being goofy??
Thanks!
Scripting Is Supposed Flash Movie Much Cleaner
Scripting is supposed flash movie much cleaner, there should be a straight forward way to do this.
the example we can call "test.swf"
the movie clip we will call "fade" which resides inside the library
"fade" extends over 50 frames the first 30 have a snazzy animation upon a mouse click on a button in the main menu.
I would like to use this movie clip again just starting at frame 30. My question is can you reference a frame label inside the "fade" clip from the "test.swf?"
Note tell target is usefull by adding a ../ script you can exit a movie clip. Can you preform this code to enter in a clip?
Much thanks
aspiring asssstronaught
SOMEBODY HELP, ITS SUPPOSED TO WORK, BUT IT DOESNT _root.target Help
Hi, thanks for looking at my thread and helping me
i got this actionscript to do this after posting a previous message requiring help with that.:
this is the script for the button 'New'
on(release) {
_root.target="sceneB";
_root.play();
}
the timeline is stopped, and when this button is pressed then it will play to the last frame in the scene where there is this actionscript:
gotoAndplay(_root.target);
it then goes to the scene for 'new' and to the frame which is labelled 'sceneB'
i have many buttons all corresponding to their own scenes, with similar scripts.
This script works fine in the first scene, but in the target scene, if i click on another button to go to a different scene then it does not work properely, but instead the buttons have this effect:
the 'home' button which should return to the first scene restarts the current scene.
all the other buttons which should go to different scenes, just go to the first scene, 'home' (frame label 'sceneA').
i do not understand why this is happening as the script in all the scenes are th same.
[F8] Button Not Working - Supposed To Go To Specific Frame
This issue is driving me mad - can someone PLEASE help me out???
Here is the issue, I have a button in frame 1, that when pressed should go to frame 2, but it doesnt. I think I coded it right, but I cant figure this out. I have attached the fla so could someone please let me know how I fudged this up??? The button I refer to is "music" in frame 1
Here is the fla:
http://www.yousendit.com/download/b...TeFVOMUEwTVE9PQ
Movieclip Supposed To Update MySQL Database
hi,
i am having a flash file that shows an advertisment.
Each time 2 products are visible, along with their respective image and price.
To mainain the add i have connected it with a mySQL database via PHP.
each product has its own row, identified by id=1 or id=2.
Everything works fine, exept for the fact that i seem unable to update the second product. (only the second, the first works fine!)
to update the add i have created a little form inside an mc. the data for the second product is filled into the form correctly, but when i press enter it does not update the mySQL.
I really do not understand this, since it is the same for both products, except for the id.
But why does this not work? i have checked the id's and they are correct.
Honestly i do not understand this, please help!
thanks!
Looping Functions That Aren't Supposed To Loop
I have run into this more than once and have never solved it. I can't be the only one. I have a number of functions in a script (over 600 line) and the one I just added, for some reason loops through itself about 1 and 1/2 times. The other times I have had this same issue, they did the exact same thing, looped about 1 and 1/2 time then just stopped. When it reaches the end, it just cycles back to the top and plays again.
I placed traces after just about every line in an effort to see what it causing it. I can "watch" it play - via the trace outputs - but can't see any reason for it. Is there a way to put something like a "stop();" at the end of a script or something?
This is very problematic, as you can well imagine!
Has anyone else experienced this and how do I troubleshoot it!
Border Around Flash Image In Table, Not Supposed To Be There
On this page:
http://www.techartisans.net/speedMi....php?flash=true
you will find a table which includes one flash image. For some reason the flash image appears a pixel or two smaller than the table cell it is in, and so there is a dark blue border around it (it was a white border until I set the background color of the flash to dark blue). The cell is 326 pixels in height, and colspan=2 so it never actually says it is 360 wide, but it is. The flash image is also 360w x 326h.
Any ideas why this might be happening? I played around with adjusting the size of the flash but it didn't change much, just made the border slightly skinnier.
Thanks, Emily
For Dynamic Text, Are Arrays Supposed To Be Usable In The Var Box Of Properties?
I can't get it to work, unless I'm simply constructing my arrays wrong.
What is the case here?
Basically, none of the text is appearing in my Dynamic Textbox. I've embedded the necessary glyphs.
I also have the text nested in stuff, which I've taken care of already in the Var box. Also, the object that the text is nested in is rotating. I read in a few topics that rotating dynamic text makes it disappear on people. Is this true?
Dynamic Bitmap-smoothed Images Are Not Showing Up When Supposed To :((
Hello everyone,
My team has just launched a new website called Greetingflix.com. It is basically a website where you can create moving greetingcards with your own uploaded user photos.
It is still in its early beta testing stages. We are very close to perfecting it all, however for some odd reason, during the movie playback, sometimes user photos will not appear on the stage when they are supposed to. Either it will play a few 'blank' frames before the photo finally appears, or it will not display the photos at ALL until the playhead has reached the end and the user has clicked the play button a second time. It is really odd behavior and I'm sure someone out there has got to be experiencing the same problems..
You can view it in action here:
http://www.greetingflix.com/Greeting...873398fdljsdfj
This problem has been really hard to fix, because it will play PERFECTLY in some browsers. If you view the link above, you may not even see the problem I am experiencing.
If you have gotten this far, thank you for reading. I'm trying to do as little explaining as possible to avoid confusion, yet at the same time, give enough history and background to help solve this issue.
With that said, I am thinking that this particular problem began after we solved the issue of loading dynamic images that were *smooth*. If anyone has dealt with trying to load dynamic images and tried to scale them without that nasty 'inchworm effect', you'll know what I'm talking about. In order to load smoothed dynamic pictures, you need to re-draw the bitmap with ActionScript.
Which leads to my current issue. Now my smoothed dynamic images don't show up sometimes when they need to. It really takes away from the emotion and flow that we are trying to achieve with these movies.
Here is the code I am using to load these "re-drawn smooth" bitmap images:
ActionScript Code:
fileExists=new LoadVars();
fileExists._parent=this;
fileExists.onLoad=function(success)
{
//success is true if the file exists, false if it doesnt
if(success)
{
//the file exists
var nm=this._parent.createEmptyMovieClip("swfHolder",1); //so create a movieclip
nm.loadMovie(_root.fileList[0]) // fileList[0] represent first image. similarly 2nd and 3rd images fileList[1]
// and fileList[2] respectively and so on.
}
}
import flash.display.*;
function loadBitmapSmoothed(url:String, target:MovieClip) {
// Create a movie clip which will contain our unsmoothed bitmap
var bmc:MovieClip = target.createEmptyMovieClip("bmc",target.getNextHighestDepth());
// Create a listener which will notify us when the bitmap loaded successfully
var listener:Object = new Object();
// Track the target
listener.tmc = target;
// If the bitmap loaded successfully we redraw the movie into
// a BitmapData object and then attach that BitmapData to the target
// movie clip with the smoothing flag turned on.
listener.onLoadInit = function(mc:MovieClip) {
mc._visible = false;
var bitmap:BitmapData = new BitmapData(mc._width, mc._height, true);
this.tmc.attachBitmap(bitmap, this.tmc.getNextHighestDepth(),"auto", true);
bitmap.draw(mc);
};
// Do it, load the bitmap now
var loader:MovieClipLoader = new MovieClipLoader();
loader.addListener(listener);
loader.loadClip(url, bmc);
}
// Sample code
createEmptyMovieClip("mc1", getNextHighestDepth());
mc1.createEmptyMovieClip("mc", mc1.getNextHighestDepth());
loadBitmapSmoothed(_root.fileList[0], mc1.mc);
mc1.onEnterFrame = function() {
// Ugly, but we are not using a MovieClipLoader for the unsmoothed case
mc1.mc._x = 0;
mc1.mc._y = 0;
}
But this code is causing an irritating 'delay' when my images are supposed to be displayed on the stage.
Is there any way I can maybe check to see that the bitmap has been drawn before advancing to the next frame in the timeline?
Again, thank you for reading. Hopefully this all makes sense. And hopefully you can see the problem I'm having since, as I mentioned before, it will not occur on some operating systems/browsers..
Thank you very much for any help!!!!
This Site Is Supposed To Use Audio And Text Scrolling But Here Is The Tricky Part.
Hey everyone,
Im working on a website that is supposed to be a training center for nurses. As you can see by the screenshot there is a menu that consists of a whole bunch of different sections. When they click on a section in the case of the screenshot its section three it loads the flash movie that is for that section. Now this is what im having trouble with their is a text scroller and a audio clip that are supposed to match eachother perfectly. So everything in the text scroller appears as the girl is reading it. Its supposed to do all this while giving the person the option to rewind. The only way i can think to make it rewind and both of those to stay in sync is to take the Audio file which is about 15 min long and split it into a whole bunch of audio files and make it so that when they click back it just goes to the audio file before and so on. I think that should work but it seems like a needless pain if anyone can offer any suggestions.
Chris
Small To Large To Small In Actionscript
Say I wanted an "a" to go from 100 xscale/yscale to 200 then back again as in normal tweening, how would I do this in actionscript? Here is what I thought of but didn't work:
if(this._xscale<>200 and x<>1){
this._xscale+=5
this._yscale+=5
}
}else{
x=1
}
if(x==1 and this._xscale>100){
this._xscale-=5
this._yscale-=5
}
Am I Blind..? Small Small Bugg But Where..
maybe i´ve got my eyes in my ass but I can´t see where it goes wrong...
works fine in flashplayer 6 but not 7 & 8
onClipEvent (enterFrame) {
loading = this.getBytesLoaded();
total = this.getBytesTotal();
percent -= (percent-((loading/total)*100))*.25;
per = int(percent);
percentage = per+"%";
loadBar._width = per;
if (percent>99) {
_parent.gotoAndStop(2);
}
}
somebody?
tnx
OK, I Guess I'll Try Again......
I guess my post that i posted yesterday was deleted or moved so i guess i'll try again with a little more details.
I read a tutorial on how to make a feedback form. Now, i got it all set up and added a preloader and all and have all the action script set up but i don't know how to create a perl file to run the rest of my script. My flash movie sends the info that the user types in to a perl file and the perl file is supposed to send it to my email. I don't know how to create perl or use cgi yet. I only understand the basic consept of cgi/Perl, not the language.
I am using Flash 5 too if that helps. If anyone could help it would be more than appreciated. To take a look at the movie, go to http://www.geocities.com/reterdz . If you really want to help you could download the movie, http://www.geocities.com/reterdz/download/tut.fla , look at what i have done and see if you can make a perl file that will work.
Another thing i was to do with this movie is make a simple error message so that if a field is left blank, it will send you to the error message frame in the Thank you scene instead of the thank you message frame. The message just has to say "orry, you need to fill out all the information. Click "here" to return to the form." then make "here" a different color and make it a link which will send you back to the form on the scene "form".
One more thing. I don't want anyone navigating through the movie without using my navigation in the movie itself. How can i get rid of the forward, back, options when you right click in the movie? Or how can i make it so that they don't work. I tried making new scenes and all but i don't know what else to do. Please help. I'm desperate.
Peace
flash Rulez
P.S. Please don't move my post anymore . Can't fine the post i posted yesterday
Guess What......
I'm stuck with Email from flash....
I've downloaded every FLA I can find, I Tryed every possible option and still it don't work...
I can't even get HTML form to email me....
I am DUMB !!!
Please have pitty on me and help....
I Guess No One Can Help?
I posted here about a problem I am having with Flash, but only got one response.
I am not sure if thats because, no one cares or no one knows.
Either way I could realy use some help.
Does anyone one if there is a maximum number of layers with motion tweens assigned to them on the stage together at one time?
Sounds wierd I know, but my original post will help:
orignal thread
Thanks if you can offer any help...
I Guess No One Knows How To Do This...?
Hello, thanks to everyone for all the help. you guys have been a big help! I have another problem. I'm very new to this, and I'm trying to work with an .XML playlist. I actually need it to do a lot of things that I can't figure out how to do.. I'm sure there are tons of you out there who know exactly what to do.. http://www.kirupa.com/web/xml/examples/MP3playlist.htm I'm tried this, and it works, only I can't load album artwork using this. I also want to add a few other data fields, I would like when you click on the song title to play the audio track, but also show the Artist name, the song title, the artist record label, a link to the artists website and a short section for comments from the artist about the song. Is it possible to do something like this, using this tutorial? again, I'm so new that I can't figure this out.. I'd appreciate the help! thanks How would I add an image to this? I want to display album artwork in the audio player.
I Guess Noone Knows The Answer
I know you're not all ammatures here..
So somone please help me out..
I need to know how to set an action on a button so it will run a differant program (exe file)
Can someone PLEASE help?
I Guess I Need To Reword This....
What i'm wanting to do is create a menu system out of an image. The image is going to be composed of 4 - 5 images in a row. I know how to make buttons and all that jaz. But I know everyone has seen the menu systems in which when you rollover them they move from left to right. This is basically what I wish to do. The only difference being... I dont want it to go but so far and I only want it to happen on a mouse event/ mouse down. The mouse event thing is no problem but I don't know what code to put on the button to get the images to slide to a certain position. I'm going to try and find an example to refer to but till then please for the love of god help me out here. lol
PAT
Toughest One I Guess
hi guys,
i had posted similar one in another section too, but i guess it was the wrong one to place, anyway this time i have a very challenging job to do, and i have no clue where and how to begin, let me explain:
its gonna be a clothing and accessories site, where the user will be given choice of his color or could be predetermined color or both, the cloth is gonna have a texture which will not change with the change of color like supposing, a shirt has folds with shadows, this will stay with the change in color, before i say anything, have a look at:
http://www.truespectra.com/demo/suitandtie/
amazing isint it, but i believe it can be done in flash too, am i right?
and yes, the main problem is that this will be admin based too, like he scans a models image saves as jpeg or gif or whatever and marks some points saying that this area is for suit or tie or shirt and specify the colors,(i am really confused myself) which inturn will reflect on the website and the normal user will be able to make selections of colors etc,
like another image has a model with a pullover and a trouser only, and he can change the color of these two only, so obviously he will be able to see only two color select options.
but the question is how and where do i begin,
this is going to take time i know,
if u have seen a site like what i need, let me know !
waiting for someone to reply
thanx
rex
|