Problematic Flash Files: "Cleaner" Needed (Paid)
Hello all,
I've hit a wall in several small Flash movies that are integrated into one online course, things that I'm sure I can figure out with time, but time is something I ain't got. I need a Flash wiz who can figure out what I've done wrong, improve the actionscripting where necessary, and also finish off some elements that have me stumped (and tell me what I've done wrong in the process). It's actually pretty basic stuff...and all the major groundwork has been done...but there might be a few challenges. You need to be familiar with video/audio integration...everything else is standard stuff.
If you're interested, please send me an e-mail and let me know your preferred method of payment: hourly or project-basis...and if you prefer hourly, please let me know your hourly rate since I have to get approval. Also, please include a link to your Flash portfolio.
BTW - This could possibly lead to a long-term project-basis work relationship.
Thanks! I hope to hear from you!
John
FlashKit > Flash Help > Flash MX
Posted on: 11-09-2003, 12:17 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Flash Games Needed - Get Paid
Startup in Tacoma Washington area needs Flash games as well as a dedicated Flash programmer. If you can do either please contact me so we can work out the details. All applicants will be considered.
URL
Flash Scripter Needed For PAID Work
Hey
I am working on a new website called NoNoiseReduction.com its going to be a big DJ/MC/Music Producer website where they can let people hear their work and get advice on how to get into the industry.
The website design is complete, www.nonoisereduction.com/press (use bottom button)
I currently have 1 flash scripter but i am looking for another to assist him to speed the process up
We are using PHP with MySQL and for the admin section it is in PHP/HTML with MySQL
Any people wanting to work on this site will be paid, however you will be checked by my current scripter who is highly advanced and will be able to tell within seconds if you are a good CLEAN! scripter.
No messy scripting will be acceptable.
Previous work examples will be needed
This website plans to work with large companies so it would be a great site to be able to put your name too..
All interest please email info@nonoisereduction.com
Thanks
Nic
Needed PAID Help With Some Basic HTML ...
Hi guys. I have a Flash movie and a design I did in Photoshop for the HTML page. Both are good to go. I need someone to cut it for me (the guides are set up also) and then set it up the HTML page so when the Internet Explorer window containing my HTML page gets resized, the Flash movie in it always stays centered. It is only one HTML page. Anyone would like to help?
Here's my E Mail:
emilkara@hotmail.com
Experts Needed For Paid Market Research
The Research House in central London is looking for particpiants for a group discussion to take place on 21st May in the evening at our Wigmore street facility on the topic of Adobe.
We are looking for Adobe experts in the areas of education and training; flash development; other software development including plug-ins and ad-ons; and community leaders of user groups and on-line community websites.
If you fit into one of these categories and are interested in particpiating in the research, please call Becky on:
0207 487 9292/6 and we will go through some qulaifying questions with you.
Kind regards,
Becky
becky@research-house.co.uk
How Problematic Is Tweening Gradients In Flash?
I have a symbol of a gradient faded from white to zero alpha.
I have a bunch of copies of it, and they are motion tweened on the main timeline.
I'm worried that this will slow everything down and be taxing on processors. Is this true?
Any way around this?
Thanks.
How Problematic Is Tweening Gradients In Flash?
I have a symbol of a gradient faded from white to zero alpha.
I have a bunch of copies of it, and they are motion tweened on the main timeline.
I'm worried that this will slow everything down and be taxing on processors. Is this true?
Any way around this?
Thanks.
How Problematic Is Tweening Gradients In Flash?
I have a symbol of a gradient faded from white to zero alpha.
I have a bunch of copies of it, and they are motion tweened on the main timeline.
I'm worried that this will slow everything down and be taxing on processors. Is this true?
Any way around this?
Thanks.
Flash Media Cleaner Addons
I'm looking for an add-on lilke Sorenson Squeeze for Flash, but this is a little pricey for me.
http://www.sorensonstore.com/product.../sq4mfwin.html
Does anyone know of something comparable for less? I know. You get what you pay for, but I need something to get me by while I'm learning Flash.
I'm not looking for shareware, etc. Just an inexpensive, nifty program to get me started as a newbie.
Thanks in advance for any help.
Can I just say I'm loving Flash. I just starting using it a few days ago, and I'm hooked! This is so much nicer when embedding video to webpages. Whoa!
Edit:
Does anyone know if the addon comes with Studio MX 2004? Because I plan on upgrading very soon. I definately don't want to dish out $119.00 for the addon if it ships with Macro's latest studio.
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
Php + Flash [PAID]
Basically i have a button in flash which when currently clicked goes to
"/products"
However i need to run some PHP in this similar to :
PHP Code:
a href="?family=products<?php if (isset($lang)) { echo "&lang=$lang"; } ?>
Is this possible?
Is someone can do this for me, I will pay them...
I need this tonight....
Thank you
-Shazad
Paid Flash Support?
Hello Folks,
I'm not sure if this is the right place to be posting this so sorry if I'm wrong...
I was wondering if anyone could suggest a site or service where one could pay for technical Flash support either via phone or email? I'm a newbie but have a couple of projects that I could use a more experienced person that I could bounce things off from.
Thanks in advance.
Paid Flash Support?
Hi all,
I remember seeing a site a few months ago that required a paid subscription to use their forums, but guaranteed quick answers to your questions, and I think they also offered project development support. It was a group of very experienced flash developers.
Does this ring a bell with anyone? What was that site?
It wasn't Macromedia's support subscription, and I'm pretty sure it wasn't either of these:
flzone.com
communitymx.com
Also, does anyone have any feedback the usefulness of a membership with flzone.com or communitymx.com
Thanks,
dc
Get Paid How Much For A Flash Shopping Cart?
I have a flash site inwork and want a shoping cart that people can purchase things from and use pay-pal I am taking offers on the job so if your interested in just setting up a sample and walking me through it I will pay you for it.
Thanks for you time.
Contact me at ncsmartart@aol.com
Paid Job Flash Domino Game
hello all,
Is anyone inetersted in programming a dominos Flash game?
if so, please reply to this thread and supply your email, or send me an email
PS: it is a paid job.
thanks!
Paid Work For Flash AS, PHP & MySQL Designer
I am looking for a Flash, PHP and MySql designer to design a dynamic website completely in Flash. This will allow a webform with user registration details ie name, company, address, email etc which can then be used as a logon profile the registered user. Passwords will not be genenerated automatically as the registered user will need to be moderated before the password will be sent, but, once moderated an 'email my password' functionality will need to be present. Once logged on, the user will have the option to download audio. If a user is not logged on, the user can only listen to the audio and not have the option to save the audio IN ANY WAY. I know that flash offers the best option to do this type of functionality and also provides the best presentation. I will be looking to use registered users in an email CRM system so an open source one like SugarCRM or any other which offers email tracking (statistics on emails opened, links clicked etc.) will need to be able to integrate with the MySQL contacts. Please call me for further details into the design and functionality. I will expect the designer to provide me examples of case study websites to prove to me a track record of such dynamic websites in Flash. This is paid work - based in the UK but worldwide can tender.
Help Needed In Loading XML Files Into Flash
Hi,
Is there any option by which the flash reads all the XML files kept in a particular folder and display it in a combo box in flash?
bcoz today there may be 2 XML files and tomorrow there may be 5 or 10 like that if in future I may add files into the folder or delete from the folder, but the flash file should read the whole directory and should display what r the XML files available in that folder.
is it possible?
and I want to load the details of particular XML file after selecting from the combo box and should be displayed in the flash file.
Presently I have done it for one file but I want to make it for multiple files and whichever file is selected, the details of that particular file should be displayed.
so will u tell me how to do it?
Flash Menues And XML Files...Help Needed.
Hi everybody,
I am trying to give a new feeling to my menus, so I want to learn how to populate the menu component with an XML file+. I already know some basics about XML, I can write the document I would need, that's easy but I dont know how I can populate the menu component. To illustrate what i am saying of my teacher's website is written in flash and he used this method, but he doesnt teaches in my school anymore and moved out of state. The web site is www.iragreenberg.com, the menus he is using are an example of the menu component populated with an XML file.
If anybody know an easy or whatever way to do what i want, please i would appreciate any help. My email is ysaisalberto@hotmail.com or u can post a response here.
Thanks a lot.
Help Needed..How To Link 2 Flash Swf Files Together
Hi
I am making a flash portfolio which can be seen here http://members.tripod.com/umairkhan20/portfolio.htm
Only problem I am having is howto link another flash file jus like this one together..for example if u see this link and u see the "About Me" section..I want it that the user clicks that and it opens another .swf file..if someone can help me with this it will be great... if u need me to explain this in more detail plz feel free to email me and I can explain it to u more detailed..
thanks and take care
-Umair
mdsruff@dbzmail.com
Small Paid Flash Job No More Than 10 Mins Work - URGENT
I have a small flash job, basically I have a vector graphic already created of some arrows and want them to slide into view.
I am not posting urls here due to the client’s confidentiality so reply to this thread with your ICQ, msn messenger or yahoo messenger address or pm me and i will explain more.
This is a paid job as i said before its seriously not more than 10 mins work.
I need this done ASAP and can pay by Papal etc
Cheers
James
Paid Project: Flash Webcam Interactive Application
Hi, I'm looking for someone to develop an application that will make use of a vertically placed projector, with webcam attached, pointing to a surface and picking up shadows as the activation for the interactivity. See http://youtube.com/watch?v=K8TDhjdGPCg&mode=related&search= or http://www.setpixel.com/content/?ID=twothingsdotone
I will need the application to be easy to use i.e. i can place hot spots, and then get the hotspot to do something e.g. run a video file, play a sound etc. Similar to the framework of Powerpoint or Keynote.
payment via paypal. pls email me oshioyi at yahoo dot com for more information.
i am open to ideas you may have.
Sequencing Swf Files/flash Movies - Help Needed
I have produced a load of swf movies, which advertise different businesses and I want to produced a sequenced set of movies for display in shop windows etc. Is there a SIMPLE way of sequencing my files so that they run for their duration, fade out and the next one fades in.
I have tried to produce a single file in Flash, imported the swf file, alpha in and out at the correct timing then added another movie on another layer and building them up like that.
I have found that embedded movies (mainly jpeg images of the relevant business) don't work and there must be a simpler way of doing it.
Any ideas?
Cheers
Paul
Flash 'Attach Files' Quick Help Needed Please
Hi everybody.... I have a big question for you, It is possible to make an 'attach file' system, like emails one, usign flash??? Please help me, any help will be great. Thanks people .
:::::goto():::::
Files Needed To Make Flash Site Live
My Flash site is now complete. At this point what are my next steps in making my Flash site live (i.e., uploading to a server). What are the necessary files that I need and do I need to use Dreamweaver, and if so what is the process to make my site live in that manner? Please help!
Edited: 07/12/2007 at 02:44:17 PM by Twee
...still Problematic...
First of all, thank you sergwiz for your dedication! As I said, the fifth floor rules! Well, ...please don't gag me .... but there is still one tiny little problem with the .fla . I actually intended the rollOver button animation to be different from the rollOut one. Sorry for being that fussy ...and above all: thanks for your patience! (posted the .fla again...).
Problematic...
Sorry for being such a pain in the ...backyard, but this problem really puts my whole project on hold... here's my problem: why are the buttons inside the "btn_1" - "btn_4" movieclips (see attached .fla) not responsive to their "on release" command? Any suggestions? I've really endeavoured to work this out on my own...
at least I didn't seriously harm myself...
THANKS SO MUCH FOR YOUR PATIENCE AND DEDICATION; IT IS ReaLLY APPRECIATED!
aut.
Problematic Transition
I've been killing myself trying to figure out how the transitions were created in the work section of this site.
http://www.exopolis.com
Specifically the intro/outro transitions between each work sample. If anyone could point me in the right direction, I'd be very appreciative.
Thanks,
Mike
Problematic Loop
I am having trouble getting images to load in several holder clips (labelled holder0, holder1, holder2...) on the stage. It works if I specifically name the variable holder0, holder1, but not in the for loop below. I've tried lots of different ways but no luck so far.
Code:
var x:XML = new XML();
x.ignoreWhite = true;
var urls:Array = new Array();
var display:Number = 0;
x.onLoad = function() {
var photos:Array = this.firstChild.childNodes;
for (i=0; i < photos.length; i++) {
urls.push(photos[i].attributes.url);
//works if I put holder0.loadMovie(urls[i])
//and holder1.loadMovie(urls[i]);
var holder = ("holder" + i);
holder.loadMovie(urls[i]);
}
}
x.load("photos.xml");
Thanks in advance!
[F8] Button Problematic
Hello there,
My question is about a button problem I have.
For example I have a Movieclip within a square.
I coded this MC with the following code:
Code:
on(rollOver){
gotoAndPlay(2);
}
on(rollOut){
gotoAndPlay(30);
}
On mouseover it should play the frame 2-29 which changes the color of the square to red. On mouseout it should change the color back.
My problem is if the event rollover is still happening and you click on the MC and rollout, it doesnt play the event rollout. I have to rollover again and then rollout.
Is there a solution?
Cleaner
Hi
Just wondering if anyone uses Cleaner EZ which comes with Premier etc to compress their video files into Quicktime?
Im stuck on selecting the right settings...I need the video to be fairly small but it ALWAYS ends up being too blurred...
Thanks!
Can This Be Cleaner?
this is a movieclip that can move threw a maze of objects. if the user hits an object the movieclip jumps to frame that shows it crashing. Everything works. my question is.. can the code be cleaner or wrapped up in a function?
onClipEvent (enterFrame) {
if (Key.isDown(37)&& hitTest(_level0.wall)==false) {
_x=_x-4;
}
if (Key.isDown(38)&& hitTest(_level0.wall)==false) {
_y=_y-4;
}
if (Key.isDown(39)&& hitTest(_level0.wall)==false) {
_x=_x+4;
}
if (Key.isDown(40)&& hitTest(_level0.wall)==false) {
_y=_y+4;
}
if (hitTest(_level0.wall)==true) {
this.gotoAndPlay("hit");
}
if (hitTest(_level0.wall2)==true) {
this.gotoAndPlay("hit");
}
if (hitTest(_level0.wall3)==true) {
this.gotoAndPlay("hit");
}
}
[F8] Is There A Cleaner Way To Do This?
This code works just fine for restricting the area I can draw in, but it seems very inefficient. Is there a better way?
Code:
onMouseMove = function () {
if (_xmouse>32 && _ymouse>32 && _xmouse<607 && _ymouse<397) {
drawingArea.lineTo(_xmouse, _ymouse);
}
};
My movie actually uses close to 100% CPU after scribbling a lot, and I think it might be this code thats doing it.
AS2 - URL Cleaner
Hello, this is a great tool that i use to filter path to test locally.
the function:
function cleanVBLE(vble)
{
a = new String(vble);
b = a.split("/");
return b.pop();
}
the usage:
trace(cleanVBLE("/formas/80094/canalune.swf"));
Window Resizing Problematic
I have a flash (MX) movie that draws lines (and other simple geoemtric shapes) via mouse drag. The dimensions of the movie are: width:800 px, height=1200 px. I'have used the following embed tag to include the movie in my html code.
SRC="draw.swf" NAME=draw WIDTH=800 HEIGHT=1200 play=true menu=false scale=noscale wmode=transparent style="position:absolute;top:0;left:5;"
The movie works fine as long as I don't resize the browser's (IE 5) window. However, after loading the movie, if I resize the window a strange thing happens. The movie works fine on the top part of the stage but not on the bottom part (the part that I have to scroll down to get to). The effect of mouse drag (which should be a visible geometric shape) becomes invisible. When I drag the mouse I don't see any line being created. Yet, when I scroll up and down once, the line is there.
What puzzles me is that thhis behavior occurs only when I resize the browser's window and only on the bottom part of the stage.
I appreciate any comments that may explain the behavior or any suggestion that may remedy the problem.
Sivand
Problematic Customized Cursor
We are having problems with the customized cursor when switching back from scene 2 to scene 1. the cursor appears but isn't functioning
Can anyone help??
thanks
'The Perfect Tween' - Problematic
Hi all,
This post refers to Joshua Davis' most excellent 'Perfect Tween', available on http://flashtothecore.praystation.com (chapter 08).
I am using it to control 7 different movieclips. I have three pictures of people, three quotes by these people and a introduction quote. What happens is that when you roll over one of the people, the following happens:
- the other two people fade out to 50%
- the intro quote fades to 0%
- the quote associated with the person you're over fades in
I have the people and quotes set up as tweened movieclips with a stop(); in the first and last frame. This is the script I have attached to an invisible 'control' movieclip:
ActionScript Code:
onClipEvent (enterFrame) {
if (_parent.markOn) { // we've rolled over Mark
_parent.mark_quote.nextFrame(); // let's fade in Mark's quote
_parent.introTextAnim.nextFrame(); // fade back the intro quote
_parent.kevin_mc.nextFrame(); // fade Kevin back
_parent.darren_mc.nextFrame(); // fade Darren back
} else {
_parent.mark_quote.prevFrame();
_parent.introTextAnim.prevFrame();
_parent.kevin_mc.prevFrame();
_parent.darren_mc.prevFrame();
}
if (_parent.kevinOn) {
_parent.kevin_quote.nextFrame();
_parent.introTextAnim.nextFrame();
_parent.mark_mc.nextFrame();
_parent.darren_mc.nextFrame();
} else {
_parent.kevin_quote.prevFrame();
_parent.introTextAnim.prevFrame();
_parent.mark_mc.prevFrame();
_parent.darren_mc.prevFrame();
}
if (_parent.darrenOn) {
_parent.darren_quote.nextFrame();
_parent.introTextAnim.nextFrame();
_parent.mark_mc.nextFrame();
_parent.kevin_mc.nextFrame();
} else {
_parent.darren_quote.prevFrame();
_parent.introTextAnim.prevFrame();
_parent.mark_mc.prevFrame();
_parent.kevin_mc.prevFrame();
}
}
The strange thing is, this portion of the code (on it's own) works:
ActionScript Code:
onClipEvent (enterFrame) {
if (_parent.markOn) { // we've rolled over Mark
_parent.mark_quote.nextFrame(); // let's fade in Mark's quote
_parent.introTextAnim.nextFrame(); // fade back the intro quote
_parent.kevin_mc.nextFrame(); // fade Kevin back
_parent.darren_mc.nextFrame(); // fade Darren back
} else {
_parent.mark_quote.prevFrame();
_parent.introTextAnim.prevFrame();
_parent.kevin_mc.prevFrame();
_parent.darren_mc.prevFrame();
}
}
It's only when I add in the other bits of code for the other people/quotes that it doesn't work.
I've done the usual tired-been-staring-at-it-too-long stuff like instance names etc. and I've been able to determine that it's picking up whether the variables (markOn, kevinOn and darrenOn) are true or false, and by putting trace() commands in various frames of the individual animations I can see that it plays every one but stops on frame 2 (even if each one has a this.play() command in frame 2).
Does anyone have experience of this or can see anything obvious I'm doing wrong?
Any help much appreciated. It's a great technique when it works!
Thanks,
J
Cleaner Animation
I am trying to make a movie which will play fullscreen with a small area with 20% opacity visible in the center. Now my character (any image) will erase the black background so that a clear picture becomes visible.
Pls. help. urgent
Cleaner Code
I have a code that consolidates current moneys into the least amount of tokens possible. It works but the actual code is extremely bulky, i was wondering if anyone has a tip or sees something that can be removed/replaced for less code
Thanks
code: C_Amount = _root.betTotal;
if(C_Amount < 25)
{
NumLeft = C_Amount % 10;
if(NumLeft < 5)
{
dollar_1 = NumLeft;
dollar_10 = (C_Amount - NumLeft) / 10;
}else{
NumLeft1 = NumLeft % 5;
dollar_1 = NumLeft1;
dollar_5 = (NumLeft - NumLeft1) / 5;
dollar_10 = (C_Amount - NumLeft) / 10;
}
}
[CS3] Cleaner Code
Hi,
Is there an easier, cleaner way to write:
type = _root.page;
if (_root.pageOn == 1)
{
if (type == 'ftp')
{
_root.content.ftp.filters = [myBlurFilter];
_root.content.ftp._alpha = 50;
}
if (type == 'news')
{
_root.content.news.filters = [myBlurFilter];
_root.content.news._alpha = 50;
}
if (type == 'hello')
{
_root.content.hello.filters = [myBlurFilter];
_root.content.hello._alpha = 50;
}
if (type == 'contact')
{
_root.content.contact.filters = [myBlurFilter];
_root.content.contact._alpha = 50;
}
if (type == 'exhibitions')
{
_root.content.exhibitions.filters = [myBlurFilter];
_root.content.exhibitions._alpha = 50;
}
if (type == 'interiors')
{
_root.content.interiors.filters = [myBlurFilter];
_root.content.interiors._alpha = 50;
}
if (type == 'conferences')
{
_root.content.conferences.filters = [myBlurFilter];
_root.content.conferences._alpha = 50;
}
if (type == 'live_events')
{
_root.content.live_events.filters = [myBlurFilter];
_root.content.live_events._alpha = 50;
}
if (type == 'new_media')
{
_root.content.new_media.filters = [myBlurFilter];
_root.content.new_media._alpha = 50;
}
if (type == 'people')
{
_root.content.people.filters = [myBlurFilter];
_root.content.people._alpha = 50;
}
if (type == 'clients')
{
_root.content.clients.filters = [myBlurFilter];
_root.content.clients._alpha = 50;
}
}
Cleaner Code
Hi all, I'm currently working on creating a simulated training flash-based presentation and I'm looking to improve my coding habits.
Part of the simulation was to create a custom cursor that functions just as any data entry cursor would. Here's where I need to improve:
The user is restricted to only entering uppercase glyphs at this point, so the cursor should only respond if a letter character is pressed. All other characters should be ignored. I've figured a method to do this, and it works just fine, but the code is very repetitive and long. I'm guessing that there is a better way to do this by referencing a list of key codes in the conditional statement, but I'm not sure how to go about it. Here's what the code looks like
Thanks
Code:
onClipEvent(keyDown) {
//ignore tab
if (key.isDown(9)) {
this._x = this._x;
} else if (key.isDown(12)) {
this._x = this._x;
} else if (key.isDown(13)) {
this._x = this._x;
} else if (key.isDown(16)) {
this._x = this._x;
} else if (key.isDown(17)) {
this._x = this._x;
} else if (key.isDown(112)) {
this._x = this._x;
} else if (key.isDown(113)) {
this._x = this._x;
} else if (key.isDown(114)) {
this._x = this._x;
} else if (key.isDown(115)) {
this._x = this._x;
} else if (key.isDown(116)) {
this._x = this._x;
} else if (key.isDown(117)) {
this._x = this._x;
} else if (key.isDown(118)) {
this._x = this._x;
} else if (key.isDown(119)) {
this._x = this._x;
} else if (key.isDown(120)) {
this._x = this._x;
} else if (key.isDown(121)) {
this._x = this._x;
} else if (key.isDown(122)) {
this._x = this._x;
} else if (key.isDown(123)) {
this._x = this._x;
} else if (key.isDown(124)) {
this._x = this._x;
} else if (key.isDown(48)) {
this._x = this._x;
} else if (key.isDown(49)) {
this._x = this._x;
} else if (key.isDown(50)) {
this._x = this._x;
} else if (key.isDown(51)) {
this._x = this._x;
} else if (key.isDown(52)) {
this._x = this._x;
} else if (key.isDown(53)) {
this._x = this._x;
} else if (key.isDown(54)) {
this._x = this._x;
} else if (key.isDown(55)) {
this._x = this._x;
} else if (key.isDown(56)) {
this._x = this._x;
} else if (key.isDown(57)) {
this._x = this._x;
} else if (key.isDown(186)) {
this._x = this._x;
} else if (key.isDown(187)) {
this._x = this._x;
} else if (key.isDown(188)) {
this._x = this._x;
} else if (key.isDown(189)) {
this._x = this._x;
} else if (key.isDown(190)) {
this._x = this._x;
} else if (key.isDown(191)) {
this._x = this._x;
} else if (key.isDown(192)) {
this._x = this._x;
} else if (key.isDown(219)) {
this._x = this._x;
} else if (key.isDown(220)) {
this._x = this._x;
} else if (key.isDown(221)) {
this._x = this._x;
} else if (key.isDown(222)) {
this._x = this._x;
} else if (key.isDown(32)) {
this._x = this._x;
} else if (key.isDown(37)) {
this._x = this._x;
} else if (key.isDown(38)) {
this._x = this._x;
} else if (key.isDown(39)) {
this._x = this._x;
} else if (key.isDown(40)) {
this._x = this._x;
} else if (key.isDown(20)) {
this._x = this._x;
} else if (key.isDown(106)) {
this._x = this._x;
} else if (key.isDown(107)) {
this._x = this._x;
//don't move left of original position
} else if (key.isDown(8)) {
if (this._x > 104) {
this._x -= 10;
}
//don't move right of new position
} else if (this._x < 112) {
this._x += 10;
}
}
If/Else - Is There A Cleaner Code?
Hello all,
I am currently working on a flash file and I'm an intermediate user. My actionscript abilities are probably close to beginner, but I'm a quick learner (most of what I have learned with actionscript has been self taught).
In my flash file I have an animation of a rotating globe. Each frame of the rotation is a separate raster image - I don't know how you would represent a rotating globe otherwise, not really something that can be tweened (suggestions are welcome).
I have different locations off to the side of the globe. When the user mouses over a location, the globe spins to that location. When they roll out, the globe spins back to a static starting point.
I wanted the animation of the globe to be as smooth as possible, so, I have a }else{ statement for every possible frame. IE - if the globe animation is rotating back from a position and the user mouses over a new location before the animation stops, it doesn't jump back to the starting static position, it seemlessly flows from the position it is currently at to the new position the user has moused over.
Make sense?
It works flawlessly as is. I've spent quite a bit of time testing it. However, the code is bulky in appearance and according to the size report bulky in bytes as well.
Is there a differnent way to set this up to cut down on size - mainly byte size if possible?
I will include a bit of code so you can see what I'm talking about:
on (rollOver) {
if (_root.EarthClip._currentframe == 1) {
_root.EarthClip.gotoAndPlay(140);
} else { if (_root.EarthClip._currentframe == 160) {
_root.EarthClip.gotoAndPlay(156);
} else { if (_root.EarthClip._currentframe == 161) {
_root.EarthClip.gotoAndPlay(155);
} else { if (_root.EarthClip._currentframe == 161) {
_root.EarthClip.gotoAndPlay(154);
} else { if (_root.EarthClip._currentframe == 163) {
_root.EarthClip.gotoAndPlay(153);
and so on, and so on . . .
Any help would be greatly appreciated.
Thank you in advance.
-MShetler
Cleaner Scripting
I think the code says it all. For a current project I need to use a hit area to start an animation when a mouse rolls over a _mc.
If I use the movie clip instead of a button I can simplify the script by using the first section of the attached code. In the simplified code I only have to define one over and one out state and then I can use a this statement to control the action.
For any number of _mc's I just need one set of functions.
Using buttons, each _mc needs it's own over and out definition and it's own unique set of functions.
I've tried using a bunch of if (grnMC_button.onRollOver = true) {this statements apply only to grn_mc} (not really code) but I can't find anything that works. It would be a great time saver if I could because in the final project I've got about 75 movie clips to control with over functions.
One more thing. I can't use the movie based code because the animations move out from under the buttons and the mouse over area gets big and overlaps the other "buttons". I guess I'm really looking for a way to define a hit area and still keep the code simple.
Attach Code
Movie driven _mc sample code:
˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜
// over-out definitions
grn_mc.onRollOver = over;
grn_mc.onRollOut = out;
blu_mc.onRollOver = over;
blu_mc.onRollOut = out;
red_mc.onRollOver = over;
red_mc.onRollOut = out;
// onRollOver functions
function over () {
this.overThis = true;
this.gotoAndPlay("start");
}
// onRollOut functions
function out () {
this.overThis = false;
Button driven _mc sample code:
˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜
// button definitions
grn_btn.onRollOver = over_grn;
grn_btn.onRollOut = out_grn;
blu_btn.onRollOver = over_blu;
blu_btn.onRollOut = out_blu;
red_btn.onRollOver = over_red;
red_btn.onRollOut = out_red;
// onRollOver functions
function over_grn () {
grn_mc.overThis = true;
grn_mc.gotoAndPlay("start");
}
function over_blu () {
blu_mc.overThis = true;
blu_mc.gotoAndPlay("start");
}
function over_red () {
red_mc.overThis = true;
red_mc.gotoAndPlay("start");
}
// onRollOut functions
function out_grn () {
grn_mc.overThis = false;
}
function out_blu () {
blu_mc.overThis = false;
}
function out_red () {
red_mc.overThis = false;
}
Edited: 05/16/2007 at 11:25:53 AM by Rick Gerard
Button In Animation Makes It Problematic
Scenario: I move over a button which calls a movie clip. Then in that movie clip there are another buttons (submenu) and as soon as I move over them (top red field) the movie clip dissapears. That base movie clip should not be dissapearing when I move over some submenu.
file
source is attached.
This is a newbe question since I'm pretty lame to flash. Any help?
Problematic Time Line Control
Good morning Kirupans!
I have a question. I have a button in my movie that I would like to use to do two things when it is clicked.
1. Pause the main timeline.
2. Tell another movie clip to start playing (basically it creates an overlay on top of the main movie)
But I can't even get #1 accomplished. The code I'm using looks like this:
Code:
_root.button_schedule.onRelease = function() {
_root.stop();
}
Obviously, my button has already had its instance named button_schedule. I get no script errors of any kind, the button simply doesn't do anything! Where am I going wrong?
Thanks!
Cleaner, Crisper Text
can anyone explain how to get cleaner, crisper text in FlashMX. Thank you.
LoriSchlitz
Cleaner 6 Or Sorenson Squeeze?
hi
I have cleaner 6, but a friend says sorenson squeeze it a better compressor for use of video in flash. Shoul i get a copy? or will cleaner suffice??
Techniques To A Cleaner Program
Hi, Im not an expert in flash, but I do on occasion help some buddies out if they want a menu or something on their webpage. When I am making these files, it seems like my organization and technique is sloppy. Any comments / suggestions / flames are welcome on how I could better organize this and other projects in the future.
~Thanks
Link to File:
http://www.geocities.com/matteoelbow/SR_Menu1.fla
Link to movie:
http://www.geocities.com/matteoelbow/SR_Menu1.swf
Is GotoAndPlay A Problematic Function Jumping To New Scenes?
I am creating a flash piece with multiple scenes. When I jump using the gotoAndPlay function, it jumps to the scene but the playhead stays at frame 1 instead of playing on from frame 1 of the new scene. I have been using gotoAndPlay jumping to labelled frames often with little problems. But not to scenes. Is there some problem with using gotoAndPlay function to jump to new scenes?
TIA
Is GotoAndPlay A Problematic Function Jumping To New Scenes?
I am creating a flash piece with multiple scenes. When I jump using the gotoAndPlay function, it jumps to the scene but the playhead stays at frame 1 instead of playing on from frame 1 of the new scene. I have been using gotoAndPlay jumping to labelled frames often with little problems. But not to scenes. Is there some problem with using gotoAndPlay function to jump to new scenes?
TIA
|