Review & Help This Function?
Situation: I've got a bunch of empty boxes. At the right moment, this function populates them. Thing is... it takes like 10-13 seconds before the images show, and then they show all at once. Questions: Is there a way to force them to display after each loads? If not, any suggestions as to how I may accomplish this? Or, notice anything else hideously wrong? PHP Code:
function folioOn() { if (_root.folioLoad == "on") { } else { for (var i = 0; i<_root.imgArray.length; ++i) { imgVar = ("images/"+_root.imgArray[i]); loadMovie(imgVar, ("_root.nameGame.risor.myName.folio.pb"+i+".placeHolder")); _root.folioLoad = "on"; } }}
ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 06-03-2007, 12:37 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Please Review
hi
i am 15 yrs old and have jus done my first flash site
please review it and sign the guestbook
url: http://www.geocities.com/sims_web/sims
[Edited by sameerbuch13 on 01-01-2002 at 06:09 AM]
A Review Please?
ok this is a sample script im working with to calculate if the amounts of the two variables match. one is a dynamic text loaded from an outside .txt file, the other is an input text field.
for some reason the test environment sends me directly to the else statement no matter what i enter in the input field; whether it's less or more than the owed amount. debugger doesnt give me any errors... so im at a loss.
oh btw this is a lesson in the "flash mx 2004- actionscript" book, one of the training fdrom the source series.
wondering if the fact that i am using flash 8 pro. has anything to do with my troubles?
anyway any feedback would be appreciated, thanks in advance!
on (press) {
var amountPaid:Number = Number(paid_txt.text);
var amountOwed:Number = Number(owed_txt.text);
if (isNaN(amountPaid)) {
message_txt.text = "What you entered is not a proper dollar amount. Please try again.";
} else if (amountPaid<amountOwed) {
var difference:Number = amountOwed-AmountPaid;
stamp_mc.gotoAndStop("underpaid");
message_txt.text = "You underpaid your bill by"+difference+" dollars.";
} else if (amountPaid>amountOwed) {
var difference:Number = amountPaid-amountOwed;
stamp_mc.gotoAndStop("overpaid");
message_txt.text = "You overpaid your bill by"+difference+" dollars.";
} else {
stamp_mc.gotoAndStop("paid_in_full");
message_txt.text = "You have paid your bill in full.";
}
}
on (release) {
stamp_mc.gotoAndStop("none");
message_txt.text = "";
}
Please Review My Xml
Hello I am trying to now implement xml into my flash actioscript website and kinda put my self in a crash course in learning it. I have found though that the books I am reading and the flash ac tutorials are kinda confusing. I was wondering if someone could review my xml code so that I can then use the xmlconnector to attach things.
I have a question too.
I would like to upload all the xml, and images onto my website, how does the xml connector know were my files are on the web?
here is the xml that i need to see if it will write correctly in the xml connector.
<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet type="text/css" href=bluelikethecolor.css"?>
<About>
<Aboutcompany>
Hello and thank you for your interest in my company. I am excited to have this website up to showcase my abilities so that you can see how we can contribute to your success. I have been designing professionaly since 1998 and enjoy all aspects of design. From assisting in corporate identity packages, to designing flash websites for people to use.
</Aboutcompany>
<Experience>
I have worked for several companies and have been involved in consultations to help people create truly amazing pieces for companies. Here is a small list of the companies I have worked for.
The Employment Guide: shortly after recieving my design certification back in 1998-1999. I created billboard ads for countless companies for prospecting employees. I also created most of all the special effects or logos for the Raleigh division of the company.
DaeCreative/GoCuenca 2000-present: Because of recieving numerous compliments for my work, and knowing and networking with the right people, I was able to open my own webdesign company called DaeCreative. I created a very large number of websites and recieved contracts to design for Schools, Resteraunts, and even hospitals. However my preferance now is not designing for large companies rather the small businesses. For them I feel I can create even better works as they can focus more so on design then vast amounts of content. Here is some of the clients for Daecreative.AWB, Spondylus, Medstay, Raliegh Community Hospital, and many more which of course you can see in my portfolio some of which being for Gocuenca my design company in Ecuador South America of which I created over 20 websites in the year 2005.
</Experience>
<Resume>
<Name>David Blue</Name>
<Address>701 Buck Jones Rd
Raleigh NC 27606</Address>
<mobile>919-605-8701</mobile>
Known Programs: Proficient: Flash, Fireworks, Photoshop, Illustrator, Quarkxpress, Dreamweaver, Indesign, Corel draw, Microsoft Publisher, Word, Powerpoint.
Learning: xml, css, actionscript, Premier.
</Resume>
</About>
and here is my website were it will all be attached too www.bluelikethecolor.com
and here is the code for that website:
//mcAbout rollover
var mcAbout:MovieClip
mcAbout.onRollOver = function(){
mcAbout.gotoAndPlay("rollover");
}
mcAbout.onRollOut = function(){
mcAbout.gotoAndPlay("rollout");
}
//mcEmail
var mcEmail:MovieClip
mcEmail.onRollOver = function(){
mcEmail.gotoAndPlay("rollover");
}
mcEmail.onRollOut = function(){
mcEmail.gotoAndPlay("rollout");
}
var mcEmail:MovieClip
mcEmail.onMouseUp = function(){
gotoAndPlay(1)
}
//galleries
var mcGallery:MovieClip
mcGallery.onRollOver = function(){
mcGallery.gotoAndPlay("rollover");
}
mcGallery.onRollOut = function(){
mcGallery.gotoAndPlay("rollout");
}
var mcGallery:MovieClip
mcGallery.onMouseUp = function(){
gotoAndPlay(1)
}
//mcresume
var mcResume:MovieClip
mcResume.onRollOver = function(){
mcResume.gotoAndPlay("rollover");
}
mcResume.onRollOut = function(){
mcResume.gotoAndPlay("rollout");
}
var mcResume:MovieClip
mcResume.onMouseUp = function(){
_root.gotoAndPlay(1)
}
//drag again
var mcAbout:MovieClip;
mcAbout.onPress = function(){
startDrag("mcAbout");
}
mcAbout.onRelease = function(){
stopDrag();
}
var mcEmail:MovieClip;
mcEmail.onPress = function(){
startDrag("mcEmail");
}
mcEmail.onRelease = function(){
stopDrag();
}
var mcgallery:MovieClip;
mcGallery.onPress = function(){
startDrag("mcGallery");
}
mcGallery.onRelease = function(){
stopDrag();
}
as you can see when you roll over the icons popups appear with a menu. it is here were I wish to add the xml buttons too.
I will need to make this a little more intensive for example soon I will be adding 3 buttons going to my portfolio, so I wll need xml to also guard my .swf files, jpgs(thumbnails) and availability graphics. will I be able to do so with relative ease or no?
My website is not too big, i got the idea to use the xml connector from the total training dvd videos I have been using to teach me actionscript and it looked perfect for what I need.
Thanks for any and all help.
David
Please Review My Movie
Alright first thx for reading
This is my very first movie and first attempt at flash. Thank to all the good tutorials here
Special thx to Sir Yendor aka MarketTHISMedia
This movie is for a very special "friend" of mine. I really want her to love this movie.
I already got some feedback about it but the movie is almost complete now and i need EVEN MORE OPINIONS !
Please review it and take a little min to tell me what you think about it..should i add this..remove that...tweak this and that etc...
Everyone is welcome to look at it but If theres WOMEN on this board PLEASE in the name of GOD watch it and tell me what you think, how yu FEEL about it !
The movie is in french but ill include the english translation at the end of this topics for the fading text. PLease read it while watching
The movie is about 4.8 mb and the published html about 50k
The final movie will run on only one computer so i didnt include any loader or whatever it is called.
If it doesnt seem to work at first please be patient and let it open.
If one way or another doesnt work for you i suggest downloading the zip file which is very fast and easy.
The download speed of server is about 120 k per seconds so its should not take long to download.
ENUF talking here is the file
Downlaod the ZIP version of the SWF
-------------------
TRANSLATION:
The translation of fading text as they appear on the movie
Please forgive my poor translation skills ( the text sounds better on french) :
"Little Princess"
to Julie
from Dominic
(bush opening to revealed the house)
Once upon a time...a little princess
Coming from heaven came accross a little prince
Who fall in love with her from the first moment
She changed is universe
open is heart
and show him the true meaning of Love
Know little friend that you still represent a lot in my eyes
For all of that and even more.....
Thank you
Here is a little gift
Follow me...
Today a new star as rise
Cancer constellation
(cancer constellation fading in)
(new star flashing inside the constellation)
You star will keep shining
in the night sky as in my heart
until the end of time...
(house and ground fading out)
Someone special deserve a special gift
If only one person in the world deserve to have is name in the sky...its you
I suprised myself thinking that now
One of these night we might think about the same thing
at the same moment
looking at the same star
With all my wish
Merry x-mas Julie
Dominic
Dedicated to julie, the one i love
A very special friend
The best thing that ever happen in my lfe
The one i used to love, the one i love and the only one ill ever love
Dominic
End
Credit
Animation and drawing Dominic
Music Edgen
Special thx to Sir Yendor
Review Script
Can anyone see anything wrong with the scripts below?
The first part is on an MC's frame 1:
Code:
loadMovieNum("flash/preloader.swf", 1);
// hide enter btn
enter_btn._visible = false;
var imagesUrls = new Array();
for (i=1; i <= 10; i++) {
imagesUrls.push("images/loadback" + i + ".jpg");
}
trace(imagesUrls);
// function to make the background image random
imagesRndm = function() {
imagesMix = imagesUrls[Math.floor(Math.random() * imagesUrls.length)];
loadMovie(imagesMix, "loadback_mc");
loaderInterval = setInterval(loadChecker, 50);
}
function loadChecker() {
loading = loadback_mc.getBytesLoaded();
total = loadback_mc.getBytesTotal();
percent -= (percent-((loading/total)*100))*.25;
per = int(percent);
_level1.loadbar._width = per * 2;
if (percent > 99) {
unloadMovieNum (1);
loadback_mc._alpha = 100;
enter_btn._visible = true;
clearInterval(loaderInterval);
}
}
The 2nd part is on the following frame of the same MC (frame 2)
Code:
imagesRndm();
stop();
Here is the URL to the website running the code above:
http://www.LeedsKin.com
I've had some people tell me that nothing comes up and other people tell me that the enter button doesn't work. I've tested it locally and on the server and I haven't had any problems.
Please advise.
Thanks!!!
-Foochuck
Button Review
okay, im too lazy to loo through the tutorials cause the MX 04 Pro tutorials are way different from the ones i learned from(MX 5 or something) but, im trying to put a "PLay Again" button at the end of my movie but i cant put code in the Down frame on the button im using. so i put a movie clip in that and made the first frame goto frame 1. i was able to put the code in the movie clip, but it still didnt take me to frame 1. i did this same thing, except it navigated to my web site and it worked. also, i made a temporary button that says throughout the whole movie and made it goto the last frame(so i didnt have to watch the whole movie) using the same, movie clip inside of button, method and it didnt work. why will it navigate but not GoTo?
Book Review
hi!
i want to buy a book to increes my knowladge in actionscript,i heard that the colin moock actionscript for flash mx ,is a grate book.
maybe someone here can give me a recomendation about this book or another.
i want to start taking actionscript further,my level is really basic.
thank's
My Code For Review
Please, help me!!
I cannot figure out how to make a movie clip to disappear from the my stage after the user clicks other links. That movie clip keeps visible even after the user is on another label (and key frame) of the timeline.
I call this empty movie clip in a keyframe/label “skills”. This movie clips is empty and is there only to call other movie clips. However, once the user clicks on other links on the stage (going to other keyframe/label in the main timeline), my stage still shows that movie clip on stage, overlapping with the new info the user is on stage. I have already tried several methods to make the movie to disappear, such as set it invisible, unload it, or clean it. However, none of them worked. I don’t know what I am doing wrong… Any help? Suggestions? BTW, I am using Flash MX version.
Thanks.
Patricia
.........
Here is the code I used for review:
In the main movie I place an empty movieclip named preload. In the Actions layer, I added this code:
num = Math.floor(3*Math.random());
_root.preload.loadVariables("data0.txt");
stop();
On stage, I added Actionscript to the preload movieClip object , which is:
onClipEvent(data) {
//load the data and split it into an array
newMagnets = new Array();
newMagnets = dataString.split("|");
//initialize the variables
_root.magnetNumber = newMagnets.length;
_root.swap = _root.magnetNumber++;
for (i=0; i< newMagnets.length; i++) {
//check the number of characters in the array item
magnetLength = newMagnets[i].length;
//make the magnets
_root.attachMovie("magnet", "magnet"+i, i);
_root["magnet"+i].word = newMagnets[i];
// set the width of the magnet based on that information
_root["magnet"+i].MagnetImage._width = 11*magnetLength;
_root["magnet"+i].Invisible._width = 11*magnetLength;
//randomize the placement of the magnets
xcoord = Math.floor(550*Math.random()+200);
ycoord = Math.floor(300*Math.random()+20);
//set the magnet
if (xcoord < 400 || xcoord > 800){
xcoord = 400;
}
_root["magnet"+i]._y = ycoord;
_root["magnet"+i]._x = xcoord;
}
}
onClipEvent(enterFrame) {
_root.removeMovieClip();
}
Please Review My Site, Anyone, Thanks
Hi, how is everyone doing. I was just wondering if anyone had anytime to give a quick review to my sites, You can see them out at blackbirdsound.com. Im looking for feed back on layout, design/look, features and animation. If anyone has any suggestions of comments please email me of post a reply.
thanks for you time
chris
www.blackbirdsound.com
Code Review...
Greetings folks!
Pretty new at this actionscript thing and wanted to get some feedback if possible. I'm planning on building a quiz that is going to utilize drag/drop functionality. Playing around with some possible elements, this is some basic code I've come up with (not the final look at all...)
What I would like to know from you is this:
- How would you modify this code to make it perhaps less bulky?
- How would you apply this type of code to a quiz with multiple questions?
Thanks for any insight you can provide...
// Intialize Feedback movies
feedback_mc._visible = false;
ball_mc.onPress = function () {
this.startDrag();
this._alpha = 75;
};
ball_mc.onRelease = function () {
this.stopDrag();
var overlap:Boolean = this.hitTest(hitTest_mc);
if (overlap) {
ball_mc._visible = false;
info_txt.text = "Great job! You're so smart.";
feedback_mc.gotoAndStop(2);
correctAnswers();
tally();
}else{
hitTest_mc.gotoAndStop(2);
ball_mc.gotoAndStop(2);
feedback_mc._visible = true;
feedback_mc._x = 24;
feedback_mc._y = 145;
wrongAnswers();
tally();
}
};
// Answer tally functions
wrongAnswers = function () {
wrong = wrong + 1;
};
correctAnswers = function () {
correct = correct + 1;
score_mc.score_txt.text = correct;
};
tally = function () {
score_mc.tally_txt.text = (correct/10)*100 + "%";;
};
// Initialize Variables
var correct:Number = 0;
var wrong:Number = 0;
Tutorial Review
Hey all, I was trying to develop for the Red 5 server and became really frustrated with any instructions I could find on how to develop a server handler. Just wanted to see if anyone found this helpful...
Assuming you have Red 5, Eclipse, and JRE 1.6 or JDK 1.6 installed.
Creating Server-Side Java Application With Red 5
1. Create a new Java project, in Eclipse.
2. Delete 'src' folder and create a ‘WEB-INF’ folder with 2 more subfolders named 'src' and 'classes'.
3. Right click src folder then - Build path >> use as source folder.
4. Right click main project folder then - Properties >> Java build path >> Source tab and change default output folder to classes.
5. On the same options page select the Libraries tab and Add External Jar’s. Select the red5.jar located in the top level of Red 5.
6. Add a new class to your src folder; give it appropriate path and class names. ex: path -- com.math name -- Application
7. Enter the code for your server-side application in this class.
8. Navigate to Red 5 >> Doc >> Templates >> MyApp >> WEB-INF copy the four files into your newly created WEB-INF folder.
9. Refresh your project in eclipse so you can now see the four files.
10. Open red5-web.properties: change “myapp” to the new name you wish to call your project in your Red 5 webapps folder (we have not created this folder yet, chose a new name).
11. Open red5-web.xml: change the node Bean with ID 'web.handler' to the class path of your class you specified in step 6. ex: com.math.Application
12. Open web.xml: change the webAppRootKey node to the application name you chose in step 10.
13. Create a new folder under Red5 >> Webapps using the same name you pointed the XML files to.
14. Copy the WEB-INF folder from your workspace folder for this project into your newly created folder.
16. Restart the Red 5 Server and your program will be ready to use.
I guess I could include code for the Java App, as well as the AS code needed to make everything work, I just wanted to see if anyone thought this was of any use before I took more than 5 min writing it out.
Also I did everything w/o any eclipse plug-ins and just used flash for my AS editing, I don't really need code hints for AS2.
Can Someone Pls Review My Code?
I am trying to adapt the code from a Kirupa Tutorial to make a Sliding Menu (http://www.kirupa.com/developer/flash8/slidingMenu.htm)...
With the code below, I don't get any error message, but the slide just does not move. Doesn't twitch. LOL
Maybe someone can help me figure it out? Also I believe this should help other people as I saw there had been some previous requests for a converted code for that tutorial.
Thanks a zillion!!!
ActionScript Code:
var currentPosition:Number = contentHold.content1.x;
var startFlag:Boolean = false;
menuSlide = function (input:MovieClip) {
if (startFlag == false) {
this.addEventListener(Event.ENTER_FRAME,onEF);
startFlag = true;
var finalDestination:Number = input.x;
var distanceMoved:Number = 0;
var distanceToMove:Number = Math.abs(finalDestination-currentPosition);
var finalSpeed:Number = .3;
var currentSpeed:Number = 0;
var dir:Number = 1;
if (currentPosition<=finalDestination) {
dir = -1;
} else if (currentPosition>finalDestination) {
dir = 1;
}
function onEF(e:Event):void {
currentSpeed=Math.round(distanceToMove - distanceMoved + 1 * finalSpeed);
distanceMoved+= currentSpeed;
contentHold.x+= dir * currentSpeed;
if (Math.abs(distanceMoved - distanceToMove) <= 1) {
contentHold.x=maskMovie.x - currentPosition + dir * distanceToMove;
currentPosition=input.x;
startFlag=false;
this.removeEventListener(Event.ENTER_FRAME,onEF);
}
}
}
};
//-------------------------BUTTONS---------------------------------------------
b1.addEventListener(MouseEvent.CLICK, goslide2);
function goslide2(event:MouseEvent) {
menuSlide(contentHold.content1);
}
b2.addEventListener(MouseEvent.CLICK, goslide3);
function goslide3(event:MouseEvent) {
menuSlide(contentHold.content2);
}
b3.addEventListener(MouseEvent.CLICK, goslide4);
function goslide4(event:MouseEvent) {
menuSlide(contentHold.content3);
}
b4.addEventListener(MouseEvent.CLICK, goslide5);
function goslide5(event:MouseEvent) {
menuSlide(contentHold.content4);
}
b5.addEventListener(MouseEvent.CLICK, goslide6);
function goslide6(event:MouseEvent) {
menuSlide(contentHold.content5);
}
XML Review Database?
Hey all,
More and more, I've been tying to use XML in my website to make things easier to update. At the same time I'm also trying more and more to learn about XML.
I have a review website www.blurbreviews.co.uk which I am about to do a complete revamp of, and I was wandering, can anyone show me how to create an XML method of listing reviews?
Specifically, I need like a table (possibly a fancy/nice-looking one?) with 'Name of reviewed item' 'Author' 'Date' 'Rating' etc and a button to view the review.
The main reason I want to use XMl is obviously because I hated having to update the FLA/SWF file everytime I added a review.
Thanks in advance for any time/help,
Regards
Blurb
Can Someone Please Review My Code?
I am trying to adapt the code from a Kirupa Tutorial to make a Sliding Menu (http://www.kirupa.com/developer/flash8/slidingMenu.htm)...
With the code below, I don't get any error message, but the slide just does not move. Doesn't twitch. LOL
Maybe someone can help me figure it out? Also I believe this should help other people as I saw there had been some previous requests for a converted code for that tutorial.
Thanks a zillion!!!
Quote:
var currentPosition:Number = contentHold.content1.x;
var startFlag:Boolean = false;
menuSlide = function (input:MovieClip) {
if (startFlag == false) {
this.addEventListener(Event.ENTER_FRAME,onEF);
startFlag = true;
var finalDestination:Number = input.x;
var distanceMoved:Number = 0;
var distanceToMove:Number = Math.abs(finalDestination-currentPosition);
var finalSpeed:Number = .3;
var currentSpeed:Number = 0;
var dir:Number = 1;
if (currentPosition<=finalDestination) {
dir = -1;
} else if (currentPosition>finalDestination) {
dir = 1;
}
function onEF(e:Event):void {
currentSpeed=Math.round(distanceToMove - distanceMoved + 1 * finalSpeed);
distanceMoved+= currentSpeed;
contentHold.x+= dir * currentSpeed;
if (Math.abs(distanceMoved - distanceToMove) <= 1) {
contentHold.x=maskMovie.x - currentPosition + dir * distanceToMove;
currentPosition=input.x;
startFlag=false;
this.removeEventListener(Event.ENTER_FRAME,onEF);
}
}
}
};
//-------------------------BUTTONS---------------------------------------------
b1.addEventListener(MouseEvent.CLICK, goslide2);
function goslide2(event:MouseEvent) {
menuSlide(contentHold.content1);
}
b2.addEventListener(MouseEvent.CLICK, goslide3);
function goslide3(event:MouseEvent) {
menuSlide(contentHold.content2);
}
b3.addEventListener(MouseEvent.CLICK, goslide4);
function goslide4(event:MouseEvent) {
menuSlide(contentHold.content3);
}
b4.addEventListener(MouseEvent.CLICK, goslide5);
function goslide5(event:MouseEvent) {
menuSlide(contentHold.content4);
}
b5.addEventListener(MouseEvent.CLICK, goslide6);
function goslide6(event:MouseEvent) {
menuSlide(contentHold.content5);
}
AS3 Class Review
Hi All
more or less new to this forum and new to AS3.
I started my first class tonight, and had some problems,
but figured all of them out. Everything works like I want.
But as it is my first class I wanted to ask if someone
might point out if I did some basic mistakes, or if there
are places for improvement.
Thank you for your time it is highly appreciated.
H.2.O
ActionScript Code:
package { import flash.display.MovieClip; import flash.display.Sprite; import flash.display.Graphics; import flash.events.TimerEvent; import flash.utils.Timer; public class MainTest extends Sprite { //basic configuration var _rows:uint = 10; var _cols:uint = 10; var _rectwidth:uint = 30; var _rectheight:uint = 20; var _offsetleft:int = 30; var _offsettop:int = 30; //helperVars var _xpoint:uint = 0; var _ypoint:uint = 0; var _rand:uint; var _myTimer:Timer = new Timer(25); var _arrCards:Array = new Array(); var cont:MovieClip = new MovieClip; var sp:Sprite; public function MainTest() { init(); _myTimer.addEventListener(TimerEvent.TIMER,onTime); _myTimer.start(); } private function init():void{ addChild(cont); cont.x = _offsetleft; cont.y = _offsettop; for(var arr_ = 0; arr_ < _rows * _cols;arr_++){ _arrCards[arr_] = new Array(arr_%_cols,Math.floor(arr_/_cols)); } } private function onTime(e:TimerEvent):void{ _rand = uint(Math.random() * _arrCards.length-1); trace(_rand); createRect(_rand); _arrCards.splice(_rand,1); if(_arrCards.length == 0){ _myTimer.removeEventListener(TimerEvent.TIMER,onTime); } } private function createRect(arrIndex:uint):void{ sp = new Sprite(); with(sp.graphics){ lineStyle(1,0xCCCCCC); beginFill(0x1188FF); drawRect(0,0,_rectwidth,_rectheight); endFill(); }; sp.x = _arrCards[arrIndex][0] * _rectwidth; sp.y = _arrCards[arrIndex][1] * _rectheight; sp.name = "card" + (_arrCards[arrIndex][0] * 10 + _arrCards[arrIndex][1]); cont.addChild(sp); } }}
XML Review Database?
Hey all,
More and more, I've been tying to use XML in my website to make things easier to update. At the same time I'm also trying more and more to learn about XML.
I have a review website www.blurbreviews.co.uk which I am about to do a complete revamp of, and I was wandering, can anyone show me how to create an XML method of listing reviews?
Specifically, I need like a table (possibly a fancy/nice-looking one?) with 'Name of reviewed item' 'Author' 'Date' 'Rating' etc and a button to view the review.
The main reason I want to use XMl is obviously because I hated having to update the FLA/SWF file everytime I added a review.
Thanks in advance for any time/help,
Regards
Blurb
Review Idea
just a thought but when u do ur reviews why not get opinions on the progs from other people who use it and things and how they feel it cvompares to older versions etc
-Tom
Flash Review Please
My site is almoust finnished
I know this isn't the right plase to put this question, but what do you think about my flash?
site:reuninet.ro
Site Review
hi I just finished my first Flash site and was hoping a few of u guys could find the time to check it out and give me some feedback. its at www.anthonywalsh.com
Site Review
Hi just wanted to some feedback on photographers site i did (its my second flash site!!) Thanks to firegambler for helping with the last bit)
*r the photos clear and sharp enough
*download time
*overall style
*easy to navigate,different browsers,etc
Thanks for the input
Software Review
Anyone familiar with virtual tour software?? COuld you please take a look at this and tell me what you think??
http://www.vrinspection.com
Thanks much
1st Site Ever, Please Review
Well, finally found some time to mess around with Flash (I call it mess around 'cause I've never really built much of anything in Flash, so I'm really unfamiliar with it). It's a website about Japanese people looking to learn English at Yokota Air Base, Japan. I use it basically to answer all the questions that students tend to have when they first start learning English at Yokota, with me. I've been teaching English for 6 years now... It's not bad business here in Japan, and being at Yokota helps a lot. You'd be surprised how many Japanese would like a chance to get inside Yokota just to see what it's like.
Anyway, more about the flash involved. It's one swf, loading content via external text files (in unicode, I've got some Japanese in there as well). The 'buttons' are movie clips that I've added the code to handle onRollOver and onRollOut (I've read that's better than actually using the button clip type). The dynamically loaded text is html encoded and styled using CSS. The entire 'site' is one frame, with about 6 layers (mainly as a way to separate the various UI elements (and to lock layers to help in managing things while editing).
The header image is more or less a placeholder. But, it does depict basically what I have in mind for an animation. I want the "to learn English at Yokota?" text to 'fly' in from the top, with a blurred streak following it (you'll see what I mean when you see the header).
The text fades in whenever text is loaded (when the site loads and whenever a button is clicked). To accomplish this, I added a white square over the content area, and in the onLoad event of the LoadVars object, I do an onEnterFrame loop to reduce the _alpha of the white square.
Basically, I'm just asking for a simple review. If you have suggestions, I'd appreciate it. I'll be asking more questions to clear up some things that I'm curious about, but I'll do that later.
The URL is: www.crypticpixel.com/English
Code Review
Would someone try this code out and tell me if it works.
I can't get the movieclips to show up.
ActionScript Code:
package {
import flash.display.Sprite;
import flash.display.MovieClip;
import flash.events.MouseEvent;
public class ArrayTest extends Sprite {
private var _testArray:Array = new Array("one", "two", "three");
public function ArrayTest() {
_testArray.forEach(addCircle);
}
private function addCircle(element:String, index:int, array:Array):void {
var circle_mc:MovieClip = new MovieClip();
circle_mc.graphics.beginFill(0xFFFFFF);
circle_mc.graphics.drawCircle(0, 0, 25);
circle_mc.graphics.endFill();
circle_mc.dynProperty = element;
circle_mc.buttonMode = true;
circle_mc.x = (index * 60) + 50;
circle_mc.y = 60;
circle_mc.addEventListener(MouseEvent.CLICK, onClick);
addChild(circle_mc);
}
private function onClick(evt:MouseEvent):void {
trace (evt.target.dynProperty);
}
}
}
3 Tries/go Back And Review Quiz
I really need help (and would appreciate any given) putting all the scripting together to make the following work:
I am tring to develop a quiz where the viewer gets three tries at a question and if he/she gets it wrong three times, they have to go back and review the section the question is referring to. I have created all of the elements; the movie clip with the animated question (Q1Clip), the input text box (Q1) for the viewer to enter their answer, a check answer button (answer1) that execute the script that checks the answer and gives feedback on correct or incorrect.
What I can not figure out is how to do the looping. I want it that when: they have click the "check answer" button (answer1) three times to see if they have gotten the answer right, they have gotten it wrong for the third time, they are sent to a new frame (review1) that tells them they have to go back and review the referred section and gives them a button to do so. This is like having a enter screen where the user has to enter a password and gets three tries to get their password right or gets kicked out of the site.
I understand bits and pieces of the scripting needed to make this work, but need help to get it all to connect and work together. I would appreciate any help I can get on this subject. Thank you in advance. Zeee
Flash Animation Review
www.dec.cc
Anyone......please critique this site....tell me whats good and BAD.
I need opinions.
Thanks
Site Review Please 3D Design
I put this in the site review section but no one is there.
www.cruxdigital.com
This is the site im working on fr my business and im just looking for opinions on the functionality and general look. As content goes, I havnt loaded most of it on so its pretty bare... thats all to come.
Thanks in advance for the constructive critisism.
Full, Indepth CS4 Review
Just posted what is probably the most honest and thorough review of Flash CS4 there is with photos and video. Read it if you're on the fence about spending the upgrade fee and let me know if I missed anything you're interested in knowing.
http://mark2000.com/?p=302
Please Review My Action Script
Hey guys, I just finished creating my new movie. I know it's really crude, but hey, I'm a newbie!
Can you guys please check out the ActionScript in my movie, and tell me if there's anything wrong or soemthing that I could use to make it better?
I don't want to give out the source code because I want you guys to tell me what it's like from the viewpoint of a normal user. If you really want it though, just PM me. I'm sure most of you can decompile it anyway.
It's called the Deathalizer. Contains gore.
http://www.geocities.com/ezupload04/deathalizer.html
Thanks a lot!
New Site...self Taught..please Review
Hello,
Recently I put up a site that i built for my dad at www.chesterfieldsbronzes.com. I learned the basics at lynda.com but there is no troubleshooting or anything on the site. I have discovered that my site has problems in netscape and i don't understand how to fix them.
I have not experienced any problems with IE, however when i come to my front page in netscape 7.2 my flash intro is not embedded. Then when i click on a secondary link at the bottom of the page to continue, it brings up my site but it is 1/10th the normal size.
Please view first in IE so the problems are apparent. I built the site in Flash mx yet exported as flash 5. Any help would be much appreciated.
Sincerely,
Mike Fields
precisionart@hotmail.com
www.chesterfieldsbronzes.com
Using Screens & Book Review
Ahoy,
Was wondering if any developers out there are using screens when they make Flash programs?
I took a class and bought a book, "Flash MX Professional 2004 Application Development."
I highly un-recommend it. I strongly dis-encourage anybody from buying it, at least at full price. Maybe if you had some spare change in your pocket…maybe if they were giving away a cup of soup and a tee shirt.
There are many mistakes in the book, and one major, glaring, and wholly unacknowledged mistake in Chapter 12 that took me hours of searching on the internet to find a solution.
There is no errata to speak of, and I think it's criminal that this book is being sold to people when, I'm sure, the publishers are aware of the errors.
I did learn a few things, true, but...at quite a cost.
So does anybody here dabble in screens and forms, or are we all key-framers?
Thanks.
Flash Site Review B4 SEO
Hi guys, im new here - not an expert on flash actionscript, but have studied in graphic design, and would like to launch webdesign firm.
Look for the essentials:
I recently re-developed a site: http://leflashweb.co.uk
And would like advice about how it comes across visually, and also if it is technically sound from specialists and amateurs alike. Be as objective as possible as I am about to have it SEO’d: e.g white box thingy...etc
And for:
#Graphics
#Message
#Code
#Function
I can return the favour for your site too. Thank you.
Flash Site Review B4 SEO
Hi guys, im new here - not an expert on flash actionscript, but have studied in graphic design, and would like to launch webdesign firm.
Look for the essentials:
I recently re-developed a site: http://leflashweb.co.uk
And would like advice about how it comes across visually, and also if it is technically sound from specialists and amateurs alike. Be as objective as possible as I am about to have it SEO’d: e.g white box thingy...etc
And for:
#Graphics
#Message
#Code
#Function
I can return the favour for your site too. Thank you.
Flash Site Review B4 SEO
Hi guys, im new here - not an expert on flash actionscript, but have studied in graphic design, and would like to launch webdesign firm.
Look for the essentials:
I recently re-developed a site: http://leflashweb.co.uk
And would like advice about how it comes across visually, and also if it is technically sound from specialists and amateurs alike. Be as objective as possible as I am about to have it SEO’d: e.g white box thingy...etc
And for:
#Graphics
#Message
#Code
#Function
I can return the favour for your site too. Thank you.
Peer Review:Motion
Hey everyone who's interested: I'm working on a penner esque motion equation. Sure he's already done it, but I'd like to hammer this out anyways. Please contribute!
So:
Code:
function rocker(a:Number, b:Number, t:Number):Number {
return Math.exp(-a*t) * Math.sin(b*t);
}
this.myMov_onRollOver = function(){
var t:Number = 1;
onEnterFrame = function(){
t++;
var mover:Number = rocker(.03, .3, t);
myMov_mc._rotation = mover*100;
if(t == 120){
t = 1;
delete onEnterFrame;
}
}
}
So for those of you who don't know... place all of this stuff on the 1st frame of your main timeline. Make any movieclip object called myMov_mc. (don't use a perfect circle).
a is the dampening effect, b is the frequency(speed), t is the incrementing value.
I don't like my trigger to delete the onEnterFrame. Can someone give me an idea of a test that will have the object end in it original position and delete. I think it's harder than it sounds. Also, I'm looking for the most effective way to have the first rotation start in the direction of the push.
myMov_mc._rotation = mover*100;
If I create some sort of conditional that makes mover * 100 start with a negative value, it should accomplish this. Is that the right way to think about the problem. (by right I mean, Kirupa thought level.)
Help away my friends.
Short Code Review
Hello,
Can you tell me why my code doesn't work?
The diff value does not get changed even though the _xmouse value (position of mouse on the stage) is correctly tracing. no matter wherever i put the mouse, diff always equals to maxSpeed;
ActionScript Code:
var maxSpeed:Number = 67; var speed1:Number = Math.round(maxSpeed/3); var speed2:Number = Math.round(maxSpeed/2); onEnterFrame = function() { var diff:Number = 0; if (0<_xmouse<100) { diff = maxSpeed; } else if (100<_xmouse<200) { diff = speed2; } else if (600<_xmouse<700) { diff = -speed2; } else if (700<_xmouse<800) { diff = -maxSpeed; } else { diff = 0; } var currentPosX:Number = _root.stripContainer._x; newPosX = currentPosX+diff; };
i've been stumbling on this for 2 hours, i must be blind...
thanks a lot
Portfolio Site For Review
Hi,
I've been been a lurker for a while and gained great information from the Kirupa tutorials and all of your comments in the forum, and I just want to thank all of you for your generosity of knowledge.
I've just created my first real flash site, and I'm not sure if it's kosher to post the link here for review being that I haven't contributed to your forum, but here it is. All comments are welcome. I wanted to post it as a 'thanks' to all of you, but if the moderators want to remove this post I won't be offended.
The champagne cork has been popped for all of you!
Thanks,
Terre
Adobe Source Review
I have got this snip from Adobe source
ActionScript Code:
package fl.core {public class UIComponent extends Sprite {public function drawFocus(focused:Boolean):void { isFocused = focused; // We need to set isFocused here since there are drawFocus() calls from FM. //Remove uiFocusRect if focus is turned off if (uiFocusRect != null && contains(uiFocusRect)) { removeChild(uiFocusRect); uiFocusRect = null; } //Add focusRect to stage, and resize. If component is focused. if (focused) { uiFocusRect = getDisplayObjectInstance(getStyleValue("focusRectSkin")) as Sprite; if (uiFocusRect == null) { return; } var focusPadding:Number = Number(getStyleValue("focusRectPadding")); uiFocusRect.x = -focusPadding; uiFocusRect.y = -focusPadding; uiFocusRect.width = width + (focusPadding*2); uiFocusRect.height = height + (focusPadding*2); addChildAt(uiFocusRect, 0); } }
For me it looks silly Right?
Flash Site Review
I have a dev site up and want you guys to check it out.
Tell me what you think and how much you would have charged to do it.
I want to get an idea of how much the international market is charging.
The URL: www.park.co.za/clinton/montmartre
Thanking you kindly
Please Review My Intro Page
Please review this intro page. It's not done, and my client is not sure he is going to go for it.
Thanks
PS: be kind
[as 1] [review] [advice] Any Way To Improve This?
Background:
I'm a designer not a coder but I see the power of AS and am learning as much as I can.
I was working on a self running Flash demo with a lot of text explaining the technical details of what was going on. Instead of adding frames to control the time each text screen was visible, I wrote this ActionScript.
It does the job and I have re-factored it several times but I'm kind of at the end of my ability. Basically I'm wondering if there are any ways to make it shorter, better or just be more in line with coding best practices. Any comments or advice would be appreciated.
Thanks,
DNA (designer trying to expand AS skills)
P.S.
I did see the "Playhead 'wait' script??" posting and I'm working through it to better understand it.
UltraShock Rocks!
Code:
// I added it to global so it can be called from nested MCs more easily;
_global.setTimer = function(path, s, f) {
function myTimer(path, f) {
clearInterval(myTimerID);
switch (f) {
case "nextScene" :
nextScene();
clearInterval(myTimerID);
break;
case "play" :
path.play();
clearInterval(myTimerID);
break;
default :
path.nextFrame();
clearInterval(myTimerID);
break;
}
}
myTimerID = setInterval(myTimer, s*1000, path, f);
};
// call the function using
setTimer(this, 2);
// or
setTimer(this, 1, "nextScene");
// or
setTimer(this, 1, "play");
My ScrollText .as File, Plz Review
Hello, this I'm new to Flash, not new to programming. I'm beginning to build a library of common code to allow me to more quickly build Flash sites. One I've just written is scrollText.as, which, a the name implies, scrolls text in a dynamic text field.
Here's the code:
ActionScript Code:
function scrollText(scrollDirection:String) {
_root.onEnterFrame = function() {
if (scrollDirection == "up") {
loadedInfo.scroll -= 1;
}
else if (scrollDirection == "down") {
loadedInfo.scroll += 1;
}
}
}
loadedInfo is the name of the text field on the stage. One thing I want to change about this .as file is to add a parameter to allow the naming of the textfield object. Can that be done? (haven't tried yet... so I may answer this question on my own later)
Any ways to improve this?
Thanks in advance!
bik
Cursor Change: Please Help Me Review My Codes
i'm not sure hopw to go about changing the custom cursor1 into custom cursor2 on mouseover the blue rectangles. Do i use functions?
Please help me coz i'm doing my final semester school project.
please review my source file
Moock's ASDG2 - A Long Review
ActionScript for Flash MX: The Definitive Guide, by Colin Moock
Reviewed by Robert Penner
Read it here
Excerpt:
'I remember first hearing Colin Moock speak at FlashForward 2001 in San Francisco. At the end of his session on programmatic motion, he mentioned that his "Red Colour Project" was nearing completion. After a year-and-a-half gestation, a book was coming soon that would be called "ActionScript: The Definitive Guide." I have to admit, I thought the title was a little pretentious. Definitive, eh? The nerve. Did he mean to suggest that his book would be the ultimate, the totality, the one book every ActionScript programmer would covet above all others? Yes. And it was all true.'
3600 words.
Print Layers List For Review
Is there a way to print a list of the layers, scenes, etc for review. I would like to be able to watch movie and make notes next to each layer for changes, etc.
Anybody Care To Code Review My First AS3 Package?
I was hoping someone very AS3 savvy could take a peak at my first package attemp. Please be gentle! Basically it a multiple item loader, for loading a series of swfs or image files in sequence, in AS2 i used something similar to preload all my external swf and to cache BitmapData. Functionally it seems to be working fine, what I'm hoping for is some input on my class usage/structure and event handling and whether it's up to snuff or out to lunch.
The package includes two classes, a base ItemsLoader that handles all the events and event forwarding, and second optional ItemsLoaderPB that just adds dual progress bar support. So, please take a look and let me know if I'm doing anything the "wrong" way or anything just plain wierd, Here is the main class:
Code:
package utils.itemsLoader {
import flash.display.Loader;
import flash.net.URLRequest;
import flash.events.*;
public class ItemsLoader extends EventDispatcher {
public var loader:Loader;
public var urls:Array;
public var request:URLRequest;
public var index:int;
public var itemsCompleted:Number;
public var completed:Number;
//custom events
public static const ITEMS_OPEN:String = "itemsOpen";
public static const ITEMS_COMPLETE:String = "itemsComplete";
//remap standard Loader events
public static const OPEN:String = Event.OPEN;
public static const PROGRESS:String = ProgressEvent.PROGRESS;
public static const COMPLETE:String = Event.COMPLETE;
public static const INIT:String = Event.INIT;
public static const IO_ERROR:String = IOErrorEvent.IO_ERROR;
public static const HTTP_STATUS:String = HTTPStatusEvent.HTTP_STATUS;
public static const UNLOAD = Event.UNLOAD;
public function ItemsLoader():void {
loader = new Loader();
request = new URLRequest();
//used and forwarded events
loader.contentLoaderInfo.addEventListener(ItemsLoader.INIT, onLoadInit);
loader.contentLoaderInfo.addEventListener(ItemsLoader.IO_ERROR, onLoadIOError);
loader.contentLoaderInfo.addEventListener(ItemsLoader.PROGRESS, onLoadProgress);
//generic forwarded events
loader.contentLoaderInfo.addEventListener(ItemsLoader.OPEN, onForwardEvent);
loader.contentLoaderInfo.addEventListener(ItemsLoader.COMPLETE, onForwardEvent);
loader.contentLoaderInfo.addEventListener(ItemsLoader.HTTP_STATUS, onForwardEvent);
loader.contentLoaderInfo.addEventListener(ItemsLoader.UNLOAD, onForwardEvent);
}
public function load( urls:Array ):void {
this.urls = urls;
index = 0;
itemsCompleted = 0;
dispatchEvent( new Event( ItemsLoader.ITEMS_OPEN ) );
loadClip();
}
private function loadClip():void {
completed = 0;
request.url = urls[ index ];
loader.load( request );
}
private function loadNext():void {
itemsCompleted = ( index + 1 ) / urls.length;
if( index < ( urls.length - 1 ) ){
index++;
loadClip();
}else{
dispatchEvent( new Event( ItemsLoader.ITEMS_COMPLETE ) );
}
}
private function onLoadProgress( e:ProgressEvent ):void {
completed = e.bytesLoaded / e.bytesTotal;
dispatchEvent(e);
}
private function onLoadInit(e:Event):void {
dispatchEvent(e);
loader.unload();
loadNext();
}
private function onLoadIOError( e:IOErrorEvent ):void {
loader.close();
dispatchEvent(e);
loadNext();
}
private function onForwardEvent(e:Event){
dispatchEvent(e);
}
public function destroy():void {
loader.contentLoaderInfo.removeEventListener(ItemsLoader.INIT, onLoadInit);
loader.contentLoaderInfo.removeEventListener(ItemsLoader.IO_ERROR, onLoadIOError);
loader.contentLoaderInfo.removeEventListener(ItemsLoader.PROGRESS, onLoadProgress);
loader.contentLoaderInfo.removeEventListener(ItemsLoader.OPEN, onForwardEvent);
loader.contentLoaderInfo.removeEventListener(ItemsLoader.COMPLETE, onForwardEvent);
loader.contentLoaderInfo.removeEventListener(ItemsLoader.HTTP_STATUS, onForwardEvent);
loader.contentLoaderInfo.removeEventListener(ItemsLoader.UNLOAD, onForwardEvent);
}
}
}
It's only public methods are load( urls:Array ) that takes (oddly enough) an array or urls for the stuff to load, and destroy() which removes all listeners from the internal load instance. One thing I'm not too crazy about is having to wrap and forward all the events for the internal load instance, is this an OK technique or should I be using event bubbling in some way? And if I were to use a different technique (other then the current wrappers) would I still be able to maintain ItemsLoader as the event.target for external listeners?
Following is the extended class with progressBar support. It takes 1 or 2 progressBars at instantaition. PB1 shows total progress, PB2 will optionally show the progress of the current file:
Code:
package utils.itemsLoader {
import fl.controls.ProgressBar;
import flash.events.*;
public class ItemsLoaderPB extends ItemsLoader {
public var pb1:Object;
public var pb2:Object;
public var bytesTotal:int;
public function ItemsLoaderPB( pb1:ProgressBar, pb2:ProgressBar = undefined ){
super();
loader.contentLoaderInfo.addEventListener(ItemsLoader.OPEN, onLoadOpenPB );
loader.contentLoaderInfo.addEventListener(ItemsLoader.PROGRESS, onLoadProgressPB );
loader.contentLoaderInfo.addEventListener(ItemsLoader.INIT, onLoadInitPB );
pb1.mode = "manual";
this.pb1 = pb1;
if( pb2 ){
pb2.mode = "manual";
this.pb2 = pb2;
}
}
private function onLoadOpenPB( e:Event ) {
pb1.setProgress( urls.length * itemsCompleted, urls.length );
if( pb2 ){
pb2.indeterminate = true;
bytesTotal = 1;
pb2.reset();
}
}
private function onLoadProgressPB( e:ProgressEvent ):void {
pb1.setProgress( ( urls.length * itemsCompleted ) + completed, urls.length );
if( pb2 && e.bytesTotal ){
pb2.indeterminate = false;
bytesTotal = e.bytesTotal;
pb2.setProgress( e.bytesLoaded, e.bytesTotal );
}
}
private function onLoadInitPB( e:Event ):void {
pb1.setProgress( urls.length * itemsCompleted, urls.length );
if( pb2 ) pb2.setProgress( bytesTotal, bytesTotal );
}
public override function destroy():void {
loader.contentLoaderInfo.removeEventListener(ItemsLoader.OPEN, onLoadOpenPB );
loader.contentLoaderInfo.removeEventListener(ItemsLoader.PROGRESS, onLoadProgressPB );
loader.contentLoaderInfo.removeEventListener(ItemsLoader.INIT, onLoadInitPB );
super.destroy();
}
}
}
Well, if your eyes have made it all the way down here, then thanks! Let me know what I'm doing wrong, doing right?
[Review Question] A Book Towards Learning AS3
Hi.
I was wondering about buying a book to learn more AS3. And why the book is because I haven't been home enough along with time to get into heavy tutorials on the computer. However, I've been looking at a book store, and I found this book from Flash Game University that seems to go over all the basics and then towards the gaming direction with the coding. It seems to be what I'm looking for since I'm trying to accomplish a Flash game. Of course I just want to make sure that I putting my money on the right book.
Any suggestions or anything?
And sorry if I posted this in the wrong place, but it does revolve around AS3.
MX-Quiz Template, Can't Go Back & Review
Hi,
Working in MX. I used the Quiz Template to create a multiple choice / multiple answer question with checkboxes. The user has two attempts. I would like the user to be sent back to the content for review. Preferrably via a frame label.
I tried to modify the code that came with the quiz template. On the submit button I used this ("Review" being the frame label I want it to go back to):
FPushButtonClass.prototype.onRelease = function() {
this.fLabel_mc._y--;
this.fLabel_mc._x--;
this.fpbState_mc.gotoAndStop(2);
this.drawFrame("frame");
this.executeCallBack(_root.gotoAndStop("Review"));
};
It works, but on the first hit. How can I get this to happen on the second hit?? This is my first attempt at e-learning. Any help, greatly appreciated.
Please Review This Code/Clip Event
I have a root swf that loads a second swf into level 1. The level 1, swf when a button is clicked, there is an exit clip event that tells the level 1 swf to park at a certain label and and tells the root swf to go to a certain label.
It is this last command that does not seem to work. It does not move to the label frame.
Can someone take a look at the code and let me know if they see any errors.
onClipEvent (load) {
_level1._root.gotoAndStop("One");
_root.gotoAndStop("Out");
}
Thanks everyone
|