MVC "DP" - Going Forward
Hi
I've just migrated over to Flash AS3 and have gone through the Oreilly AS3 Design Patterns book. I really enjoyed it and is has really helped me get started implementing DP in my development. I have already built a couple sites for clients using the principles in the book but I'm feeling like a need to go a step further and I'm not sure where to look to get the answers I need. I have a project coming up that will have a more complex view structure than what I've done before. Are there any good books or resources out there that can explain how to use the MVC "pattern" to build more complex UIs? How to further develop the Controller to handle multiple views and interactions, etc. I'm thinking a Java/Swing book may be a good resource? I've even checked out an ObjC book. Ultimately I would like to understand how an apps like iTunes, Safari, Flash etc are structured.
Thanks
Ben
KirupaForum > Flash > ActionScript 3.0
Posted on: 10-06-2007, 08:41 AM
View Complete Forum Thread with Replies
Sponsored Links:
Best Way Forward ...
Here is some code from my movie:
Code:
if (_root.user_txt.text == "000111") {
_root.play();
} else {
_root.gotoAndStop(1);
}
This was to test if the user correctly enters '000111' into the text field before clicking a button. Now I just need to test that the user has entered a string of numbers that is at least three characters in length. So all the following are correct and qualify:
0 (this is incorrect - too short)
034 (this is correct - it's at least 3 chars long)
23857248957123489589 (this is also correct - it's long enough)
Any pointers for this ?
Thanks,
Stephen.
View Replies !
View Related
How To Fast Forward?
how exactly do you have a button.. so when you click and continue to press it fast forwards. like if you have an animation. and you have a play button. you hit it and as long as you hold it down the frames will play.
This should be faster than the actual play of the movie (if you simply play the animation)
This also has to work in reverse.
maybe just something like skipping frames.. instead of nextframe or prevframe.. you can have it jump 3 or 4 frames at a time. the frame position is always at an unknown position and must forward or rewind from the frame it is currently on.
ANY Help?
Thanks
View Replies !
View Related
Going Forward... In Reverse
Greetings,
This is my first post so pardon the ignorance...
I've seen this posted all over the place but nothing seems to work. I need to have a BUTTON play a segment of time in REVERSE.
(more specifically) i have 6 pictures i want to be able to scroll from right to left when the forward button is pressed and from left to right when the reverse button is pressed.
My forward button goes 4 frames and stops on the 1st frame of the next picture tween. This looks and works great. My back button goes back 4 frames to the previous picture but it does it INSTANTANEOUSLY. I would like the reverse motion to be the same rate at the forward motion.
Any ideas?
View Replies !
View Related
Movieclips Always Forward :|
I've made a flash webpage with pretty big pics so I decided to let 'em load in various empty movieclips. well, easy stuff. the site works fine but the images are still heavy so I decided to give a simple preloader to every swf containing the pics. so, let's say, I have an empty movieclip called 'upper' and my script 'tells' the main movie to load inside it the file index_upper.swf. ok, it works. BUT the empty clips are located in the last level of the timeline. above 'em there are a pair of scrollers, a pair of buttons, a fading logo ecc. ok, here's the problem. WITHOUT the preloader everything works great with those clips loading my pics with a nice (and light...the main movie doesn't have to load all the stuff in the first place and that's cool) background effect but WITH the preloader here comes the catastrophe (is it spelled correctly ?! ). the clips that should be in the background because they are in the lowest layer are now in the foregroud covering all the other stuff that are on layer way up. so no more scroller, logo etc. I need those preloaders, the visitors have to know that something is coming up but...any suggestion ???
View Replies !
View Related
Forward Motion
hi im trying to get this helicopter to fly the up and down motion is great but i cant get the forward with tilt ar reverse with tilt to work
any ideas would be great ive atached the helicopter
thanks bob
View Replies !
View Related
Getting A MC To Face Forward
I have this cute little tank that you can drive around.
however the tank faces sideways initially so when you move it forward or back its going sideways.
ps. The tank can only go forward and backward and spin in each direction. (J+F=Fwd, U+R-Rev Turret = I or E)
I think its because the Tank MC is comprised or 2 instances of the tread MC and thats messing it up somehow...
I am using Flash 5
View Replies !
View Related
[CS3] Forward Button
Hey,
New to flash. Using CS3 actionscript 2.0.
I have pictures slowly becoming visible as the flash movie progresses. As each different picture comes into view, the buttons labeled 1-5 change from yellow to white depending on the picture coming into view.
When you click on a button it goes to that particular frame and stops, so you can click on 1-5 and go back and forth through pictures.
However, I don't know how to program the forward button to jump to different frames depending on what is going on. The pictures are movie clips, the 1-5 are buttons, and I have used labels when the buttons jump.
Thanks,
Tacos
View Replies !
View Related
Forward Html
hey is there a way for flash to forward a url in the flash itsself
ive seen it happen.... i click on an old navbar and it takes me to an html page,, but it is within the flash border
View Replies !
View Related
Hi,..btn Back And Forward
Hi,....I would like to do a BACK and FORWARD button like IE,...but I don't know how I can do that,......I explain
In my SWF I have 6 scčne, and two button one back and one forward and if I pass from scene 1 to scene 4 and I click on the "back" Button, I would like to return has scene 1 not scene 3 and 2 , how can I enregister a history of the last visited scene ..
thanks a lot!!!
View Replies !
View Related
Best Foot Forward
Hi guys,
I've got a project to work on and thought the best thing to do first is carefuly plan how i'm going to build the movie so I make the best use of time and keep the movie small. I've got an advent calendar to create, so my movie will have a background image with square windows over it. Each window when clicked will need to animate open, then you zoom into the opened window to see the animation for that day. When the animation in complete, you zoom back out to the original view so you can click on another window. Once a window has been clicked, it remains open with showing an image like a normal advent calendar would. I think ppl should be ablle to click on opened windows if they want to see the animation again.
How would ppl suggest I build this movie?
I need the following things to happen:
1) Each window needs to animate open.
2) The user needs to zoom into the window.
3) Animation needs to play.
4) Screen zooms out.
5) The clicked btn has been swapped and now shows an image instead
Please note that each time the movie zooms in, the state of each window should remain as it currently is, so the windows that have been replaced for a graphic stay as a graphic and the ones still to be clicked on remain in their original state.
Hope this makes sense.
Any suggestions on structure would be appreciated but please go easy on the newbie!
View Replies !
View Related
Forward Button
I have a flv file....I build controller with forward button and also back button....
Is it possible to use a forward command in this case...I know I can use stop or play...but as for forward with flv file ?
View Replies !
View Related
Move Forward
Hi! i am working on game that u see the character from above(i dont know to say it...like gta for example).
Hmm... this is part of what i have done to my character:
if (Key.isDown(Key.LEFT)) {
_rotation -= 9;
}
if (Key.isDown(Key.RIGHT) {
_rotation -= -9;
}
How can i make him go forward or backwards?
View Replies !
View Related
Forward Command.....
I have a flv file....I build controller with forward button and also back button....
Is it possible to use a forward command in this case...I know I can use stop or play...but as for forward with flv file ?
View Replies !
View Related
Fast Forward
I checked live docs, but couldn't find my answer.
Does Flash Media Server support video that can be fast forwarded, rewound, skip sections, etc?
Thanks
View Replies !
View Related
Forward And Backward
PHP Code:
onClipEvent (enterFrame) {
if (this._currentframe == 1) playMe = true;
if (this._currentframe == this._totalframes) playMe = false;
if (playMe == true) this.nextFrame();
if (playMe == false) this.prevFrame();
}
PS: I've seen this asked a few times in some forums... I thought I should share my way.
View Replies !
View Related
Skipping Forward
How can i make it so the animation automatically moves on from the loading screen? I have a loading sequence as part of a full flash site, yet when the site is published on the internet, the animation won't move on from the loading, without you controling it through the right-click controls. I really need this sorting out.
Thanks.
View Replies !
View Related
Fast Forward A MC
what are the script or function to fast forward a animation? i dont want to use the setting in the frame rate in the flash window editor there. Lets say a animation in real time took 20 seconds to run, i want to make it to 5 seconds to run the whole animation, any solution? thanks for reply
View Replies !
View Related
Fast Forward Through .SWF?
I'm doing a presentation for a company called Halderman ... not like you need to know that, but anyways, and I keep having to play the presentation over and over again to see what I've done - if the audio syncs up correctly and such ... but the presentation is almost 6 minutes long and each time I've got to watch things all the way through just to see something towards the end (if it is working correctly etc.) Is there an easy way I can fast forward while watching the presentation - just so I can see the new changes I just did rather than watch the whole thing through everytime?
Thanks,
Boon.
(could use help on this ASAP please!)
View Replies !
View Related
Going Forward And Back...
Hi all,
Super easy question I hope.
I want to allow users to scroll through some photos simply using a forward arrow and a back arrow.
I only have to load about 10 photos so can probably keep everything in one movie.
But, what code do I associate with the back/forward arrow buttons.
Argh, I know this must seem stupid to many of you. Sorry and thanks
Kellys
View Replies !
View Related
Box Spinning Forward
im trying to figure out make it box spin smoothly like
it will fades in and spin toward to you. but somehow i cant figure out why the box dont spin like forward it looks like spinning by left side. Well i suck on explaining for flash im new with flash thingy.. so heres a swf for ya guys to understand what im trying to do
all im trying to figure out to get it actual looking sping forward to you smooth like correct shape of vertical. hard to explain .. check it out fla file
http://www.level5studio.com/spinner.fla
http://www.level5studio.com/spinner.swf
View Replies !
View Related
Fast Forward.
Long time reader, first time poster here.
A quick Flash question. Imported a video, and attempting to make controls for it. Is it possible to use nextFrame to create a fast forward button?
Cheers in advance.
View Replies !
View Related
Footer Game Forward
Since Flashkit took the Game Arcade away, how about a footer game challenge. If you have a game in your signature could you please post it in the Games forum under the Footer Games thread?
pkw
View Replies !
View Related
Javascript Back And Forward
I have a webpage with multiple frames (a lot of frames! i think like 10 or so). On one of the frames is the menu and in the other the main contents.
1. What is the javascript for going back and forward? javascript:back() and javascript:forward() i think, but i'm not sure
2. Should i put this in an fscommand or geturl?
3. Any recommendations on how to get the main contents page to go back
View Replies !
View Related
Forward And Back Buttons ?
Hi,
i've created a number of flash movies using Flash 5.
I've included the first flash movie in a HTML page and put it at:
http://www.itsasix.com
when a user clicks on a button on the main flash movie, it will load another movie in its place.. the code i've used in ActionScript to do this is like:
on (release) {
loadMovieNum ("teams.swf", 0);
}
So the user, may navigate through my many flash movies by clicking on the various navigation options (e.g. Team, Events, FAQ, etc).
But... how come I cannot use the forward and back buttons to go back to the last flash movie that was loaded? Instead it goes back to the last HTML website I viewed!
Also, i've made a number of flash movies instead of just BIG one is because it's easy to manage the .fla and it'll load quicker for the user. This is normal, yes?
Hope this makes sense! and Thanks for looking,
Shams
View Replies !
View Related
FORWARD And BACK Via ActionScript
Hello people.
Ok, I have two buttons, one for going forward and other to go back. To go forward I use:
on (release) {
play ();
}
But how can I use ActionScripting to do the same but BACKWARDS, instead of using:
on (release) {
gotoAndPlay ("2 company", 1);
}
across every one of the 25 scenes I have?
Thank you.
View Replies !
View Related
Fast Forward Button
Hi all,
Here is the problem. I've made an interactive procedure (something technical) with a few movie clips that shows an engineer how to do something.
Each clip runs about 2 minutes (these clips aren't video, they show how to install something on a machine, screenshots with explanations, etc...) and at the button i have a control box with play, pause, rewind, next buttons. However, I need to make a fast forward button so the engineers can get to where they need to in the clip without waiting forever.
Is there a way to make a fast forward button that will either make that particular movie clip run faster (then continue at normal speed when you let go of it) or perhaps to make a button that will jump X number of frames forward in the movie clip whenever it is pressed?
Thanks in advance.
View Replies !
View Related
Two Steps Forward, One Back
I need the gotoandplay to step two frames forward then loop back one until query is complete. Problem is it initially loops back to the original frame where the submit button is located. After I hit the button the second time it goes ahead and completes the query.
Frame 19:
on (release, keyPress "<Enter>") {
ownerinput = ownerinput;
startnum = 1;
endnum = 20;
loadVariables ("_variables.cfm", "", "POST");
gotoAndPlay (21);
}
Frame 20:
if (_root.Status == 1) {
gotoAndStop (21);
} else {
gotoAndPlay (20);
}
Frame 21:
bunch o'stuff to parse the returned cfm data.
View Replies !
View Related
Forward And Reverse Play
I have a timeline with six images which have the effect of travelling in a loop from foreground and then into the distance. I want to have 2 buttons one for forward movement and one for reverse movement. I would like to use an on roll over event to trigger this movement. "Next frame" and "play" works fine in the forward direction. However, "previous frame" stops after only one frame and has to be "roll out" "roll over" repeatedly to make it move backwards. Is it possible to get a timeline to play backwards with actionscript or is it necessary to duplicate the timeline and reverse the frame order, jumping between the two.
If it isn't possible I think it would be a welcome addition to future flash releases.
Thanks for you wisdom.
Manson
View Replies !
View Related
How To Forward Ecards From A Site
I am making a calendar with ecards for specific dates and I need to have a button where the visitor can send the specific ecards of their choosing to a friend. I need to make a button that will automatically send that swf file to th email recipient entered. Is there a tutorial or fla file that I can reference to learn how to do this? Or do you know how I can do it?
Thank You
Bridget
View Replies !
View Related
Forward And Rewind Buttons
OK. I have spent the last 12 hours doing extensive research on numerous sites for an answer to this, but maybe I have overlooked it. I have an MC on the main timeline. In this mc, I have inserted other mc's in each frame. (ie: frame 1 is mc1, frame 2 is mc2, etc...) What I want to do is have control buttons on the main timeline that control the nested mc's. Basically what I want is forward 1 frame, rewind 1 frame and rewind to beginning buttons. I have looked at Colin Moocks historyNav example, but I'm not sure if it will incorporate into my project.
Here's the layout. The user clicks a menu button. The menu button brings up a menu with multiple selections. The user clicks on a selection which causes the user to go to the appropriate frame in the mc on the main timeline containing the appropriate nested mc. The user should then be able to click a forward button to move them to the next frame in the main timeline MC, thus bringing up the next nested mc. **I pretty much have the forward button functioning by using:
on (release) {
ImagePHmc.gotoAndPlay(_currentframe + 1);
}
The user should also be able to click a back button to take them to the previous frame (previous nested mc), or click a full rewind button that will take them back to the second frame of the main timeline mc (the first frame is blank), thus showing the first nested mc. These are the buttons I am having problems with.
Am I doing this all wrong? Can it be done this way? If anyone has any suggestions, I am open to them.
View Replies !
View Related
Flash Forward NYC2002
hi there
to those of you who didnt make it to the New Yorker hotel this week, here are some links worth checking out:
Sam Wan gave a cool presentation on components earlier today - all files will be on his site soon
http://www.samuelwan.com/information
also Kevin Lynch gave a uber cool presentation and I filmed part of it which I'll upload later on tonight if not later this week
For more on the Comm Server, check Reinhardt's site/presentation here:
http://www.theMAKERS.com/workshops/ff2002nyc/csmx
user: csmx
password: streams34video
Will be posting updates and links regularly plus some pics from the conference and a full report hopefully this weekend.
Thanks to MIke Chambers for his contributions to this board and for allowing us to become part of his Flash Enabled posse
ill scan the sticker so youll know what this joke is about lol
a
View Replies !
View Related
Back / Forward Nav Buttons
hi there
i have a flash file that has seven sections which can be navigated through via the actual flash file nav, upon clicking the nav it jumps to another place on the main timeline! i would like to know if its possible to also use the browser forward and back buttons to navigate as well.. . can this be done?
many thanks
View Replies !
View Related
Fast Forward/Rewind
Flash MX
The buttons and this script are in the main timeline:
**fire is a movie clip within this timeline that houses the sound object, fireSong. revButton and ffButton are instance names for my rewind button and ffButton,respectively.**
Code:
this.onEnterFrame = function () {
if (REV==1 && fireSongPosition>0) {
fire.fireSong.stop();
fireSongPosition=fireSongPosition-.5;
fire.fireSong.start(fireSongPosition,0);
}
revButton.onPress = function () {
REV=1;
fireSongPosition=fire.fireSong.position/1000;
}
revButton.onRelease = function () {
REV=0
}
if (FF==1 && fire.fireSong.position<fire.fireSong.duration) {
fire.fireSong.stop();
fireSongPosition=fireSongPosition+.5;
fire.fireSong.start(fireSongPosition,0);
}
ffButton.onPress = function () {
FF=1;
fireSongPosition=fire.fireSong.position/1000;
}
ffButton.onRelease = function () {
FF=0
}
}
I cant see any problems but the buttons are not rewinding or fast forwarding
[Edited by Sinister67 on 09-14-2002 at 02:02 PM]
View Replies !
View Related
Fast Forward & Rewind
Does anyone know a code to fast forward and rewind the main timeline? I have 4 to 5 minute movies(with scenes, but I can take them out) and I don't care how it rewinds or fast forwards. Whether it be 20 frame jumps, or just reverse scrubbing, anything will do.
View Replies !
View Related
Forward And Back And Stop?
I have made a geallery movie clip and have the controls on the main timeline.
Iam using the following script to play the gallery mc forward and back:
onClipEvent (load) {
this.stop();
}
onClipEvent (enterFrame) {
if (_root.direction == "forwards") {
this.gotoAndStop(this._currentframe+1);
}
if (_root.direction == "backwards") {
this.gotoAndStop(this._currentframe-1);
}
}
However at approx every 25 frames a new image appears and I would like the play stop there and continue to previous or next image on button press. Below is the script for the button:
on (press) {
_root.direction = "forwards";
}
and
on (release) {
_root.direction = "backwards";
}
At the moment the mc will just continue to play, can I make it stop at a set point?
Best Regards
Troy
View Replies !
View Related
Jump Forward In Movie?
Hi Gang,
anyone can tell me how i can jump forward in a movie with the click of a button. I have a scrolling text field and i want to enable the viewer to push a button and jump forward say 20 0r 30 frames at a time. Mustn't be a jump to specific fram only jump+20 every click until end of movie etc.
Any help would be gratefully appreciated, i'm under a bit of time pressure with this one.
Regards
Dave
View Replies !
View Related
MC If-then Play Forward-back..........?
Brand new to actionscript (scripting period), but trying to create my first. Haven't found quite the right answer on the existing boards, so I'm posting:
- I have a movie clip named "test", 60 frames in length.
- I have created 6 buttons, each to progress or digress the movie 10 frames (depending on rollover or rollout)
- Button 1 needs to do the following, and then I'll figure out the other 5 from there:
onRollover
-if target "test" is at frame 10 or higher, then play backward (from current frame) to frame 10 and stop
-if target "test" is at frame 10 or lower, then play forward (from current frame) to frame 10 and stop
onRollout
-play target "test" backward (from current frame) to frame 1 and stop
Any help is good help... thanks.
View Replies !
View Related
Flash Commercial, But How Do I Forward...
Good day all. Alright, I have a commercial I made, and it runs for about 15 seconds. After it is over, I want to send the web surfer the the homepage. How do I loop the moive once, and when the moive is over, send them to the index.html page?!!??! I currently have a short moive with a skip button, the skip button, when pushed, jumps to frame number 149 (outta 150). But how can I make the browser automatically forward the client to the homepage?? Appreciate any help anyone can give!! Thanks guys!!
- Moomancow3k
View Replies !
View Related
Forward And Back Arrows
I have a movie that load other movies into level1 and a navigation bar into level2.
Each movie has stop actions througout. Is there a way to make a forward and back button in the navigation movie that will go to these frames and if at the end or begining of a movie will goto the previous or next frame in the main movies timeline?
Kind of like you can do in Director with frame markers?
Or would I have to just put these buttons in each movie with a separate action to go to each individual frame I want it to stop at?
View Replies !
View Related
Forward And Reverse Controll HELP
Hello, thanks ahead for all the help. What I’m trying to accomplish here is control of a movie clip. Take a look at www.kingsasylum.com , do you notice that scroll menu on the bottom left. What I would like to see is when you press a link on the menu to the right, on release the scroll box will either scroll forward or backwards depending on what link is pressed, and stop appropriately. Thanks guys! Flashkit rocks!
View Replies !
View Related
Back And Forward Buttons - Help
Hi,
What I am trying to do is to make a flash 5 movie, to be controlled by two buttons. Just like on internet explorer where you can click backwards and forwards. So my page is like a screen with all the text on and when you want to go to the next page, the movie plays the next motion tween, bringing up the next page of text and stopping. And if you want to go back it would just go to the previous 10 frames and bring up the previous page.
This is what I tried using for the backwards button:
on (release) {
ifFrameLoaded (60) {
}
gotoAndPlay (40);
}
on (release) {
ifFrameLoaded (40) {
gotoAndPlay (20);
}
}
And for the forward button I used this which kind of works, very badly hehe: on (release) {
play ();
}
The movie has the stops already in it, so that kind of works...
Anyway, I really need some help, all would be greatly appreciated!
Cheers
Kev
View Replies !
View Related
So Difficult With Forward Button
Hi everybody
I have created a Flash MX movie, which contains some presentation with sound. The movie has about 2,000 frames and split into some 5 scenes (for example scene1 (150 frames), scene2(220 frames)…scene5 (300 frames)). I want to use ONLY ONE button set for the whole movie: play, stop, forward and back buttons to control the movie. I therefore would like the forward button when clicked, it leads to the SECENE NEXT TO THE CURRENT SCENE (I mean frame label – Ieg: when scene2 playing and forwards button clicked, we’ll see scene3 and when scene4 playing, button clicked, go to secene5 .. and so on). I cannot apply the “go to frame label” command as it can only be OK for one defined label. Please help ! All of your suggestions will be highly appreciated! Thanks a lot
Cong Thanh
View Replies !
View Related
Previous And Forward Buttons
i created a movie in that i placed 4 slides in a layer1 in frame 5,25,45,65,85.
i had created a movieclip a rectangle in shape whish is static in a layer2
on rollover the movieclip rectangle i placed 2 buttons one is "previous" button and another is "forward" button.
on running this i want the button operations like the following
1. on clicking the "forward" button the the movie have to go to the slide 25.
2. from there if we click the "forward" button it should go to 45and so on.
like this
1. on clicking the "previous" button from the frame 45 it should go to the 25 frame of the movie and so on.
every thing is working but what the code i write in the button which is in the (rectangle shape)movie has taking the only one action. ie., when i write on(release){ _root.gotoandplay("25")}
it is globel to all position on the button.
so only this action can only is taking place.
so i want the action script to be global and as well as my above constrains should also satisfied.
for this what to do
pls help me out
note: if u give ur personal id i can send the fla file to u(which i a had this problem) since the file i zip is big to attach here i asking ur personal mail id to send the fla.
from
aristotle
note: if u give ur personal id i can send the fla file to u(which i a had this problem) since the file i zip is big to attach here i asking ur personal mail id to send the fla.
View Replies !
View Related
Back And Forward Buttons?
Is there anyway to make the browsers back and forward buttons work within a flash movie? I'm thinking something with a variable being set every time you enter a new page and then when the user hit's the back button you could use that variable to enter the previous page?
Is something like that even possible????
Thanks
View Replies !
View Related
Forward And Rewind Button?
I need to create a forward and rewind button for a video clip. I also have sound with those video! They are in the library and I use the attachSound method!!! I would like to see a tutorail for that! I found one in the tutorial section, but it's 3 years old....It didn't work with MX!!!!
Thanks
View Replies !
View Related
|