ActionScript 3.0 :: Reset Page Sequence In E-Learning App?
May 11, 2011
I am just starting to get comfortable using as3 to create e-learning applications. I have this xml file that has a list of swf files that gets called(loaded) into a holder_mc when the user clicks on the forward btn or the back btn. Pretty simple...and it is working nicely at the moment.
I also have another loaded swf that has a menu which contains linkages to 8 chapters. Basically, when the user clicks on a link in the menu it takes them to a specific location in the course.
Here is the issue: example: let's say the user is on page 4, in the course, and decides to click on the menu and jump to page 28. After jumping to page 28, if the user clicks the forward button, the application takes them to page 5, instead of page 29. So, how do i write a script, and/or change the xml file so that the "forward" btn takes the user to page 29, instead of page 5? I think some kind of reset function needs to happen either in the as3 script or the xml file, but i'm not sure how to do that.
Here is the xml file sample:(this is a short sample of the xml file)
<course>
<page>
<file>welcome.swf</file>
</page>
[Code].....
View 6 Replies
Similar Posts:
Jun 5, 2006
I know how to pass vars from php to flash and from flash to a "new" php page but here is my question.
I have a php page (page1.php) with some HTML and a php variable called $number. page1.php also has an embedded test.swf movie. While working with the test.swf movie, I want to send data back to the $number var on the page1.php without reloading the page1.php because then it would reload the test.swf movie.
I have been able to use javascript to change background colors on page1.php from within the test.swf movie but cannot figure out how to set a php variable from within the test.swf movie.
View 2 Replies
Jul 13, 2010
Just new in forum and just new in as3 programming. All i want to do is to make some physics simulations (i'm physics teacher...). So i made my first sim with the following code, just to simulate a simple motion with constant velocity. It works ok, except the part i need to reset the display by the means to start the motion all over again (reset button). Then the motion starts but the traces of the previous motion remains on stage. I tried the null command (sp=null) but the sim could not start again because the sp nedded to be non-null...
[CODE]...
View 2 Replies
Apr 13, 2011
I have an issue with adding a reset button to my drag and drop movie clips.The problem is, if a student drags a movie clip to a wrong location on the SWF file I want them to be able to hit a reset button that would take them the same SWF that they opened and what would showup would a clear page for them to restart their drag and drop exercise.I know how to make the button for this just want the proper action script to be able for user to start over with no movie clip symbols on the page.
View 3 Replies
Jan 12, 2011
I have a flex application that has a home button. I need to reset the application when this button is clicked. I can't use navigateToURL or ExternalInterface.call("window.location.reload"); as its not acceptable to reload the swf file.
View 5 Replies
Dec 28, 2010
reset in google yields only its use for timers.However I have code bg.reset() which I suppose puts the background back to the beginning of its timeline.
View 3 Replies
Jan 26, 2009
i'm trying to build a flash site and ran into a problem... i have a gallery page with a bunch of page numbers at the top. when you click on one, a movieclip loads of some images coming in.so the problem i'm having is that i made a little animation for when you roll the mouse over the page number (they scale up when the mouse is over, scale back when the cursor moves away)... what it's doing is when you roll over, it goes to a certain frame in the timeline and plays that animation.that's all working cool, but i need it to not do that once it's clicked on. so basically when you actually click on a page number, the over script should stop until you go to another page... here's the code i've written,
function over(event:MouseEvent):void {
this.gotoAndPlay(30);}
function out(event:MouseEvent):void {[code].....
View 0 Replies
Dec 2, 2010
Sorry if this has been discussed somewhere else on stackoverflow (I could not find it), or if it is not a "programming" question (more like a discussion). Is it good to avoid using an IDE (Flash Builder, Visual Studio...) while first learning a new framework or language?
[Code]...
View 5 Replies
Jul 26, 2006
I've been Actionscripting for quite a while now, and a lot of the sources I see and books I read talk about something called XML. I understand that its a formatting language used to communicated with servers, and the syntax looks like html.
I have a few books on AS, but I don't really get the XML stuff. Is the idea that I use an XML segment of code in my Flash to import in a document to flash at runtime? Or is it that I can load variables from an external document? I don't have my own server but I do have the ability to upload files to servers, so I could probably make a file that can communicate with an SWF, and I'm told XML is the way...
So does anyone know a good way to learn about XML, and what is actually is and can do?
View 4 Replies
Jul 15, 2009
I have made a script, and now has come the point when I need to use removechild. Whenever I try this I get an error. After looking at the problem, I think I need to learn more about scope and packages. I think if I put everything in the correct scope, I will be able to use the removechild command. I tried to make all my vars public, so that removechild would work, however I got an error that anything public needs to be in a package. I tried to add the package part to my script, but got the error that packages cant be nested. I tried some other things and still no luck, just more errors.
So, if anyone could point me to a tutorial, or recommend a book or something, that will help teach me about scope and packages, Or if you are feeling patient and generous, and you think you could explain this problem to a 5 year old, please explain it to me the way you would to said 5 year old. If you maybe think you can help me out on the script, it can be found here: [URL]
View 14 Replies
Jul 26, 2009
I'm trying to learn how to use flash, and there's only so much I can learn on my own. I looked up some books on various websites, but I don't know which would be the "best" to use for someone completely new to the program.
View 2 Replies
Sep 2, 2009
I've gotten far on my own just using online tutorials and dinking around in Flash on my own but my boss(es) are starting to ask for more complex stuff that I simply can't learn by just piecing together my Flash education.I know there's many, many books out there that will teach you Flash but can anyone recommend any particular one(s) that are more concentrated in creating Web elements as opposed to game or animation development?
View 2 Replies
Apr 13, 2011
I have created a Flash file with 4 "Fill in the Blank" questions (from the Learning Interactions continued within Flash CS3) at the end. I'm then using the swf file in two different ways. One way simply loads the swf file onto a 'stand-alone' page on my website and it works perfectly.The other way I want to use it is integrated into a more complicated website where I have a Flash File into which various swf files are loaded when needed. In this version the "Control Button" doesn't change to "Check Answer" and "Reset" as it should and the whole question doesn't work. The working version is at url..Select "4 For You to Try" to go directly to Quiz Questions.The non-working version is at url...Go to "Extras" in Menu and select Naming Alkane Isomers, then "4 For You to Try" again.
View 7 Replies
Oct 25, 2009
Any pointers where i could start learning flash programming. Also i would be really grateful if you could point me to place where i could get free templates for the programming
View 2 Replies
Apr 12, 2010
What would be a good resource for an experienced programmer to learn Flash?Consider a very seasoned programmer that doesn't require any teaching of programming concepts and that already programmed Javascript. Someone who never created a Flash file, or even know what Flex is. Someone who could probably learn ActionScript in a day but still needs to learn how to apply it.
View 2 Replies
Mar 4, 2011
Can i learn Flex without learning ActionScript 3?
View 4 Replies
Jul 8, 2011
I am trying to learn flex4 from adobe document and I am very confused while using three namespaces.. there is no way i can keep track of when to use what often ending up using fx inside mx or s or similarly making some stupid goofed up combinations of {fx,mx,s}.
Adobe document is huge and i am looking for some good starting point for learning flex .
View 2 Replies
Aug 10, 2011
I need to learn ActionScript. I have no basic knowledge on ActionScript. Can I directly start learning ActionScript3 or I have to start with ActionScript1.
View 3 Replies
Sep 21, 2009
I have been learning about classes and oop programming with AS2. I think I have a very good idea of how it all works, but I'm lacking in one final area before I can truly say I'm coding in OOP.Currently, I use a contentmanager class to route all button commands through. This class handles the removal and preperation of the stage for content change, and then seperate classes handle the actual loading and placement of the new content.So in a way, its not really OOP, just very well organized code.
The next step is Event Management in AS2. I know it can be done, I read through a few tutorials, but get confused by it all.What I'm looking for now is two things.. a very good Event Management tutorial or article if anyone knows of any..as well as a sample site that can be downloaded or viewed which has been written using OOP. I want this sample site, to re-evaluate how my current way of programming holds up compared to more proffessional examples...
(Perhaps even we can turn this into a hot thread with examples of code and structures to help other developers trying to gain a grip on OOP..?)
View 3 Replies
Jan 15, 2010
I'm trying to learn loops, and I want to make this code functional,IE i want the ten clips to appear..How would I do this?
[Code]...
View 9 Replies
Sep 19, 2011
Good books for learning as3.. I'm a beginner in action scripting but i'm quite enthusiastic about it.
View 1 Replies
Sep 25, 2008
I have been in the print world for a while and flash has changed quite a bit. I am interested in learning about rich media and expandable banner ads.
View 4 Replies
Dec 7, 2011
I've been learning greensock and I find it helpful now when studying greensock I've been introduced to Gaia does anyone here have an opinion on Gaia?
View 3 Replies
Nov 27, 2009
i have been learning ActionScript for 7 or 8 days now. It's been a easy journey.
I'm curious, what is the hardest topic when you learning ActionScript ?
When i'm learning C++, pointer is a brain buster. What is the hardest topic for ActionScript ?
View 9 Replies
Sep 26, 2011
I want to create a subtitle for ourself language from lynda video training.(my language is persian)But it's very difficult work... I need somebody for create subtitle in english language... and this work very easier make subtitle to every language.let trying to create subtitle for this video ActionScript 3.0 in Flash Professional CS5 Essential Training
View 1 Replies
Oct 8, 2006
I am using a learning interactions quiz at the end of an animated movie. Because it is entertaining I would rather not launch as a standalone quiz. Everything works perfectly when the quiz is on its own timeline that starts at frame1, but whether I use loadMovie or use the quiz as a movieclip, or start the quiz on frame 1460 on the scene1 timeline the calculate score control doesn't work. It is called mc, frameNav and it comes with the Flash quiz templates. The AS associated with that mc is below.
[Code]...
View 1 Replies
Aug 23, 2011
I need to make a learning device in flash similar to this [URL]..anyone know any tutorials that would ? im fairly new to flash.
View 4 Replies
Mar 28, 2012
I am very much a beginner to rails and I have a specific need for it. I wish to connect it to a flex app, and also use it to call a database.
For example when the following web page is visited: ?User=bob&id=4&lic=234 Take 'bob' and 4 and add them to an existing database table if the license number is valid and not already used. I don't want to use the standard database stuff, I will need to write my own SQL queries as well as have logic for checking other stuff to do with registering users etc. It is already done with Coldfusion but I am having issues with it, and would like to have it work with Ruby instead.
But to start with, I just want the ability to call a web page (on localhost:3000) get the string after the URL "?User=bob&id=4&lic=234" in this case and output "User:bob id:4" to the screen. I want to learn what the code is doing rather than have the least lines of code solution. I would rather use as little of the rails framework to do this as this will help me learn the language. I won't be making the standard website so learning the rails framework won't be so useful to me.
looking for, however I am having problems connecting with databases, mysql in this case:
[Code]...
View 1 Replies
Jan 22, 2009
I am looking at the creation of a quiz using the Learning Interactions in Flash.I noticed that when I place say a Multiple Choice question on the stage that the area which says 'Question will appear here' is a dynamic text field.This renders the final text bitmapped. Is there any way of getting the text to look like smooth like the rest of my work?I have tried to anti alias it for Animation and Readability but it doesn't change.nd in all honesty set against the rest of my work the text looks crap.
View 1 Replies
Apr 8, 2011
i just started with actionscript and flash in general a few days ago.. so im sorry if i might ask dumb questions the last 2 days i was looking for answers on the interwebs, but im just not ready yet to read and understand tasks properly, so this is my first forumthreat ever my project: i want to make a homepage (mainly for learning) with a menu (loaded swf).that menu is a panorama with buttons on it, so the menu loops to left or right according to the mouseX position.i succeeded to have that menu work, the buttons work (until now) as well, but the code that should clone the loaded content doesnt!i took those code snippets from riacodes here is my code:
Code:
import flash.events.MouseEvent;
import flash.display.Loader;
import flash.display.Sprite;
import flash.events.Event;
[code]....
View 6 Replies