ActionScript 3.0 :: Learning About Scope And Packages
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
Similar Posts:
Jul 1, 2004
I add this actionscript code on the first frame. Variables are loaded but. The question is below the code.
[Code]...
View 2 Replies
Apr 2, 2010
I have a Debug class I've written, and I'd like to include a static trace() method in there, unfortunately I have no idea how to then access global / top level trace as effectively I've blocked it with the local static scope.[code]
View 4 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 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
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
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
May 26, 2011
How long would it take for a raw beginner to learn Action Script 3 coding so as to have a basic understanding and an ability to code Flash.Also to be able to take existing code and adapt it to suit ones own flash project ?Are there any training videos on such or good books to read ?What is the best way of learning AS3 ?Is it in fact best to forget AS3 and get tuition in programming or some other discipline then take a look at AS3 and what timescale would be suitable to achieve this so as to meet the goal stated above
View 6 Replies
Feb 20, 2010
What are good books / site where you can learn the best practices for event driven programming in actionscript (3 obviously).
I've got a big project coming up and, to be honest, my flash is usually a big mess of classes and I don't want the the next one to turn into a ball of hair behemoth.
View 2 Replies
Aug 19, 2009
I'm having trouble getting two buttons to do anything. Right now I'm in the process of learning Flash to make a customized video player. I have a rewindButton and a playButton and both have up, over, down, hit assigned but when I run the video and hover over the buttons the mouse changes to a text cursor. No colors change and the buttons aren't clickable.I followed the Flash Video Basics 1 and 2. Also, when I take the // off of the ns play bnc.flv line, the audio echos. I have no idea what's going on.
Code: Select allvar nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
[code].....
View 1 Replies
Mar 13, 2010
I know javascript, CSS, AJAX, and HTML/ XHTML. I was told to learn these in order to make an application for the iphone. Now what? What/how do I start learning objective-C?
View 1 Replies