ActionScript 3.0 :: Creating Menus From Scratch ... Load
Mar 14, 2011
I have started learning about flash about 3 years ago, I had a shot at making a small application for my boss' website and that went down well... but since this first feeling of flash, this technology has evolved rather quickly. I used to write my scripts in AS 2.0, now AS 3.0 has come with a bunch of new stuff like event listeners and such. I have tried to catch up for the past two weeks but I kind of lack some training on all the new stuff added to or changed in AS 3.0.
So to come to the problem, I have tried to make a pretty simple menu from scratch, I wanted it dynamic so I took advantage of reading data in an xml file. I have created buttons but figured that movie clips were actually more flexible so I went down this way and it kind of works except that when i click one of my buttons, the button_down state works once but not twice, it stays as the button_over state even if i click repeatedly. My script is quite ugly as I could not figure out how to loop the creation of my menu buttons from a single set of movie clips (one for the up state, one for the over state and one for the down/clicked state).
View 0 Replies
Similar Posts:
Nov 16, 2011
I need to create a webcam chat which i intend to use in my website. It will allow two or more persons to video chat through their webcams.I want to develop the webcam chat from the scratch. I have no idea which software to use. I did a thorough search for this topic and alli got is adobe flash with some actionscript is required to build it.
View 1 Replies
Mar 19, 2011
I want to create an online q-bank with questions pertaining to a specific medical board examination. This is similar to the way kaplan and other companies creates Q-banks for standardized exams. The reason: No banks exist for these board examinations
what tools would you use to create a Question bank that has the ability to sort questions by user settings, implement timers, keep track of overall performace, display explanations for each questions, and have the options for video explanations. Is ActionScript up to this task?
View 2 Replies
Jan 19, 2010
Are there any tutorials available that will show me how to create a multiple class program from scratch? I have 2 classes working with a fla and when I add a 3rd class every object I create comes up as an error.1120: Access of undefined property.I'm very frustrated cause I can't figure what the problem is. I have just migrated to OOP so I'm relatively new at this.
View 2 Replies
Nov 5, 2009
I'm trying to make an scratch lottery ticket in as3 by using the bitmapData class. The scratch function is working fine, but I want to add an function that is challenging. When 75% of the lottery ticket surface is scratched of I want to trigger an event.
My ActionScript Code:
var toolsize = skraper_mc.width;
var tooloffset = toolsize/2;
var basepoint = new flash.geom.Point(0,0);
var bitmap:Bitmap=new Bitmap();
[Code] .....
View 4 Replies
Aug 16, 2010
I'm designing the UI for my level editor and I found managing multiple menus and buttons can become complex and annoying to program for every single situation and for every single button. Which as you can imagine it becomes tedious.Imagine you have 2 buttons both of them open drop down menu's when clicked but I only want to have one menu open at any time.To further complicated the situation in one of the drop down menu's there is a button that when clicked it'll open a further sub-menu in place of the previous one.Here is how I've gone about programming such a situation.
PHP Code: [code]....
I want to open menu 1:
checks if any menus are open
if so close them and open menu 1...
...and so on for every menu further multiplying the amount of programming every time I add a new menu. I have to go back to the buttons that open all other menus and program for the occurrence that, the new menu may be open.I was thinking some kind of function could handle all the menu's but my brain is to frazzled to think.
View 3 Replies
Jul 9, 2011
I am working on a game in flex, and I am trying to figure out how to create menus in the game. I am was thinking it would be easy just to add and remove a child for the menu, but then it would be a pain to make interactive.I am trying to do both a pop up menu and an always on screen menu, like a bottom menu bar, so if anyone has any ideas please let me know. I am completely new to flash and flex and don't really know where to start past making the actual game.
View 2 Replies
Mar 13, 2012
What are the common ways of creating drop-down menus for Flash with Haxe?
I've used a variety of "drop-down" menus:
drag-and-drop "combo boxes" in C# Forms
<select> in HTML
UIPickers in iOS
Now I'd like to create something similar in Flash. Note I'm not using Flex per requirements that are out my control.
I'm quite new to Flash. So far it looks like I'll extend Sprite and perhaps use some HTML/CSS for styling.
View 1 Replies
Feb 3, 2009
I'm trying to create an xml accordion menu that has main menus and a sub menus buttons (movieClips) revealed with a mask. Simple question, How do I stop the mask area which reveals the sub menus catching mouseEvents on the submenus?The main menu button is a movieClip, it has the mask sprite attached to it as a property so it can scale dynamically to reveal the subMenus. They are set as children of the main menu button container. In my code I've set mainMenu.mouseChildern = true. But when the mainMenu is clicked I change mouseEnabeled = false to help prevent the main menu receiving events. This helps on rollOver rollOut events, but when I click or mouseDown on the subMenu the mask catches the event also and activates the main menu again. I've tried the obvious mask.mouseEnabled = false; mask.mouseChildern = false; mask.hitArea = null; and even setting mask.alpha = 0 but this has no effect at all.
I don't understand why the mask has to extend the hitArea property of the mainMenu and why this can't be set to null. It also seems crazy that when mouseChildren = true the parent clip also has to receive notice of the event.
View 2 Replies
Apr 21, 2009
I googled this online, and almost all of them start with dragging the scrollpane from the component toolbar.
I don't like the way this scrollpane looks. How to change the color, shapes, etc. Can I do this through altering the code, or do I need to start from scratch?
View 5 Replies
May 4, 2009
I need help building a site entirely on Flash from scratch. I am a beginner at the software, I know what most tools do, I know how to create basic tweens and stuff, but well, all in all, I'm a beginner. I know absolutely nothing on Action Script (be it 2 or 3), and I want very much to learn Flash now. To do so, I want to put online a portfolio site for me. I already know Photoshop, Illustrator and After Effects quite well, so I think now's the time to give it a shoot. On to business:
1. So, first, what size should it be? I wanted it to be something around 1024 x 768 maybe? Is it possible to set an adapative resolution for the site? (I don't know if that's the correct term, what I meant is that the site changes resolution according to the users who are accessing it.)
2. I heard that if you don't use ActionScript to animate things, the site gets mega heavy. Is that true? What should I use ActionScript for when building this website?
3. Is it possible to organize the loading priorities? As in, the order in which things load, so that the site gets a bit more dynamic allocating the user's connection?
4. Are there global standards for Flash-based websites?
For now, I guess this is it. I'm starting this project today, so I'm still not quite sure what other doubts may pop up.
View 1 Replies
Oct 12, 2009
Is it possible to make a Tilecomponent from scratch only wiith AS3 ?I want to make a xml driven dynamic video playlist with thumbs and text description but without a premade flash componenent.The thing I can't understand is how-to to manage the "cellrenderer" from scratch
View 2 Replies
Mar 24, 2006
The following code doesn't work on a mac but works fine on a pc. Anyone know how revise it so it works on both platforms?
stop();
startDrag("/coin", true);
MovieClip.prototype.startScratch = function(width){
[Code].....
View 2 Replies
Jun 28, 2009
I was wondering what would be the most optimal way of coding something that work this way: There's 10 buttons, you click button 5 (for example) which causes button 5 to gotoAndStop(2) while at the same time it tells all the buttons which aren't button 5 to gotoAndStop(1)
View 1 Replies
Jan 16, 2007
i have a little scratch and win game that's working perfectly, except i am being asked to make a custom cursor (a coin). now, i can easily make a custom cursor for the whole thing, but i think it looks trashy (especially with it going on a website with ads and the like, how would anyone know to click the ad when theres a freakin' coin over it?
anyways, what i want, is to make the coin only show up when the coin is like... over a "scratchable" box..
View 3 Replies
Mar 18, 2008
Does anyone have any tips for how to approach building a two level accordion menu from scratch? ...or better yet a tutorial? I haven't been able to find anything online other than references to the accordion component which I do not want to use.
Right now I got as far as loading in all the 1st level menu items and their child items from an XML file, when you click one of the 1st level items a function is called which moves all of the 1st level items below the one you click on down far enough so that all of that item's sub items have space, they then attach to that item.
I'm using a for loop within a for loop, is there a better way?
View 7 Replies
Mar 3, 2009
Does anyone know of any good tutorials that will walk me through building an as3 player from the ground up including: clickable seek/progress bar, volume control, and fullscreen support?
Lee Brimelow has a great series of tutorials at gotoandlearn.com, but they are for actionscript 2. He has one new tutorial for as3 video basics but he hasn't gone further yet.
I'm not so good at backwards engineering existing players so I think I'd rather just walk though it. I'd also really like to avoid components and pre-cooked stuff.
View 1 Replies
Aug 5, 2009
I would like to write a very simple 3d engine just to learn it. I have some knowledge about 3d in as3 and perspective concept but I would like to see some tutorial about where to start to build it.
View 3 Replies
Jul 8, 2011
Im trying to do a "Pano" 360 flash app from scratch. Using Away3D I should apply an stereographic image very well, everything is working well.But looking in some apps on web (like Panorama), they load only 6 images and somehow they "merge" this 6 images and, I suppose, apply this merge into the sphere 3D. Or it doesnt use a sphere and make kinda illusion of sphere?Could you help me find out how can I merge the images and "apply" those flat, separate images, in my Sphere primitive or, if this isnt the right way, how can I "emulate" those panorama?
View 4 Replies
Sep 11, 2003
does any1 know or have done any 'scratch and win' type of game in flash?
View 4 Replies
Feb 16, 2011
I would like to know if any awesome dude knows if there are any AS3 Flex tutorials on the net or in books that explains how to build apps and games from scratch - step by step via Flex
View 4 Replies
Aug 2, 2002
does anyone know where I can get a tut on making a scrolling thumbnail viewer from scratch? I tried to recreate the one in the tutorial here but for some reason I cannot get it to work. I need from scratch step by step (I learn better that way).
View 3 Replies
Apr 8, 2003
Code:
Scratch = function() {
this.previousClip = null;
this.startScratch = function(clipName) {[code].....
I'm trying to set the previousClip variable (which belongs to the Scratch-class) in the onMouseUp function. I know I'm not doing it the right way, but can someone tell me how to set a the previousClip variable properly?
View 6 Replies
Mar 5, 2011
I have a flash website that loads rather slowly, presumably because it is composed of a single .swf file, so I want to break that down into several. So how do I create a button that loads an external swf on top of the existing movie?
So far I have this which I pulled from {URL]
Code:
//This creates a new instance of the loader object.
var my_Loader:Loader = new Loader();
//This creates a new instance of the URLRequest object that contains the
//path to the external SWF.
[Code].....
View 1 Replies
Aug 20, 2009
I want to be able to create an swf that loads in images randomly from a database of several thousand pictures, like the example that I have linked to. Is this possible?
View 4 Replies
Aug 10, 2007
I am creating a web site that will use XML to load content - a sort of video gallery.I plan to make scrolling movie clip for navigation containing instances of the single clip - "movie", which contains thumbnail, title and link, and I plan to use duplicateMovieClip to create as many MCs in navigation as needed.
But I have the following problem:I made a single MC - "movie" that takes the title, description and link from XML.I take the lenght of the XML nodes and duplicate the movie clip through the following code, where the variable j is the required number of MCs:
dist = 100; //distance of the new MC
_global.k = 0;
for (i=0; i<=j-1; i++) {
[code]....
Every of the movies get the same value of the k.Is there a way to pass the exact value to each of the MCs?
View 2 Replies
Apr 6, 2011
I'm using a movieclip to load an external XML file. In the XML I have a series of variables:
[Code]..
View 26 Replies
Nov 16, 2004
I'm trying to create a slideshow that loads pics (jpg) from an external folder ("pics/") into dynamically created MCs.What I want is for the script to detect how many pics are in the folder (for future changes), create as many instances of the MC, and load the pics into each one. The MCs will need to take the W and H of the pics, and line up next to each other. This last part is not as important, I'm just wondering how to determine the number of pics in the folder. Do I need XML or will AS 1.0 or 2.0 do this?
View 1 Replies
Mar 25, 2005
I am currently scripting a Flash application at work which will pull data from an xml file (.jpg's and text) into template swf's created by our designers, for use in online product commercials, realty/property tours, etc. I am creating a loop which will pull data from the xml and load them with createEmptyMovieClip(). Here's the code:
Code:
_root.dynLoad = function() {
trace( "initializing dynLoad function..." );
for( _root.g = 1; _root.g <= _root.featLength; _root.g++ ) {
if( _root.g == 1 ) {
this.createEmptyMovieClip( "dynPic", this.getNextHighestDepth() );
[Code] .....
I am not the heaviest with actionscript and I can get the first two pictures to load, but after that the pics get loaded into the duplicated clip. I tried my hardest to get the else block to dynamically increment the "dynPicNew" ( ex. load it into "dynPicNew" + _root.g ), but I can't nail it! How can I get the duplicateMovieClip() to increment the load target dynamically?
View 4 Replies
Sep 1, 2009
I'm creating a displayobject which can load 3 different types of VectorsIs it possible to cast stuff like this Vector<*>?? Or is it to buggy.
View 14 Replies