ActionScript 3.0 :: Make Save / Load Menu Like In Line Rider To Work?
Sep 9, 2008Does anyone know how to make a save/load menu like in Line Rider to work?
View 7 RepliesDoes anyone know how to make a save/load menu like in Line Rider to work?
View 7 Repliesi want to make a line with mouse movement and with bnlur effect i also want to save those point to reproduce that, i know how to make simple line with mouse and also able to reproduce it with the save point but not able to do blur effect with it
View 1 RepliesI have developed a game in flash and I am trying to get a save and load function so that the user can come back to the game that they were playing. Can this be done using the Shared Object....
View 2 RepliesWhat actionscript would you use to make an save/load button?
View 1 RepliesWhat actionscript would you write to make a save/load button?
View 1 RepliesI have the following problem / bug:
I made a custom button-class (called CustomBlitButton) where a button is defined. The roll over-states of the button are defined inside of the class CustomScreen. That's because a custom screen holds one or more buttons. I can create a button when using the createButton-function of the CustomScreen-class.
So if I want to make a screen with a menu, i.e. several buttons I do this like that (this is just an excerpt):
[code]...
I'm trying to make a navigation menu that primarily uses key presses to work.
Code:
var keyListener = new Object();
var listSelection:Number = 1;
function upPress() {
[code]....
(note: this uses the lmc actionscript tweening classes)I have 10 items in the list, and basically this works fine for the most part. Press up and the menu slides up 63 pixels (height of one button) when it's not at the end of the list, and press down and it slides down until you reach the end. and it keeps track of which one is selected. fine. great. but when holding down a key it skips forward but might only move the options list only a few pixels. or if pressing the keys really fast it'll make the list stop short.
I guess what I'm looking for is how to make this menu list work so they can make a selection through an animated menu using the keyboard. so press up and the list animates up to the next selection, or press up three times fast and it animates up to the fourth option.
i hav found a tutorial about dragable on ur site and i played w/ it for while, however, when i tried to make it go vertical instead of horizontal it doesnt work any more...heres the code, can any1 explain to me whats wrong w/ it?
actionscripts under dragger, <drag>
onClipEvent (load) {
_y = _root.box._y-_root.box._height/2+_height/2 ;[code]..
Is it possible to load a text file using line breaks as a delimeter rather than having a &var= at the beginning of each line? Like by a for instance? I have a text file with about 1000 lines that I need to load/display.
View 5 RepliesIs there any way to make line breaks when you load text into a dynamic text box, other than using html? And if not, could someone give me an example of how to do it using html?
View 12 RepliesI am using Flex 4 and AS3 and I am trying to make it so that the user can draw a freehand line with the cursor - I have this part done.However, I also need the line to be a dashed line instead of one solid line like it is now. below is my code I am using. I have found some examples on how to do this, but they are all for straight lines, not for a freehand line.
Class File (DrawingArea):
package
{
import flash.display.BitmapData;
import flash.events.Event;
import flash.events.MouseEvent;
[code]....
i created an application and it has a menu bar at the top of the stage it also has a loader component below it. i need the loader to load an swf when an item is selected from the menu. Does anybody know how to code this. I am using the following code:
[Code]....
I am working on a DVD User Interface for my final project in Photoshop. For extra credit points I am trying to figure out how to make the menu items to light up when the pointer is touching the menu icon.
View 1 RepliesI need a tutorial for a hierarchical drop down menu system that drops down 3 sub levels. Do I make the items in the sub menus individual buttons and then insert them into a movie clip or make every sub menu item a movie clip and insert them into buttons?
View 1 RepliesIm trying to make a menu for a web page using menubar and menu components, is ther any way of making os specifing that the menu can get drawn out of the canvas, since i need that the bar is thin for getting in a space betwen to image headers.
View 1 RepliesI ve recently started to read about Context Menus, but i dont know how i can make a "save" command. Of course this has nothing to do with the context menu, but it would be nice if it was there. how can i make a save option so that a user would be able to save a picture (as if it was an html page)? Does it require use of xml in order a "save as" window can be opened?
View 3 RepliesI ve recently started to read about Context Menus, but i dont know how i can make a "save" command. Of course this has nothing to do with the context menu, but it would be nice if it was there. Can anyone tell me how can i make a save option so that a user would be able to save a picture (as if it was an html page) ? Does it require use of xml in order a "save as" window can be opened ?
View 3 Replieshow to make a sub-menu for a flash context menu. I have tried to create a menu item that is a menu in itself, but it wouldn't work.
View 1 Repliesi have in fla library button with instance name: _btnSave, and use for button Save function this code:
Code:
private function onSave(e:MouseEvent):void
{
var temp:BitmapData = new BitmapData(_imageManager.width, _imageManager.height,
[Code]....
I Want To Make A Menu With 2 Levels Sub Menu.I Used Something Like This But It Can't Answer In SubSubMenu.
View 1 RepliesI have one application that needs saving some text to local file folder, the text may include chinese words, and i found Flex's FileReference.save can do the job. But the problem is when i opened the saved file with Wordpad, the chinese words does not show correctly, but Notepad can show the text correctly.
From Adobe's help document about FileReference.save, "If the value is a String, it is saved as a UTF-8 text file."So i think it is probably an encoding problem, but why Wordpad and Notepad behaviors differently, did they use different encoding? what encoding did they use ?
I have a button object that I need to scale to align with the variable width of an array of images.However, when I set the width in code, the button does not actually become that width. Tracing out the width gives me the correct value, but on screen.. it's off.
I've proved it to myself by scaling the same button object manually in the properties pane and visually comparing. Both of the buttons below have a width of 410.
Code:
navigatorDown_btn.width = 410;
navigatorDown_btn.x = (stage.stageWidth/2)-(navigatorDown_btn.width/2);
trace(navigatorDown_btn.width); // output: 410
I have content with line break. When I break the text matter it shows following error. Is there any technique so that I could use line break content matter.
Syntax error:A string literal must be terminated before the line break.
Code :
output:TextField:TextField=new TextField();
addChild(output);
outputText.text("Number of characters including
line breaks and spaces so far: ");
I would like to add a custom context menu with line separators, but can't really figure out how. What I need:
[Code]....
I am trying to link a button via AS but I need to use a function that is on a different time line for it to work. I have no idea how I am going to do.
[Code]...
I am trying to use the "var flvControl" but that function is located on a different timeline.
I've added an empty moviclip to it. Loaded it to the main stage an add an action so that my menu (which is on a separate movie is loaded on that movieclip) This was fine.I've added a second empty movie clip to that main stage an another action targeting it, to load my logo over that movieclip.This was also fine All this on my first frame of the main movie.The menu located at the external movie, loads data from an external xml file.I need the items on that menu to target a "gotoandPlay frames on the main movie according to the information on the also external .xml file.This menu file originally targets to external .html files and works fine, but when modifying the action script inside that menu file to perform the above mentioned "goto and play" on the main movie, I get no error message when exporting the files, but no action occurs.The main movie I've called it "ska.swf".The menu movie file I've called "miniaturas.swf".The external .xml file I've called "config.xml".[code]
View 6 RepliesI have a little snippet of code that allows the user to create a line with the mouse, and clears the line if they end up touching the hitbox with the mouse, while they're drawing the line. It works fine when it's just thrown onto the main timeline. However, when I try to encapsulate it within a movie clip, it suddenly doesn't work. At all. Are there any suggestions as to why this is happening? Here's the code.
[Code]....
* I have a flash project called contact
* The document class is ContactClass
I am trying to make a sprite button with graphics and can't make it work. I have successfully added text fields so I know the path is correct. I suspected my code was correct and confirmed it should be, after reading several tutorials showing the process for creating sprite buttons with graphics. Anyway, I imported nearly every class on Earth, but certainly everything which needs to be. Stage is gray and 800x600.The graphics code by itself with appear, but not when linked to the sprite. Also, the sprite won't appear no matter what. Another interesting piece of the puzzle: nothing will trace, not even objects such as textfields which actually appear and function on the stage when I text the code.
public class ContactClass extends Sprite {
public function ContactClass() {
var home_btn:Sprite = new Sprite();[code]....
The swf posts the content to save.php but i dont have a save.php I need to create one but i donno what do put in the save.php as code to get it posted there. Here is the code that requires the save.php to post:
Code:
loc3 = new flash.net.URLRequestHeader("Content-type", "application/x-www-form-urlencoded");
(loc4 = new flash.net.URLRequest(p.rooturl + "/save.php?name=" + arg2 + "&type=" +
[code].....
I'm having a brutal time with a FLA. The wait time to open this thing is ridiculous, and alot of the time the program will just become nonresponsive. Its only this one specific file, as others open fine. It also has nothing to do with the hardware on my system, as we've tried the file on a variety of machines.The FLA itself contains very little bitmap art, most is vector. It's about 16mbs, but publishes down to a SWF thats about 300kb. There were some complex vector elements which were removed in a fruitless attempt to get this thing to move faster. Trying to "save as.." results in flash writing to a file extremely slowly. The resulting file will progress in size from 2 - 4 mb with about 10 minutes wait time in between. Its becoming nearly impossible for us to work in the file. how I could debug Flash itself to find out whats going wrong on load/save?
View 3 Replies