ActionScript 1/2 :: AS 2.0 Coding Standards
Jul 28, 2010i need to take session on AS 2.0 coding standards.i am not sure what are the topic need to cover.
View 1 Repliesi need to take session on AS 2.0 coding standards.i am not sure what are the topic need to cover.
View 1 RepliesIs there a set of open standards technologies that I can use to achieve the same way of development as in Flex and Sivlerlight? I am talking about componentization, separation of concerns, rich graphics, states and effects . Please point out some tutorials and other resources if possible.
P.S. I KNOW that this is technically possible, so please do not respond by sending google search results or general JQuery tutorials. I've seen those already. I need to know how a Flex / Silverlight developer could design and implement an application in roughly the same way (imagine a rich HTML tag set, much like XAML/MXML, behind which stands JavaScript responsible for handling events and business logic.
I've previously worked for commercial companies and when developing a Flash Actionscript 3 class path, we would use the industry standard such as: com.companyname.* for where we stored out classes, and set up the directory structure with the com folder being the top level. Now, I'm working for a company who's URL ends with .org should I make the top level folder org or leave it as com? What about people who make classes for educational systems, do they use edu or com?
View 1 RepliesI am using Flash 8 and I'm having a problem with a line of code that uses _root. This code is used in a swf container movie to ensure that my HTML page validates properly. This page is where the line of code comes and explains why it is needed. A List Apart: Flash Satay: Embedding Flash While Supporting Standards
[Code]....
I have 6 MC on stage with a button on each. When clicked it plays the timeline in the MC. I want to make sure that none of the other MC are playing or 'open'. So I wrote code in each clip to close the others down, but it just seems a really lengthy way of doing it.
So I've been trying to figure it out with var/strings and some script like. btn1.onRelease play this... if there is another MC open then close it. someone point in the right direction. So I can learn... I've thought about this alot and I would use this way of coding alot. rather specifying and repeating the statement on each clip.
_root.object_1.sunny.gotoAndPlay("walk"); _root.object_1.sunny.gotoAndPlay("laugh");Hi, I code the following. But it jumps straight to the seconf mc "laugh". Is there nbo way of playing walk and on finishing playing laugh.
View 4 RepliesI m loading images from a folder through XML, i want to set their registration point to center after all are loaded
View 2 Repliesi'm having a strange, strange problem while passing text from xml to flash at my xml, where i'm using utf-8 encoding, i have this <pt><![CDATA[obras de ref hen i try to read this info in flash, the "" and "" change to "e" and "E" and i can't understant why. frst i thought i could be some kind of problem with the font but its not. i traced de xml file right after loading it and it had already changed trace(event.currentTarget.data)
View 2 RepliesI'm keen to use movieclip instances instead of button instances, but I will have a lot of buttons. If I use MovieClips: Is there any way to avoid coding the rollover functions etc. for EVERY movieclip instance? - ie is there anyway to code the behaviours into the master Movieclip button (ie the way buttons have built in behaviours), rather than have to add multiple event listeners to every instance - just to get a rollover effect?
View 1 RepliesI've been having to rebuild my as2 site into as3 which has difficult. Half of my revision has code is inside the FLA and half is outside. A lot of tutorials I find for advancing are outside the FLA. Is there an easy way to consider moving my code from inside the FLA to outside the FLA? As most tutorials I find online are like this. However, I don't know what I need to consider in making this swap. The package/constructor method for classes is really new to me.
View 5 RepliesI'm trying to get better at coding but I'm having a hard time with this one. How do I turn this into shorthand:
[code]...
Ok Im just a little confused on what to do. In my menu I have 2 drop downs. each one is a separate Movie Clip and inside that Movie Clip they have other buttons that are separate Movie Clip. I have a class set to the buttons for a rollover action but it isn't working.How do I set actions to Movie Clips that are in other Movie Clip? Like how would I add links to them?ere is a copy of my AS3 Class and a copy of the drop down.
Actionscript Code:
package { import flash.events.MouseEvent; import flash.display.MovieClip; public class DropClass extends MovieClip { public function DropClass() {
[code]....
I am new to Flash and AS-3.0. I am using Flash-CS3 as IDE and AS3 for programming/coding.I have created a ScrollPane component using the following sample AS3 code, which is a sample user-defined function written in ActionScript 3.0:
Code:var sp:ScrollPane = new ScrollPane();
var myClip:MovieClip;
var boxXLoc:int = 0;
var boxYLoc:int = 0;
var boxWidth:int = 140;
[Code]...
I have this big symbol and some buttons in it. When I press a button, I want the button to go to a certain frame within that symbol. Here is my code for all the buttons:
[Code]...
I heard an absurd argument that they thought that Flash would overtake standard html/css coding of a website.
View 1 RepliesGet a coding constraints for action script and flex 3.
View 1 RepliesFirst, an explanation to what I am doing. I am currently building a Flash movie to go onto a CD. It will be self contained so that the audio files are not exposed for easy bit torrent sharing, and is pretty working really well until this point. have build a custom dropdown menu which is functioning (when you click on the button, the dropdown animates and brings up the new options to select from), however...I cannot seem to get the coding correct on them. I have scripted them so that if you was to click another link or dropdown, that the previous link would be closed. But the buttons within the dropdown will do nothing but look pretty, for a lack of better terms.
The downdown menus are within a movie clip for the Nav Bar, separate layers from the other buttons of course.Yet when I source the scripting to go to those buttons to call the EventListener...nothing happens. Am I doing something wrong? If needed,I can make a "random" version of the layout.Demo song buttons will link to an audio page on Scene 1, but at different frames. Multimedia will also have two separate frames which hold two separate functions. I already know how to make the direct buttons (credits and the B-Side) work correctly, but the dropdown buttons will not function for me.
This code works fine for loading a pic into a created container and placed centered in a box_mc.I am trying with no luck to have the same thing repeat itself x number of time.
My idea is:
array=[1, 2, 3];
var a = 0;
[code].....
Does anyone know the actionScript to apply to custom radio buttons? I want them to function exactly like the component radio buttons available in CS3, but I can't use those because adding one makes the .swf about 30k and I have a 30k limit on all flash files.I imagine the radio button would have to be a mC with frame 1 a drawing of a button unchecked and frame 2 the button checked. Then another mC of 4 of those radio button mC's grouped together and coding to tell it that when one is clicked to unclick the others, but I haven't been able to figure it out. I haven't been able to find any info on this online since everyone just uses the component versions anymore
View 5 RepliesI've just come upon an idea, on how people could learn to write AS. Every week there would be announced projects that would have to be written in AS. There could also be levels of difficulty for different people.
After annoucing the task, for instance: "Make a dynamic slide show, that will load files from a XML file, and display them by fading-in / fading-out at some intervals". People could start writing something, and if someone would have any trouble, It could have been answered in the topic. After a week, the best working projects would be selected and added as a opensource, or mayby even converted into tutorials.
I know that my idea was allready made a hundred times, that was just an example. If the idea would pass, there could be a poll, or another topic for project ideas.
I think that it's an idea worth thinking about. I personally would participate in it, just for the challenge.
P.S: Im posting this here, because in other forums the topic could just die, w/o much people viewing it.
I am set up with d they have given me their html code for submitting to their php file. here is threir html code:html code not php
PHP Code:
<form method=post action=http://www.yourmailinglistprovider.com/subscribe.php?larhymes>
<table border=0>
[code]....
Is it possible to import two images to the stage using the required actionscript, and then CODE a layer mask to "cut" into the higher level image to display the other image beneath
View 4 Replieshttp:[url].....This website is great.They have a navigation bar whereby a user must click on it, and shake it, to proceed to the other page. I can implement it into my website.
View 5 RepliesWhy AS3 decides to stop running all scripts if something isnt right with the programming? Every time i might have a slight syntax error here or there, or a missing object, coding throughout my entire movie stops. All my stop functions cease to work, and the movie and movieclips loop continuously. This never happened in AS2. Is there anyway to prevent flash from turning off all actions because of some minuscule error?
View 5 RepliesI have recently created a flash website and on the contact page i wanted to put a form that would send the information the put in directly to email. After creating the form and coding the flash code which is below i coded the php file and loaded it to my webserver to see if it worked (the webserver supports php scripts) I am not recieving any emails from the form can any one look over my code and tell me my problem.
[Code]...
Hi, I am brand new to Flash and I come from other development environments so I have a question about a possibility. I am aware that you can have a symbol (like a MovieClip) use a custom class to handle how it responds to the world, but I was wondering if it's possible to be able to set some values via flash without having to touch code. For example, I create a MovieClip called Crate, which has a class that lets it be destroyed, but then the designer wants to specify that certain crates have contents inside of them. Is there any way to do that in flash without having to create a new class for the crate?
In other words: the designer puts a Crate in the world and then sets a propery (for example: contents = TennisBall) and the Crate class handles the rest. Will this work? Also, am I right to understand that instances of symbols are all the exact same? So I can't have the designer create a new instance of Crate and then change it to be a little different (like draw a sticker on the Crate), but still have it be the same as all the other Crates?
I hope these questions make sense and I apologize if I asked this in the wrong forum. I'm very interested in developing games for flash, especially after the news that CS5 will let you export to the iPhone, but I'd like to keep the code away from the designer as much as possible,
To give a brief background of what's going on here.I am building a personal site where I have a navigation, and I have other subnavs inside of certain pages.Such as if I go to "work" inside of work i have "motion", "web" & "print".Here is some example code of one button on the navigation:
nav_mc.personalbtn_mc.addEventListener(MouseEvent.CLICK, buttonClick2);
function buttonClick2(event:MouseEvent):void {
gotoAndStop("personal");[code]...
It seems to me that actionscript will not read all the way down to the bottom when looking for objects.For example: The first if statement where it's asking if workss_mc exists or not, that will work if it's at the top, but if I move it down to the bottom it will not work.
I have a movie clip on Scene1 called "movieclip1." Inside "movieclip1" there is a label of "fadein," which underneath the label has the movie clip fadeing in. Then I have a label called "fadeout," which has the movie clip fading out. What I want to do is get the coding or action script to make it so when I click on "portfolios_btn" (on scene1) it runs what is under my label "fadein" inside the movie clip "movieclip1."
Then, when I roll off the movie clip I want it to go and play whats under the "fadeout" label. This "movieclip1" is a drop down menu that fades in when I click on the portfolios_btn and fades out when I roll off the movieclip.
I am creating in Flash CS4 (AS3) a static fill out form for a website that I am involved in. The questionnaire helps to determine whether a person is suseptible to drug and alcohol abuse with either a postive answer (not likely to develop substance abuse) or a negative answer (likely to develop substance abuse)There are six questions on this form that MUST be answered either yes or no.I have created the form with all art and buttons and it is ready to implement in Dreamweaver but need the scripting to make work.The six YES buttons are assigned instance names of cb1, cb3, cb5, cb7, cb9 and cb11.The six NO buttons are assigned instance names of cb2, cb4, cb6, cb8, cb10 and cb12.When the participant answers all six questions either yes or no they will hit a Submit button (with an instance name of submit) that will direct them to a new web/flash page with appropriate answer.
If the participant answers TWO or more questions with YES and hit submit they will be directed to a new page/doc in the website with the negative answer.If the participant answers ONE YES and hit submit they will be directed to a new page/doc in the website with a positive answer.If the participant answers ALL NO and hit submit they will be directed to a new page/doc in the website with the same positive answer as answering with ONE YES response.I assume this is a very complex coding problem. I am a beginner/intermidiate flash person with extreme novice understanding of coding. I know what stop(); does in AS3 and understand simple clickTag coding etc.
I'm in the process of learning Flex, but I learn best by example. Where can I find open source examples of Flex applets? In particular, I'm trying to reproduce the functionality of the JavaScript based Simile timeline, so a timeline example would be sweet.
View 2 Replies