ActionScript 2.0 :: Save Player-chooses In Flash?
Nov 25, 2003I wonder if I can get Flash to save a choose that a player makes somehow?
View 2 RepliesI wonder if I can get Flash to save a choose that a player makes somehow?
View 2 RepliesI'm trying to setup a situation in my comic where the user chooses one of two options, to side either with goblins or a dwarf. I would like to set it so that if the user chooses the goblins, it updates a shared object that keeps that choice saved on the computer for the next time they watch the movie so it skips the asking process. I've tried everything I can think of to get them to work, and the choice will replay if you are in the movie, but once you close it, the choice is not saved.
The .fla file can be found at www.manatheater.com/MXhelp2.fla, the initial set up is in Scene 0, Layer "Masking", Frame 0. The button code is in Scene 2, Layer GLeft and Gright, Frame 459. The replay code that checks the variable can be found in Scene 2, Layer "Masking", Frame 416. The variable for the choice is "gob", gob==1 is for goblins, gob==2 is for dwarf.
[Code]...
I'm using Filereference.save() to save a XML file. It's working fine with default filename.But is there a way to force a file extension on the saved file? I'm using "untitled.xml" as the default filename, but if the user changes it to say "myfile", it gets saved as "myfile", rather than "myfile.xml".
View 1 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]...
i am just curious if this kind of technology for flash is available.Can a website flash player able to cut specific part of the video and save it as a new video through php and flash.
View 1 RepliesAs you all have probably summed up, I am created an RPG game using flash. As such, there are a lot of variables that go along with the player and the environment. I am trying to figure out what the best way to save these variables would be, so that the player may come back to the game at another time and pick up where he/she left off. I would prefer something that doesn't involve an sql database, but also something that has some form of encryption. I was thinking maybe something along the lines of XML. There is quite a lot of data that needs to be saved, and then later recalled.
View 11 RepliesMy loader component works when I publish to Flash Player 7 but not when I publish to Flash Player 8, why? The publish setting are for ActionScript 2.0 on both.
View 2 RepliesI am trying to create a flash player to display images in sequence using Flash player & ActionScript. The code below has lots of errors and I can't work them out. I have programmed in other languages and am perfectly aware that something like this.
*code*var imageLoader:Loader;imageLoader = new Loader(); // 1120: Access to undefined property imageLoader*/code*
OR*code*var imageLoader:Loader = new Loader(); // 1046: Type was not found or was not a compile-time: Loder*/code*
[Code]...
I have a swc plugin embedded in my product to stream live video to a group of recipients.The plugin uses the NetStream, NetGroup and NetConnection objects, the server I use to handle the RTMFP session is Influxis.One client creates a group as a publisher, and stream a live video.His Camera is enabled and I can see the video on the screen as well. The others connect to his group and play the video.Peer assisted Networking is enabled for both the publisher and the recipients.The plugin worked well in all 10.x versions (10.1/10.2/10.3)However, when upgrading to flash player 11.x, it stopped working.
-11.x to 11.x isn't working.
-10.x with 11.x isn't working.
-only 10.x to 10.x is working.
The server I use to handle the RTMFP protocol is Influxis.com I sent them the same question as well.The weirdest fact is that I'm using flash builder 4.6 with 4.6 sdk, which is aimed for flash player 11.1, and it is only working with 10.x flash players.
I'm having a performance problem that seem to be related to Flash Player 11.I noticed this mainly because Chrome auto-updates the flash player. So, it's now up to 11 in Chrome. During a sliding section transition, the flash player chokes and skips about 10-20 frames. In essence the content jumps, not a smooth transitions. You can see this at the following url. Using a browser with 10, plays as intended, a separate browser with 11, chokes and jumps ahead.
firstworldproblems-[url].....I have security sensitive site, that is more elaborate that I can't share here. But, the same issue is happening above.I'm using LoaderMax to load assets. Adding it to the stage and then animating them in from the left or right of the stage, using Tweenmax. The one I can't show is a series of images, 1280x640 pixels, 10 in total.Removing items from the stage when they are not visible, so I can get the CPU usage back. On Flash Player 10, this is working as intended.On 11 it jumps. I don't think it's the removing assets from the stage that's choking the player, because the above link has the same issue.I feel like this is a Flash Player 11 performance issue.
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 RepliesI'm pretty new to Action script and I have a problem here that I can't seem to figure out.
I have this Action Script Code which is attached to a simple movieclip, and it all works IF the general settings are set for Flash Player 6.
It does not work for Flash Player 7 or above, which is probably because this is Actions Script 1 Code...
I attached the .fla file and also here's the code:
[Code]...
In some cases, such as what my client wants - Flash 6 and Flash 7 players behave slightly differently... a very annoying thing at times.Now, what I need to be able to do is to detect what version of Flash Player the user has. This will be done while my flash application is playing and then run the appropriate part of the function I am writing.Any way to detect what version of Flash Player is running from within the Flash Player?
View 3 RepliesI have two mp4 video files on webserver, i wanted to play them in flash player(flv player) on my asp.net page, but i couldn't be able to play them, i also tried to play them in quick time player the same prob occured. but i waz giving the accurate path, there were no spaces in mp4 file names etc. Does it need to have mp4 player(or codec etc) installed on webserver?
I have also some wmv files on that server , and i am playing perfectly using silver light player, and media player object on my website.
I am trying to make the SIMPLEST POSSIBLE MP# player using the player component preinstalled in flash.It is very simple, the code is as follows:
Code:
on (release) {
player.contentPath ="Song.mp3"
player.play()
}
("player" is the mp3 component)
This works if I want a single track to be selected and played.Now, I need it to AUTOMATICALLY LOAD THE NEXT TRACK, which I will input in the code.I am thinking something like this:
Code:
player.onSoundComplete = function() {
player.contentPath ="Song.mp3"
player.play()
};
But this is not working.
PS: I know an XML file would be the best here, but I don't want to use it. I just want to enter the next track's code inside the swf.
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 RepliesI have a slight problem when publishing to Flash Player 7 but works perfectly in Flash Player 6, below is the code:[code]In short this creates a list where the values are kept in SharedObject.I need to use a WebService so I require Flash Player 7, as I said this works as expected in Flash Player 6, so maybe someone may know a pitfall or two when migrating code form 6 to 7?
View 1 RepliesI am trying to put together a simple game and have been doing really well until I decided I am going to have to create a new class to handle enemies.What I have so far is a player walking around on random terrains and I am up to the point where I have placed x amount of enemies on stage at appropriate times. I have written their class which will hopefully eventually handle their behavior and it outputs simple trace("BOO!").
Where I face the problem is that I obviously would like to make these enemies follow the player to attack. But when I try to access the .x or .y attributes of the player, it throws an error: 'call to a possibly undefined property with static type Class'?I have tried accessing the .x using the following ways (where badger is my player instance and Main is my class definition within the properties of the FLA):
Main.badger.x
Main(root).badger.x
Stage.badger.x
I have also tried to access other vars and still nope..My class code is this:
Code:
package
{
import flash.display.MovieClip
import flash.display.Stage
[code]....
Flash Player 11 project doesn't run in standalone player, is it posible to do this?
View 1 RepliesI can only find how to download the actual PLAYER for 10.1, but which library is used in conjunction with it?Will the latest release of the Flex SDK have the libraries for the multi-touch events etc?Or is the SDK for 10.1 only available to people who work for Adobe? will porting to iPhone supported formats only be available in Flash Professional, or will SDK users also have that option?
View 3 RepliesIs it possible for Flash debug player to show Flash website online a bit different than what the normal Flash player shows?
By different i mean...the content of the liquid Flash website instead of playing right in the middle it shows a bit off center.,
In some cases, such as what my client wants - Flash 6 and Flash 7 players behave slightly differently.Now, what I need to be able to do is to detect what version of Flash Player the user has. This will be done while my flash application is playing and then run the appropriate part of the function I am writing.Any way to detect what version of Flash Player is running from within the Flash Player?
View 3 RepliesI would like to know how the following ActionScript, that only works in Flash Player 6, can be updated to work in a Flash Player 10 file.[URL]As it says, "On Publish Settings set Flash Player version on Flash Player 6, or this movie will not work."It works fine published as FP6 but not as FP10 as I need it to be. This AS is added to a movie symbol that contains a button for a rotating menu effect.
onClipEvent (load) {
hx = 300/2;
hy = 400/2;
r = 100;
[code]....
Is 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'm building a portfolio site. I have buttons to go to previous/next frames and I have all the buttons on the timeline. Each instance is properly labeled and referenced in the actionscript. I get no errors when I publish in 9, but when published in 10 I get:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
I'm not sure why this is happening because there isn't a null reference in my mind. The button which I reference in the code is on that exact same frame. I think the error is that it's looking for the button from the previous frame, which puzzles me because I've moved on to the next frame and I don't know why it'd be trying to reference that. Anyone know of DisplayObject differences from 9 to 10 that would be causing me these troubles?
Im 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 RepliesI need to open a popup(html) form a Flash projector.
And I need save Files with "Save as window" from a CD to user choice...