ActionScript 1/2 :: Create An UNDO Button To Runtime Editing Website?
Nov 24, 20091. Can I create an UNDO button to my runtime editing website?
2. Can I create a REFRESH button which will only refresh the current frame?
1. Can I create an UNDO button to my runtime editing website?
2. Can I create a REFRESH button which will only refresh the current frame?
i've been unsuccessfully attempting to create my own undo/redo classes that work well with any type of possible undo and redo commands.
for example, my simple class works perfectly with undoing/redoing x and y positions of display objects or undoing/redoing values of sliders, etc., but things get dicey when i try to tailor my classes to also work with things like adding and removing items to a list.
is there any well known and well documented solution for general undoing and redoing for actionscript (without Flex)?
I want to duplicate a flash website (no copyright issue, work assigned by the owner of the website). The only change I am required to do is to change each and every text in language A to language B.
I am a web developer with the knowledge of PHP,HTML,DHTML,XML,CSS,JavaScript but no flash .
Is it poosible to store the site as ans .swf or .fla file and then edit it? Or can it be edited and used or I need to create a new one from scratch?
editing my website a friend bult for me in flash..i have flash cs4 when i import to library all i seem to get are lots of symbols a few gifs and my video file , and the main swf ...trouble is seem to be unable to edit any of it .... i need to update a picture and add some text to it ..
just tought i would add... i downloaded the contents of my my website via dreamweaver to a folder on my drive then imported into flash
I created some Combobox and, when you select each item, a Movieclipappears with a different width,height and name.When it's in the scene you can Drag it to the position you wish.I made two button:Undo(), Redo()for the user who wish to make a previous action,in other words,put the Movieclip to its previous place.I try something with some Arrays that capture the different position when Drag is stopped.I place a Shared Object for registring all the previous position but I don't know how to make it work.So,I show you my code.function of the combobox:
Code:
ComboBoxclassic.addEventListener(Event.CHANGE,select);
function select(evt:Event)
[code]......
I had posted a similar query earlier but didn't get a satisfactory reply. I need to edit a flash website (only the text needs to be changed). Which software program should I use ? It is required to convert every text on the site (links or no links) to be converted from language A to language B.
View 1 RepliesSo I have basic flash knowledge but not to much. I'm editing the majority of the template perfectly. When I want to test out how the changes are I export the it into a flash movie, than click on the index.html (which is linked to the flash movie) everything works fine.
Here is where the problem comes in, on one of the pages the template had a bunch of link that I do not want so I delete the links layer. When I do that and export the movie agian, everything gets screwed up it like flips out when I open the file and runs everything double speed than shuts down.
I found this code on a forum which allows for an undo and erase button for a drawing application (and is perfect for what I need) but it's in AS2 and I can barely make sense of it:
Code:
_root.attachMovie("canvas", "canvas", 0);
d = 0;
[code].....
Completely new to Flash CS3, Photoshop CS4, Adobe Dreamweaver, but looking forward to learning about them.My question is this. I'm putting together a horse website and was going to use this templateQuestion 1.All I want to do is change the images to horse photos and change the layout of one of the pages. Considering that I'm a complete novice, is it straight-forward enough to be able to do basic editing of these type of templates and change the images?? Question 2:It states on some of this templates that the requirements for flash are Flash MX2004. Is this the same as Flash CS3. Can I use Flash CS3 for this
View 3 RepliesA friend recently came to me with desire to update his existing flash website that was built by someone else. Off the top of my head I know that I can't edit anything without the raw .fla files and replacing them. Is there anything else I can do, any other options to go about this? Or is it as simple as not being able to do it without the original .fla files?
View 1 RepliesI am trying to create a button that link to a website and I cannot for the life of me get my flash to open a new window to a site. I am trying to have specific links to different sites for each slide, I'm not sure how to get it working. I get an error message of:
TypeError: Error #2007: Parameter url must be non-null.
at global/flash.net::navigateToURL()
at MethodInfo-119()
my script is the following:
import fl.transitions.*;
import fl.transitions.easing.*;
var imageWidth:Number = 0;[code].......
I have a PDF I want to make downloadable via a button. Is there an action scrip command i can put on a button so the file can be downloaded?
View 3 RepliesMy idea is to be able to have a number of different objects on the side of the stage, kind of in a toolbar, then to be able to click (and thus select) one of them and place it another area in the room with another click (basically placing it, deselecting it and fixing it in place where I clicked).
I'd then like to be able to re-click it and reposition it by dragging, if I so wish.
Using actionscript 3 how do I imort a .swf game into my flash website at runtime, this is the code that I have so far:
var myLoader:Loader = new Loader();
myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, swfLoadComplete);
function swfLoadComplete(loadEvent:Event)
[code]....
However when the game is loaded it doesn't register the keyboard presses needed for the hangman game to work.
I am using flash website template and editing with Flash CS4 and Dreamweaver. There are subwindows that open when clicking on menu buttons that have dynamic text elements. I am trying to change the text in these windows.I changed the names of the menu items that open these windows but the dynamic text is still displaying the old menu names as well as a numbering system(I.E. Services #1, Services#2, etc..) . I've looked through the content.xml, index.html, and of course the main.fla, How do I change the text displayed in these dynamic text elements?
View 4 RepliesI'm creating a Flash site to sell dvd's and CD's with over 100 - 200 button links on each swf page. All the buttons are the same symbol, and have the same actions apart from one number change (CD24 to CD25 etc). I want to use PayPal to sell the items and am currently manually editing each button with script like below:
on (release) {
getURL("https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=qdevine@hotmail.com&it em_name=CD24&amount=10&no_shipping=0&no_note=1&cur rency_code=GBP&return=http://www.q4nobody.co.uk/success.html&cancel_return=http://www.q4nobody.co.uk/cancel.html", "_blank");
}
But it's taking forever!#!*?!!
Is there any way I can view all the actions externally or otherwise to edit en mass?, as in a full script list? As opposed to clicking on one button edit the action, click on the next button, edit..
I have created a button symbol which consists of a rounded rectangle with text on top. After adding two filters (bevel and glow), I went to edit the symbol. However, in the editing screen, I can't seem to access the filters; they don't show up in the properties panel when the button is selected. I'd like to change the glow color for the Over and Down states.
View 2 Repliesam i publishing the movie incorrectly? It works great when I preview the flash file (cntrl+enter), but after I publish it and insert it into the html (in dreamweaver), the file shows up and animates perfectly, but when clicked, no link... It doesn't do anything
View 3 RepliesI am dynamically creating movie clips using something similar to[code]...
This works fine for creating and loading movie clips, but at the same time I'd like to apply functions to these clips as they're created. For example, I'd like to apply a distinctive onMouseDown or onRollOver behavior to each ie ...
I am using Flash CS4. I insert and build a SWF file just fine. In the component inspector there is a preview entry but there is a note that says it is only for development not runtime. It says to use ActionScript and the Export option. I have used the Export Option to create the thumbnail image but I have no idea how to setup the ActionScript.
View 1 Repliesmy goal is to have a small circle movie clip (would it work as a movie clip?) spawn when the mouse button is pressed. I know how to add the code for the button being pressed, but I do not know how to create the object on demand.
View 5 RepliesI was wondering if it was possible to create a mask at runtime. To clarify, I have an image that I would like to reveal as a user starts to draw on it.
View 3 Repliesi would like to create a composite from different sources ( video, bitmap) and save it as a swf file.is this possible within the flash runtime ?
View 1 RepliesSo as you may or may not know, BlazeDS (open source version of LiveCycle Data Services) is a nice way to get your server-side Java and client-side Flex application to play together. Unfortunately, it does have several pitfalls that need to be corrected. I'll try to explain one of them here.
All of BlazeDS's configuration is written via XML files in the flex/ folder of your webapp. The default names are separated for clarity, such as services-config.xml, remoting-config.xml, messaging-config.xml, etc. In these configuration files (particularly services-config.xml), Channels are defined; these setup URIs and objects used to capture and send information between the server and the client. In these config files, it is quite common to use a syntax like so:
[Code]...
Unfortunately, what they don't tell you is that some of these key-in replacements (ie: {context.root}) are not replaced dynamically upon execution but upon compilation of the WAR file you intend to distribute. Obviously not a good idea when switching domains.
So, instead I seek to dynamically define these channels. According to the documentation, that's all good and fine, but it only works if the channel already exists when the webapp is launched. I feel like that sort of defeats the point. So my question is, how do you truly create channels dynamically so that both the client and the server recognize their existence?
How can i create native installer for windows, MAC and linux, which will check the system if air runtime is not install in the user system then installer will 1st install the AIR runtime and then the AIR application.
Do we need to use any third party software to achicve this?
For checking system wether the AIR runtime is install or not Do we need to write custom script or installer will automatically get things done.
I'm currently using the print class to create a nice bitmap-based summary of user input. Wondering if it's possible to somehow push this out into a file that can be emailed (by a script).
View 0 RepliesThis is what I try to do: I am creating a game with spoken sentences. These sentences are loaded dynamically from an XML file, which contains the paths to mp3-files.This is what is currently happening: All sentences are spoken at the same time.I want them to be spoken one after another - how to I obtain this requirement?This is my (simplified) code example:
import com.hydrotik.queueloader.QueueLoader;
import com.hydrotik.queueloader.QueueLoaderEvent;
_oLoader.addEventListener(QueueLoaderEvent.ITEM_COMPLETE, onItemComplete,false, 0, true);
[code].....
I wanna add dynamically (at runtime) new states to a container and, to this states, add different elements (like TextInput, Label etc.). This must be done from actionscript, I don't use any mxml file. I can add states and change properties or styles for different elements, but I didn't figured out how to add child elements for different states.
View 1 RepliesIs it possible to create a mirroring effect in Flex4 at runtime? (load picture and create a mirrored part of that image).
View 1 RepliesHow would I create a strongly typed class at runtime (so to be able to create instances of it)? It can't be a proxy.
Additional Info: For example, say I want to create a Person class with first and last where both are Strings.
Context This is for an application that lets you create the data model and custom components at runtime. This is only part of it. I need to be able to have strong typing. If that means going to the server and creating a new SWF on the server with the value objects then loading in the definition at runtime then I would but that is a lot more work if there is an alternative.