Animation Method
I was wondering what methods were used when getting ready to do an animated short (or not-so-short).
I'm a complete novice with animation, the most I've ever done really was mini flip books.
Having enough trouble actually drawing, I find it even more difficult to animate in Flash while keeping perportions correct, and many other aspects that I find it difficult to name or describe.
What do you do when getting to animate people?
FlashKit > Flash Help > Flash Newbies
Posted on: 06-09-2002, 07:48 PM
View Complete Forum Thread with Replies
Sponsored Links:
How To Use Variables For Easing Class And Esing Method Of Tween Animation?
Hello,
I am using ActionScript 3 to do Tween animation. I have two combo boxes that allow user to select the easing Class (e.g. Regular, Back, Bounce, Elastic, Regular, Strong and None) and easing Method (e.g. easeOut, easeIn, easeInOut, easeNone).
How can I use "variables" for the easing Class and easing Method of Tween animation.
For example, the following works:
Quote:
var easeMethod:Function = Regular.easeOut;
var tweenX:Tween = new Tween(ball_mc, "x", easeMethod, 0, 150, 3, true);
However I wish to use like that:
Quote:
var easeMethod:Function = easingClassCombo.selectedLabel.easingMethodCombo.s electedLabel;
var tweenX:Tween = new Tween(ball_mc, "x", easeMethod, 0, 150, 3, true);
How can I do that?
Thanks and best regards
Alex
View Replies !
View Related
Function In A Method Return True To Method's Caller?
I think I probably don't know the correct terminology to ask this question, but here goes:
In this example, can anyone tell me how to have the setComplete event function within the main method return true to the caller of the method, instead of just to the listener?
PHP Code:
function loadAsset(target:MovieClip, asset:String, assetLoaderInfo:LoaderInfo): Boolean { var assetLoader:Loader = new Loader(); var assetURLRequest:URLRequest = new URLRequest(asset); assetLoader.contentLoaderInfo.addEventListener(Event.OPEN, setLoaderInfo); assetLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, setComplete); function setLoaderInfo(event:Event) { assetLoaderInfo = event.currentTarget; } function setComplete(event:Event) { target.addChild(assetLoader); return true; } assetLoader.load(assetURLRequest); }
View Replies !
View Related
Function In A Method Return True To Method's Caller?
I think I probably don't know the correct terminology to ask this question, but here goes:
In this example, can anyone tell me how to have the setComplete event function within the main method return true to the caller of the method, instead of just to the listener within the method?
Many thanks!
PHP Code:
function loadAsset(target:MovieClip, asset:String, assetLoaderInfo:LoaderInfo): Boolean
{
var assetLoader:Loader = new Loader();
var assetURLRequest:URLRequest = new URLRequest(asset);
assetLoader.contentLoaderInfo.addEventListener(Event.OPEN, setLoaderInfo);
assetLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, setComplete);
function setLoaderInfo(event:Event)
{
assetLoaderInfo = event.currentTarget;
}
function setComplete(event:Event)
{
target.addChild(assetLoader);
return true;
}
assetLoader.load(assetURLRequest);
}
View Replies !
View Related
[AS2 OOP] Calling A Method In A Method
Hi everyone
i'm not quite sure how to phrase my problem, so i'll examplify:
Code:
class A{
function A(){
trace("construct");
}
private function moo(){
trace("moo!");
}
private function cow(){
trace("start mooing");
moo();
}
}
this does what I expect it to: construct, start mooing, moo!
Code:
class A{
function A(){
trace("construct");
}
private function moo(){
trace("moo!");
}
private function cow(){
trace("start mooing");
_root.onEnterFrame = function(){
trace("moo!")
}
}
}
this also does what I expect it to: construct, start mooing, moo!, moo!, moo!, ...
Code:
class A{
function A(){
trace("construct");
}
private function moo(){
trace("moo!");
}
private function cow(){
trace("start mooing");
_root.onEnterFrame = function(){
moo();
}
}
}
yet this doesn't, I'd expect it to: construct, start mooing, moo!, moo!, moo!, ...
yet the moo! moo! moo! doesn't appear, as if moo() never gets called it all.
so what I'm I doing wrong?
View Replies !
View Related
Need Urgent Help How To Combine Transition Class Tween Animation And Keyframe Animation?
Hi! I have a transitional tween class animation assigned to "mc_logo" on frame 1. However on frame 100, I have "mc_logo" animated on the timeline by regular keyframe animation.
I have assigned the tween class animation to "mc_logo" on frame 1 and the regular timeline animation starting on frame 100 does not execute now when I test the movie...why?
Do I need to end/clear the tween class animation so the regular timeline animation will work again?
Here is the code on frame 1 so far:
import mx.transitions.*;
import mx.transitions.easing.*;
import flash.filters.*;
var LogoTweenY:Tween = new Tween(mc_logo, "_y", Bounce.easeOut, -120, 171, 30, false);
Thank you in advance for your help.
Attila
View Replies !
View Related
OnMouseOut{freeze Button Animation, Reverse Animation Back To..}
This is my question in an action script "perspective", since i dont wanna spend the time typing this question out in plain english..
How would i implement this effect into a button I made that contains a MovieClip as the over state? ::
onMouseOut{
stop button's Over animation on current showing/playing frame;
then reverse animation back to start
OR
fade out current showing/playing Over animation frame, back to the button's load state (not over)
};
View Replies !
View Related
Playing A New Intro Animation On Release During The Previous Outro Animation?
I know about external swfs and having intros and outros, but I want my intros and outros to overlap...
for example, I want a background that's red and rotates when you click button 1, but I want to it rotate and change yellow when I click button 2, or rotate and change green when I click button 3...
I don't want it to rotate than fade to black and finish before the next animation has started, cause otherwise I don't get the smooth colour change from red to yellow, rather it's red to black than yellow...any tutorials that can help me?
thanks...it's hard to explain
View Replies !
View Related
Simulating Hieracical Animation Tween Mixed With Timeline Animation..
The theory was that I animate my clip say across the stage using frames in the main timeline. So this animates fine, but when I use the Tween class inside this clip the timeline animation is destroyed! the tween class for the clip was just doing some animation repeating, like as if it was the clips own timeline...this overpowers the parent animation and the slide across the stage doesnt happen...
why? and is there a solution more importantly.
View Replies !
View Related
Play/Pause For Animation/Nested Animation And Sound
Hello and Goodmorning, afternoon or evening.
I am relatively new to actionscripting and have come upon a problem I'm sure is probably easy but for some reason I can't make it work.
Basically I have a presentation that plays several voice over sequences that match up with accompanying animations which are mostly movie symbols that house the animation sequences. Well now the client wants to put a pause/play button on the presentation and I haven't been able to make it work... I put in stops but the movie symbols still play out the sequence and the voice over starts over... not sure what to do... HELP!... and thanks ahead of time.
Raul.
View Replies !
View Related
Help Linking Hit Detection To Animation In A Game (death Animation)
Hi everyone - I've just been experimenting with creating games in flash MX 04 and I've come across a problem that's had me stuck for a few hours now. I have just about everything working in my practice game, except when my character gets hit with the projectile... it won't go to the death movieClip that's located in the character's main movie clip (on frame 6 of it).
If anyone could check out the project file and let me know what i'm doing wrong it'd be greatly appreciated. The controls for the game are just the arrow keys to move the character, and down ducks - avoiding the projectile.
Thanks
View Replies !
View Related
Stopping Animation From Playing Before Another Animation Has Finished (On Keypress)
Hi guys
I've linked to the project I'm current working on; essentially, what it does is play a ripple animation at specific points on the stage when certain keys are pressed. What I'm trying to do at the moment is stop people from hammering one key many times, and creating several instances of a ripple in one location. As well as looking strange, it also slows down Flash considerably ;-)
I'm not really sure where to start, but what I'm thinking of would work as follows: -
Person pushes 'Q', and a ripple is triggered at the coordinates relative to that key. If they press 'Q' again, it is impossible to trigger another ripple at that location until the current ripple animation has finished. The same is true with all of the other keys (Q, E, S, Z, C, Up, Down, Left Right) when pressed.
However, it should still be possible to trigger ripples at the same time with different keys. For example, someone could press three different keys at the same time, and see three different ripples which play at the same time and overlap, etc.
Hope that's clear enough - if anyone could help me out with this, it would be most appreciated.
- Thanks!
http://www.joshbarton.co.uk/flash/Ripple_Project.fla
View Replies !
View Related
Trouble Adding Animation To Existing Rollover Animation
Hey all,
I'm using Flash 8. I have a picture of a building which is segmented into floors. Upon rolling over a grouping of floors the user sees either a blue overlay, indicating they can click, or a gray overlay simply describing what the floor is. I already have some actionscript in place and I don't need to alter it, I just added more animation to an existing movieclip rollover, but it's not quite working. On one of the floors that rolls-over gray, I want an additional rollover with some text. So I made a movie clip of the rollover animating out and the type coming in and I just added it to the gray fade in movie clip since there was already onRollover actionscript in place there. However, the rollover kept playing over and over again. So, of course I added a Stop action. Then, the animation didn't work anymore, it just rolled over to the final state of that animation. Does anyone have any ideas of what I can do, or what I can do as an alternative? I'll post the actionscript in case that helps. Like I said, the rollover "rolls-over" but either loops (without a Stop action), or rolls over to the final frame in the animation (with a Stop action).
Thanks!
Mc
View Replies !
View Related
[CS3] Create Animation That Runs From Button Click After Another Animation Has Run
Hi,
I am a newbie to flash & actionscript. I have, though, learnt the basics of flash animation, tweens & bits of actionscript and have created an animation movie consisting of sevral layers.
I have the movie stopping at the end and the graphics are all converted to buttons.
Now, from this end point, i want the user to click on one of the images (buttons) and then the flash movie to start a sub-animation.
BUT i don't know how to do this.
Do i need to create a new scene to do this or do i need to extend the layers and add the additional animation to the layers or do i need to add new layers to the same scene?
ALternatively, do i need to this in actionscript?
Please let me know what is the method of doing this in Flash. This seems like a simple thing which i've seen in flash movies before but i can't find any answers or tutorials on how to do this.
Please give me the steps involved in creating a second animation runnable from a click in the 1st animation.
To clarify further, my aim is to make the movie clip interactive using different motions 9or animations so that when an object in the 1st animation is clicked a different animation starts. So how can i achieve this?
Regards, shuja
View Replies !
View Related
Making An Animation Fade Into Another Animation When A Button Is Released?
okay, so I have for exmaple a red animated background for 'home' but when someone clicks 'media' for example, I want that red animated background to fade into a green animated background.
I tryed using external swfs, but I don't know how to make the outro animation of the first red swf fade into the intro animation of the second green swf, so it creates the effect of red into green, rather than red to black, than black to green.
any tutorials that could help me?
View Replies !
View Related
Converting Programmed Animation To Timeline Animation
hi,
I have made a simple animation using programming in Flash 5. It is all contained within one frame on the timeline. It constantly repeats itself and plays fine as an swf file and as quicktime (6).
The problem is, I want to import it into an application (after effects)that doesn't understand flash programming. It imports it as one frame and nothing happens when I try to play it.
I think the solution may be in converting it to a timeline animation for about a minute which has a definite start and end point but I don't know how to do this.
any ideas?
katy
View Replies !
View Related
Converting Tweened Animation To Frame Animation
i have this cartoon see, and i made a tween of a character, but it looks all stiff and whatnot, but i'd like to use the tween as a guide for the stuff i am going to draw in. is there a way to convert this tweened animation to frame by frame animation? can't find anything like this in the help files.
mmm..
thanks
View Replies !
View Related
Button Animation That Ends Animation On Rollover
I design a button that glows on over. So the person rolls over the button and it glows other wise the button does nothing.
What I want is the button's glow animation to finish the animation after the person moves the mouse away. So once the mouse touches the button it starts the animation and if the person moves the mouse away the animation completes the time line(glow).
I designed a button with the glow as a separate animation/movie clip.
The animation is on the over state. But it does not play all the way threw the animation unless the person keeps the mouse over the button.
Please help me get this simple problem to work.
Sassycassie
View Replies !
View Related
[CS3] Adding A Rollover Animation To An Existing Animation?
Hi there,
Sorry if the question sounds a bit confusing, but I've previously managed to create rollover animations for static movieclips, but I'm really struggling to add a rollover animation to a movieclip that already has an existing looping animation, and also ensure that there is a smooth transition regardless of where the looping animation has reached? Similar to what's in the following sites:
http://unlimited.orange.co.uk/flash/go
http://www.ileduboucanier.com/ileduboucanier.html
Any ideas/tips/links to tutorials would be greatly appreciated!
View Replies !
View Related
Storing A Dynamic Animation To A Static Animation?
Hi there.
Is there a way to create a static animation out of a dynamic animation?
Like this;
If I create a random "starfield" effect, and want it to be exactly the same every time - can I somehow store the animation to a swf or create automatic actionscript FROM the randomness I've already created?
Would be nice to know
Samuel
View Replies !
View Related
How To Create Static Animation From Dynamic Animation?
Hi there.
If I have created a dynamic animation (placing 100 raindrops on a stage using a for-loop), how can I create a static animation out of this that I can use in a animation?
The reason for asking, is that I want to create a flash-video for TV, and for that I can't use movieclips or dynamic content at all...
So I appreciate any help
Samuel
View Replies !
View Related
Timeline Animation Tweening Vs Actionscript Animation
Hi All.
The reason for this title is because I am currently producing flash banners for a company and have been looking all over the internet on such a subject.
My flash skills are somewhat limited. I currently make everything on the timeline and have started to see its limits. I find I am getting choppy movement with some of my animations.
I have tried using jpgs, pngs, gifs and vectors in flash but still get the same problems. I have tried setting the fps to 12, 24, 32 and 90.
I hear that flash 8 is apparently buggy and that you should set it to 31fps. Can anyone verify this?
Also I understand by uping the fps you start to encounter loading problems as you are starting to reload the whole piece your working on faster and faster and so computers with a low cpu will suffer.
I found by looking at using certain colours one can get around possible chopping problems and by spinning the word or image this can take away some of the effect.
I also read by setting publish to 'quality=best' can make a difference.
Next I've started reading about 'onEnterFrame' 'pressHandler' and OnMouseMove handlers in actionscript and how this can help.
Can anyone shed any light about how to get a nice simple smooth animation for a flash banner?
Many thanks
Newsense
View Replies !
View Related
Play New Animation And Reverse Previous Animation
Hey everyone. Brand new here. I am hoping someone can help me out with bringing new sections of a website into the display area, and moving the previous section out. Meaning, lets say I have two buttons, and the idea is when you click one, an animation of the content pops up from the bottom of the screen to show the viewer. Simple enough, I use gotoandplay like this:
topLevelButton1.addEventListener(MouseEvent.CLICK, handleClick);
function handleClick(e:MouseEvent):void {
section1.gotoAndPlay(2);
}
So, when someone clicks my topLevelButton1, section 1 moves up on the screen so its visable. This concept is done with 5 different buttons on my site. It works fine. The problem is, when there is already an section displaying on the screen, I need to LOWER that section BACK DOWN before the new section raises up to display when I click a different button.
How is this achieved? I understand that Im supposed to store the current animation as a temp movie clip, so that when I click a new button, Flash takes whatever is currently stored as the temp movie clip, and reverses it or plays that animation from a specific frame. I dont know how to go about this though... Help please?
View Replies !
View Related
Changing Keyframed Animation Into Actionscript Animation
Can anybody provide me with any code and technique that will succesfully allow me to convert my menu from a keyframed animation into a dynamically generated actionscript menu? I just realized that i might have to change the buttons more often than not and i would like to future-proof this as much as possible. i also want it to move very smoothly. Any and all help is appreciated
Here is the menu animation
P.S.: some of the buttons are to be drop down menus, so id like that functionality as well. Any and all help is appreciated. Thanks alot
View Replies !
View Related
Changing Keyframed Animation Into Actionscript Animation
Can anybody provide me with any code and technique that will succesfully allow me to convert my menu from a keyframed animation into a dynamically generated actionscript menu? I just realized that i might have to change the buttons more often than not and i would like to future-proof this as much as possible. i also want it to move very smoothly. Any and all help is appreciated
Here is the menu animation
P.S.: some of the buttons are to be drop down menus, so id like that functionality as well. Any and all help is appreciated. Thanks alot
View Replies !
View Related
Changing Keyframed Animation Into Actionscript Animation
Can anybody provide me with any code and technique that will succesfully allow me to convert my menu from a keyframed animation into a dynamically generated actionscript menu? I just realized that i might have to change the buttons more often than not and i would like to future-proof this as much as possible. i also want it to move very smoothly. Any and all help is appreciated
Here is the menu animation
Roll over the cross to start it.
P.S.: some of the buttons are to be drop down menus, so id like that functionality as well. Any and all help is appreciated. Thanks alot
View Replies !
View Related
Frame Animation Or Motion/shape Animation?
I know that motion/shape animations cause less lags then frame-by-frame animation, I'm making a game and I think the speed of the Flash Player is very important.
is it better to make all the motions in Flash, then play it directly or export the animation into .gif file and import them in Flash again(in order to make frame-by-frame animation)? Because the second way has a huge(I think) advantage: when you set the quality of the movie to low, the graphics' quality doesn't change for real since they're gif
View Replies !
View Related
Tweened Animation Vs Action Scripted Animation
Hi All.
The reason for this title is because I am currently producing flash banners for a company and have been looking all over the internet on such a subject.
My flash skills are somewhat limited. I currently make everything on the timeline and have started to see its limits. I find I am getting choppy movement with some of my animations.
I have tried using jpgs, pngs, gifs and vectors in flash but still get the same problems. I have tried setting the fps to 12, 24, 32 and 90.
I hear that flash 8 is apparently buggy and that you should set it to 31fps. Can anyone verify this?
Also I understand by uping the fps you start to encounter loading problems as you are starting to reload the whole piece your working on faster and faster and so computers with a low cpu will suffer.
I found by looking at using certain colours one can get around possible chopping problems and by spinning the word or image this can take away some of the effect.
I also read by setting publish to 'quality=best' can make a difference.
Next I've started reading about 'onEnterFrame' 'pressHandler' and OnMouseMove handlers in actionscript and how this can help.
Can anyone shed any light about how to get a nice simple smooth animation for a flash banner?
Many thanks
Newsense
View Replies !
View Related
Changing Keyframed Animation Into Actionscript Animation
Can anybody provide me with any code and technique that will succesfully allow me to convert my menu from a keyframed animation into a dynamically generated actionscript menu? I just realized that i might have to change the buttons more often than not and i would like to future-proof this as much as possible. i also want it to move very smoothly. Any and all help is appreciated
Here is the menu animation
Roll over the cross to start it.
P.S.: some of the buttons are to be drop down menus, so id like that functionality as well. Any and all help is appreciated. Thanks alot
View Replies !
View Related
Easing Animation Vs Time Based Animation
I want an animation to be controlled by easing, what I really want to do is a boat floats slowly then speeds up when it reaches at the other end of the screen(left to right). I know easing is effective, however; is it possible to control motion with actionscript?
I want to start slowing down and then when it reaches to certain point on the _root; it speeds up slowly.
View Replies !
View Related
Elastic Animation Or Animation Anchors
I have imported a flash animation into dreamweaver for view on the web. The width is approx. 1600 and the height 200. The problem I have is that I want the user to flow through the animation without having to move the scroll bar. Is there some way of controlling the window so that the animation always remains central no matter where you are along its length? Please help, and thanks for your repsonse.
View Replies !
View Related
Scripted Animation Vs. Traditional Animation
Hi. Just a quick question.
Say you have two movies. One animated purely with actionscript, the other with traditional animation (tweening and such). Both are the exact same movie, just constructed differently. Would one be a larger size than the other when published? Also, is actionscripted animation smoother than traditional?
I understand that these may be case sensitive, but if you know the answer I would like to know.
-thanks
View Replies !
View Related
Unload Animation , Replacing New Animation
ok a tricky one here,
a button loads a box into the main screen, - there is a close button on this box, and it unloads the animation, by fading off.
this is fine, but there are 4 options on the side, all with different boxes containing text. i want it so that when you click a new box (any one, in no order), it will unload the box with an animation, and then drop into the main scene itself.
how is this done?
View Replies !
View Related
How Do I Play Animation While Playing Animation?
For Flash MX 2004,
Wondering how I might be able to have animation play inside a button or in a scene while another button animation is already playing or finishing up. Rather than jumping to an alternate frame and skipping the end of the first button's animation, is there a "do while loop" involved?
thanks
View Replies !
View Related
AS Animation Vs Timeline Animation, Whats Best?
Hey guys, I have a few questions to some of the flash pro's out there....
1) What's better for performance ie: smoothness of animation?
2) File size?
3) Ease of use?
4) Should i be using AS animation as much as possible? Whilst minimizing timeline animation unless it is really needed?
I've tested it on a project im working on and it seems to increase performance quite a bit, although not being an expert yet, i'd like to gather some pro's opinions.
BTW, by AS animation i mean using the tween class or something similar to program the animation without referring to the timeline at all. Also, i assume programming with time rather than frames.
View Replies !
View Related
Please Help: Play New Animation, Reverse Old Animation
Hey everyone. Brand new here. I am hoping someone can help me out with bringing new sections of a website into the display area, and moving the previous section out. Meaning, lets say I have two buttons, and the idea is when you click one, an animation of the content pops up from the bottom of the screen to show the viewer. Simple enough, I use gotoandplay like this:
topLevelButton1.addEventListener(MouseEvent.CLICK, handleClick);
function handleClick(e:MouseEvent):void {
section1.gotoAndPlay(2);
}
So, when someone clicks my topLevelButton1, section 1 moves up on the screen so its visable. This concept is done with 5 different buttons on my site. It works fine. The problem is, when there is already an section displaying on the screen, I need to LOWER that section BACK DOWN before the new section raises up to display when I click a different button.
How is this achieved? I understand that Im supposed to store the current animation as a temp movie clip, so that when I click a new button, Flash takes whatever is currently stored as the temp movie clip, and reverses it or plays that animation from a specific frame. I dont know how to go about this though... Help please?
View Replies !
View Related
How Do You Export AS-animation As Bitmapped Animation?
Hello,
I am always using flash to create features in a heart-beat that would take me hours or weeks in for instance after effects. The problem is that I need to export it to bitmap information in order to use it in traditional animation programs. I know for instance After Effects 'supports' importing flash animations, but that only goes for keyframed animation as opposed to action-scripted.
The 'best' way I have found so far is to lower the framerate to 1fps, and then screenshot every second. (I am on mac so that is fairly easy to do). This is obviously not ideal in any way what so ever.
Does anybody have any hits or tips or links or ANYTHING that would be helpful regarding this, please, please send it to me!!!
Thanks a lot beforehand guys and gals!
View Replies !
View Related
Keyframe Animation... Classical Animation?
i've seen people doing more keyframe animation these days... i was wondering whats the best way... do they use graphic pens right in flash and draw each frame? or on paper and they trace them in?
I tried using a graphic pen...each frames lines would look kind of differen because of the smoothing. kind of didnt work.
View Replies !
View Related
Two Frame Animation With AS3 - The Second Animation Not Play.
Hello,
My MovieClip has two frames:
- The first frame will use AS3 to do simple animation (e.g. introduction). When the animation in fist frame is finished, the animation will proceed to frame 2 by using the gotoAndPlay(2) method.
- The second frame will also use AS3 ENTER_FRAME to do an animation (a ball bouncing between the left stage and the right stage). If without the first frame, the ball will be bouncing continously.
My Problem:
Now I found that when the first frame introduction animation is finished, it will go to the second frame. However the screen of the second frame only appear for about 0.1 second then go back to the first frame.
What I need:
I require that the first frame (introduction animation) will only play one time only. Then the animation in second frame will be playing continously. How can I do that?
Please help.
Thanks and best regards
Alex
View Replies !
View Related
Keyframe Animation... Classical Animation?
i've seen people doing more keyframe animation these days... i was wondering whats the best way... do they use graphic pens right in flash and draw each frame? or on paper and they trace them in?
I tried using a graphic pen...each frames lines would look kind of differen because of the smoothing. kind of didnt work.
View Replies !
View Related
Actionscript Animation Vs. Timeline Animation
So I just got finished watching lees tut on the new motion editor in CS4, it looks pretty sweet!!! As I was watching a few questions came to my mind. Please keep in mind I have only been in the flash world for about a one and a half years and still trying to wrap my brain around AS2.
As I have been learning actionscript I have always been under the notion that it has been better to script your animations rather than do timeline animations. While I understand that would be good for a 10-15 second web banner I never understood how you could script a 2 min animation so I always animated in the time line.
So now with the new motion editor and say the bone tool in cs4 my question now is when should you script your animations and when do you use the timeline?
Thanks,
Mike
View Replies !
View Related
For... In ... Method
Hi all,
I have some problem with the
for( iterator in Object ) method
because it iterates on my Object returning properties in reverse order
In other words if I define a Object Person with
Fabio = new Person()
function Person(){
firstName = "Fabio"
birthday = "28-10-1970"
eyesColor = "Blue"
}
and then I use
for (i in Fabio){
trace(Fabio[i])
}
this method returns my Object properties in reverse order
eyesColor
birthday
name
instead of
name
birthday
eyesColor
Is there anyone who can tell me if it is possible to get my Object properties in the same order i defined them?
Any help will be very appreciated
View Replies !
View Related
GET Method
I have a PHP script that need two variables...
what is the correct syntax in flash ?
on (release) {
Status = "Beginning registration Process... Please Hold";
loadVariablesNum ("Register.php?RegName="+RegName ????&???? RegPassword="+RegPassword, 0);
}
thnx
View Replies !
View Related
A Method Of Self Help
This may sound odd, but for those who are budding flash developers, I think I found a way (aside from buying books and what not) to learn Flash MX commands rather well.
Open Flash MX, Press SHIFT+F1 (Reference), open the INDEX on the left, and one by one click on each and READ!
I've been doing this and what makes it all sink in is that I am writing what I read into a notepad file. The process of both reading and writing (seeing and doing) makes remember not only that object easier, but you know expand your thinking process when a problem presents itself.
Like you can get a eureka moment if a problem exists, and since you remember better what you read, you have an increased chance of formulating an answer with code.
Not only that, but you should try the code out. Set aside some time to test the code you're a little iffy on, and if that doesn't work, do a google search on ACTIONSCRIPT and the keyword you're having problems with.
I'm a forgetful person, and I've been doing these steps and learning SO MUCH. Hopefully it'll work well for others too.
View Replies !
View Related
& In Get Method
Hello!
I need to pass some text to display it in my .swf movie i'm using loadVariables to do this: http://myserver.com/content.php?id=1 but in this text there are some Baltic characters like õ, now php outputs it like this: text=ettev& #245;te and when my movie sees the & it treats it like another variable for example: text=tettevote&id=1 here are two variables text and id.
Is there a way around this?
View Replies !
View Related
Method In Other Method
Why if I call a method "makeFunction()" it works and if I call the same method fro the method "Down()" it doesen't work?
dynamic class SingleMovieClipEvents extends MovieClip {
private var movieClipPath_mc;
private var functionName;
private var args_array:Array;
private var theFunc;
public function SingleMovieClipEvents(mC:MovieClip, funNa, args:Array) {
functionName = funNa != undefined ? funNa : null;
args_array = args != undefined ? args : null;
movieClipPath_mc = mC != undefined ? mC : this;
setMovieClip();
makeFunction();
}
private function setMovieClip() {
movieClipPath_mc.onRelease = Down;
}
private function Down() {
this.gotoAndStop("down");
makeFunction();
}
private function makeFunction() {
if (functionName) {
theFunc = eval(functionName);
theFunc.apply(this, args_array);
}
}
}
View Replies !
View Related
WHAT's The Best Method? . . . .
Best Method for Text ?:
Ok, need a bit of help from some flash experts with a fair few applications under their belt, particularly ones that involved formatted text.
I’ve making an interface (application) that has about 6 different sections, video, multimedia, art, noise, bio’s and poetry text. So far i’ve basically got a “thumbnail” that you click, it then goes to the corrosponding frame in that scene and the movie/file needed loads into a movie/instance in that frame called “blank” (pretty creative naming huh? ;-)).
The interface its self is fairly bais, it stay with the style of graffiti and all things load on a brick wall, using graf fonts and a few tags etc. Most things work fine except for a few hiccups.
My problem is this:
I now have about 250-300 poems to get in to the interface, all with rich formatting (bold, italics, spacing, diff size fonts, etc) and all sent as DOCS. My thoughts were to do the following:
Convert all into RTF files using Appleworks (yes, I’m on a mac) or a similar converter (Vinc seems ok), import each one into Freehand since it seems to preserve most RTF and then bring the resulting SWF file into FLASH, paste it into a basic movie that has a simple scroll bar and then export that movie and name it appropraitely, move onto the next one . . .
I know it’s possible to load fomatted text into Dynamic text boxes from text files but I’ve so far not been able to get a handle on this (am using Flash MX) and I’m not sure it would be able to handle the “aligning” spaces, etc involved. The reason I’m using a scroll bar is that some poems are very long and won’t fit on the “WALL”, otherwise I’d just paste them in a graffiti font and leave it there.
Anyway, could ppl let me know of any pitfalls they see in this method, problems, etc or if anyone knows a better way (or has or has seen any examples of one) then please let me know. Have to get started on this soon and don’t want to be half way through it when some expert points out a brilliant stylish method that I hadn’t thought of that then makes me tear my hair out.
Thanks very much for any help or advice on this, it is GREATLY APPRECIATED.
Cheers
scart
View Replies !
View Related
Which Is The Best Method
Hi,
I would like to know, does anyone have any suggestions as to the best way to create a flash video gallery that can be used in a website.
I would welcome any samples or tutorials that may be available.
I would appreciate it very much.
Cheers
View Replies !
View Related
Best Method For:
Got a project I need help with and I need to know if the fallowing is possible and if so what would be the best method for accomplishing it.
Need:
Virtually I need to know how to build a small flash GUI that allows users to name their so called "projects" then click a button ("Build") that will copys/pastes a directory and name this copy what ever the user called it on this flash GUI.
Of course this Flash GUI will have to reside in the same folder as the directory its going to be duplicating. I just need to know if I should be looking at XML help or PHP or if action script might be able to do the whole copy and paste while naming actions.
Thanks.
View Replies !
View Related
Best Method For This?
hi all, im just creating a quick thing for my dad which has lots of objects on the stage and when the user hovers over an object he wants the object to turn red (50% tint) (the object can also be clicked to go to a different frame)
would it be best to have them all just as buttons, or as movieclips and addEventListeners to them all to the one function?
or is there a different way?
thanks
Dan
View Replies !
View Related
|