IDE :: Enable Users Save Position Of A Draggable Box
May 6, 2009Is there any way that I can enable users save the position of a draggable box (for eg with cookies) and then press a button to reset the MC back to where it started off?
View 3 RepliesIs there any way that I can enable users save the position of a draggable box (for eg with cookies) and then press a button to reset the MC back to where it started off?
View 3 RepliesIs it possible to create a screenshot from the current page the user is on? (It's for an Intranet enviroment).
I know this is not possible with JavaScript alone, but is it possible with Flash or maybe an Java applet?
I have been searching around but I couldn't find anything.
We are in strange situation. We are enable to save flv file through FMS using IE but when we are trying it through mozilla flv are getting saved into the specified location in FMS.We dont know whats the reason behind this. Earlier the same functionality works fine. But now we have install one more server(Red 5) on the same system on port 1935 and we move FMS on 1936 after this we are facing this issue.
View 5 RepliesThis is my first project in AS3, been using flash for 10 years, it was time to take the plunge.
I am trying to create a app that allows the user to create an online comic strip.
My thinking is when the user drags a movieclip to the "page" I use addChild to then copy whatever they dragged into the page_mc.
They can then adjust position, scale etc
That is relatively straightforward.
I am having issues on a method so the user can save progress online. I have PHP experience so can set up a database etc. But how do get an XML based on the displayObject.
From reading about the display list, it seems ideal, and very suited to looping through each child and creating an xml file with the same hierarchy.
Is there a "dump display object to xml" method?
I can loop through the displayobject with a trace function, but that does not specify all the parents, just the individual children.
Basically I have a website and I want to give the user the option of downloading wallpapers that they can use as their desktop image.
View 3 RepliesI've been working at this for over a week and simply can't figure it out:I would like to allow a user to export out a jpg of the swf file to their hard drive using flash player 10/cs4.Here is an example that comes close but is in flex (can't seem to figure out how to implement in flash cs4?)His flex code is there, everything works great, but how to get this into flash instead???
View 1 RepliesI want to add the ability to have my flash game record the users progress then save to a database. That part is pretty easy, but how can I make it so the user can login and continue their game. I also wanting to know if it'll be better for the game progress to be saved with SharedObjects or with an SQL database. I would like it that the game could be played on any website and their data can still be accessed and played if that is advised. I am new to user sessions with AS3 and need pointers.
View 1 Repliesi'd like to know if its possible to save information obtained from users to files if the user is accessing the flash file from a cd. I would also like to know how it works if possible. And can the flash file be in .exe instead of .swf?
View 5 RepliesI want to make a save the position of a movieclip. I have a dragable movie clip, and I want to drag it and when I play the movie again, the movie clip is where I drag it for last.
View 3 RepliesI've got a video I'd like people to be able to navigate away from in my project, but resume where it left off if they come back to it. I would think I could do this by just saving its current position when they exit that frame as a variable and then using .seek() to go back to that spot if/when they return.
The only problem is that I can't find any script to capture the current position. I tried .time, but it gives me an error.
I'm trying to write a XML file to save the position and size of the app window in it. I'm running into this error: TypeError: Error #1010: A term is undefined and has no properties. MainTimeline/setupWindow()[code]
View 1 Repliesi have a pie chart with clickable sectors. when you click a sector it jumps to the next frame on a movieclip and changes colour. I want to use Local Shared Object to save the frame position so when i come back to the swf later on the sectors of the pie chart are saved.
View 16 RepliesI just finished a simple music player... For testing purposes. I upload it in the following address:http:[url]....with 10 music songs that I had recorded from radio stations(added the last 2 twice for testing).The problem is that when a song has totally loaded, stop action taken needs about 1 second to be applied!I.e. When I press "STOP", the sound continue to play for 1 sec before stop. When I push "pause" it takes one second for the music to stop!
However when using resume (second time pause) the sound starts instantly! Thus I guess there is an issue with stop()function of the SoundChannel object that I am using to stop the sound. Also notice that when unpause the music, it continue ~one second before the last sound - which means that I saved the soundChannel.position number (and also call soundChannel.stop()) in correct time, but it didn't stop immediately - bug!?
This only happens when the application runs through a browser(plugin v. 10) - programmed in CS3.
PS1. Notice that ,this also happens when I change Volume too. Thus because Stop and Volume are parts of SoundChannel, I guess there might be a bug with SoundChannel in online plugins..... :/
PS2. Notice that ,this also happens when I close the browser (firefox). Even if browser is closed the music continue for 1 sec the same way as when pressing stop!.. Thus I guess it's flash bug!...
I've designed a painter program where the user can select different colours and 'paint' a custom design on screen. What I would like to do is incorporate a 'Save' button which takes a snapshot of their drawing which they can then save to their computer.
View 0 RepliesHow do we save file locally in Flash (ActionScript 3) without displaying dialog. I know we can use the following code to save file locally but it prompts Save dialog. I don't want this dialog while saving file locally.
[Code]...
Can we Bypass the save dialog box of FileRefernce.save()? If not, then Is there any workaround to save a file from web application in Flex without asking user where to save file?
View 1 RepliesI need to create a notepad in flash.here how could i save the file by prompting the save window?
View 11 Repliesi have movie clip with Images and button Save and class MyProject.as how save images with my MyProject.as, with help FileReference.save? what to write in code? how code should look like? tell me good people I want to write everything in a separate class
View 3 RepliesIs there a way to get rid of the save dialog box in filereference.save()?I want to specify the filename and location rather then letting the user do it.
View 6 RepliesAt my college, they have CS4 (master suite) and at home I've got CS5 (design premium). I can save files in CS5 as CS4 so they can be read at college (by Flash) but I have to do it via the "save as" every time I save. After a couple of times, it get rather irritating. Is it possible for me to save in the usual way (as if it was a CS5 document) without the save as dialog every time I save my work?
View 5 RepliesI added a Menu_mc on my stage. Initially, this should be at the center of the stage and when I click on it, it will tween on the upper left corner of the browser. However, when I resize the browser, the Menu_mc goes back to the center of the screen.
I have tried separating a different actionscript file where it is specifically for initialization of the object and another one for resizing. And then when I call it on my main AS file it goes like this:
Code:
// Add the symbols to stage
var Menu_mc = new Menu_MC();
addChild(Menu_mc);
[code]...
But it seems futile.
I am using a ScrollPane in my application(viz., instance name is: myScrollPane). When I view the contents of the ScrollPane, it shows them perfectly. My issue is: When I try to view data present inside the ScrollPane, if I move the Vertical-ScrollBar of the ScrollPane to middle(or somewhere from top to down) and then click on Submit button(viz., instance name is: submit_btn), then its Vertical ScrollPosition must be reset from middle(or any position where we leave it before) to top(or initial position). Hence, I need to move the Vertical ScrollPosition of ScrollPane to top (or) initial position. Everytime, I need to refresh the VerticalScrollBar Position when I click on the submit button. How to do it?
View 1 Replieshow to make an actionscript to move punto_mc from current position to random position after release, and then from this new position to mevo to another randon position after release?
View 2 RepliesI have simple image gallery, where images are placed one next to another and the mask is revealing only one of them. Now I want to tween position of the images, but when I do that the mask is "traveling" alongside with the images..
View 4 RepliesIm new at actionscript, and I am making a very project. Basicly, I have some thing were there is a page you can get to by beating other parts of the 'game'. I want to add some sort of a password or save feature to people can type in the password of something at the opening screen and jump to that page.
View 1 RepliesSo I'm trying my hands on some full browser flash and after reading a couple of tuts I wrote this
Code:
#include "mc_tween2.as"
Stage.scaleMode = "noScale";
stageListener = new Object();[code]...
The trace's are because it didn't work like I thought it would.Etc the middle movieclip didn't center itself but rather positioned itself seemingly how it pleased so I traced its x position and the var stageXcenter position and like suspected it shows different values.
i want to take btn1 position half wwidth of own x position on stage
View 1 RepliesI have a ScrollPane and I want to get and set the scroll bars position (pixel position). For example, if the user changes the scroll bars position and then refreshes the page, we need to take the user at the same point where he was before refresh. For this I need to get the respective scroll bars positions before refresh and then set it to the saved position after load. I have got the positions by hPostion and vPosition but now when I try to save the values back to the same properties after refresh it doent work.
View 2 RepliesI have a tween set on a timer:
var manTimer:Timer = new Timer(1000,14);
manTimer.addEventListener(TimerEvent.TIMER, moveMan);
function moveMan(e:TimerEvent):void {[code]....
I just need to make the tween's position relative to it's current position, as opposed to starting at the stage's 0 position then moving the the stage's -40 position. It needs to start at its current position the move -40 from that position.
I'm hoping someone can solve this headache. Basically, I want a movieclip to move to the position of each of my buttons from any position along my x axis. Therefore, the movieclip needs to 'flip' to face the way it is traveling.At the moment I have the movieclip moving to the mouse x axis when I ROLLOVER the button and stop following the mouse when I ROLLOUT but the code won't flip the movieclip so I must have something wrong...
btn.addEventListener(MouseEvent.ROLL_OVER,followCa t);
btn.addEventListener(MouseEvent.ROLL_OUT,stopCat);
btn02.addEventListener(MouseEvent.ROLL_OVER,follow Cat);
btn02.addEventListener(MouseEvent.ROLL_OUT,stopCat );
[code]....