ActionScript 3.0 :: Flash Do Stuff After The Swf Is Closed?

Feb 4, 2012

I'm writing a Flash game for a class that is supposed to test elementary kids' math skills. After each activity is completed, Flash sends the results to our database (e.g., that 8/10 math problems were answered correctly). If the user is in the middle of an activity and hits our Logout button, we'll send what results they had to the database anyway. But if the user closes out of the browser in the middle of an activity, is there a way to quickly send stuff to the database before the swf dies?

View 2 Replies


Similar Posts:


ActionScript 3.0 :: Rotating Stuff Around Other Stuff?

Jun 29, 2011

So what I'm looking to do now is to actually get that movie clip - in this case an arrow -to rotate around another object - a ship - at a radius of 150 pixels and facing the mouse.This basically means to get the arrow to follow where the mouse goes around the ship - limited by the 150 pixel radius circle it can follow.p.s. This is the code so far:

ActionScript Code:
theArrow.x = theShip.x
theArrow.y = theShip.y

[code].....

View 4 Replies

ActionScript 3.0 :: NetStream.Connect.Closed - Know Which NetStream Has Been Closed

Aug 2, 2010

A NetStatusEvent with info.code of "NetStream.Connect.Closed" is dispatched by NetConnection when a NetStream is closed. This seems kind of weird, shouldn't the NetStream dispatch the event? how do I know which NetStream has been closed if I have more than one running (which I do)? I need to know so I can cleanup the now dead stream.

View 1 Replies

Flash - How To Detect When SWF Is Closed In AS2

Jul 2, 2011

Is there a script in AS2 that will call a function when the SWF is closed? I found solutions, but they're all in AS3.

View 1 Replies

Flash :: Embed Code Closed?

Dec 14, 2010

ok so i got a embed code which is hosted on another sitei enter the script to my page but now it makes my html validation fail with errors like this one h_id=cfe4b9038d67c69a9016a223b1040583&watermark=0&clickTag=null" width="1000"they all mainly apply to this part of it&watermark=0&clickTag=null"and the validator says i need a /> but when i change it from > to /> dreamweaver says it invaid <param name="allowFullScreen" value="true"><param name="wmode" value="transparent"><param name="allowScriptAccess" value="always">i dont know this code is there away to change it and still work? i deleted it from the end but then the watermark appears again.

View 1 Replies

ActionScript 2.0 :: How To Do Stuff In Flash

Oct 27, 2005

I know how to do stuff in flash. Ok, so here's what I want to know..on this guessing game, I want the person to enter in their 1 - 3 digit guess, the the number they need to guess is 577 (later I want to make this random whenever they go to play it). If they guess under 577, I have a box to say their guess is too low. If they guess over 577, it says their guess is too high. However, I am not sure how to make it so that what they put in the text box, it takes it as the new variable. I know this may sound confusing, but here is the .fla file.URL...

View 5 Replies

ActionScript 3.0 :: Call This Fscommand When The Flash Player Is Being Closed?

Apr 22, 2009

i have a flash application that calls a .bat file using fscommand.is there a way to call this fscommand when the flash player is being closed?

View 1 Replies

Flash - Closing Child NativeWindows When Main App Gets Closed (via OS)?

Mar 14, 2012

I have been going crazy over this! I have an Air (2.6) app which, when running opens up a pop up NativeWindow, to handle alerts.

public var _alertWindow:NativeWindow;
_alertWindow = new NativeWindow(windowOptions);
_alertWindow.stage.scaleMode = StageScaleMode.NO_SCALE;
_alertWindow.stage.align = StageAlign.TOP_LEFT;

[code]....

I have had no problems with this across all platforms. But in Windows7, when right click on the taskbar and selecting 'close-window' only closes the main app and not its child NativeWindow. ( This keeps the app running in the background - so when a user tries to access it again it does't run ) I have tried adding event listeners like Event.CLOSING, and various other methods but have failed.how to close windows from the 'close window' option in windows7.

View 1 Replies

ActionScript 2.0 :: Detecting Flash/html Window Closed?

Jan 9, 2007

is it possible for flash to detect when a user closes an html window with a swf embeded in it?

I want to record a user session time and need to be able to call a function and serverside script from within flash when a user closes the window...is there a way?

(I thought I might be able to do it with onUnload, but that will only work for unloading movieclips, not closing the main swf.)

View 1 Replies

ActionScript 2.0 :: Use Math Stuff On Flash?

Apr 11, 2007

how to code where it should move towards (that's easy), and I know somewhat how to use math stuff on flash. But when I tried to implement it on this, it doesn't work. See code:

angleA = Math.atan2(TARGET._y-HERO._y, TARGET._x-HERO._x);
var degrees = angleA/(Math.PI/360);
BULLET._rotation = degrees;

It is correctly placed, don't worry about that.

View 4 Replies

ActionScript 2.0 :: XML & Flash, Getting Stuff To Fit In A Movieclip?

Sep 11, 2008

I'm sure it's been discused before ..but I can't seem to be able to find it in the masses of photo gallery questions..So here it is;I want to load pictures/swf's etc into flash ..no problem.However, i want them to resize (proportionally) so they fit inside the movieclip holder.I'm ok with a solution where you have to state the size in XML, aslong as they fit in the movie clip.Code:

Code:
delay = 10000;
function loadXML(loaded) {

[code]....

View 1 Replies

Compile Flash Project From Brightcove Closed Caption Module?

Feb 24, 2012

I'm following the instructions here URL... to learn how to modify a closed caption plugin for the bright cove video player.I started by downloading the closed caption module code here:URL...After I downloaded it and unzipped it, I modified the file src/ClosedCaptionsModule.as.Now the instructions tell me to compile this into a SWF file.I looked at all the top menu items in Adobe Flash CS4, but I don't see any Build or Compile command.The Debug movie and Test movie actions are grayed out.

View 1 Replies

ActionScript 2.0 :: Flash On / Onevent Handler And Other Stuff

Mar 24, 2010

This is a pain but Ok the On event stuff has errors but works. the main part that has me fustrated is this.[code]The bio works but the rest wont. EVEN the collect which I made go to the same fame as bio but it does nothing.

View 21 Replies

Simple Login Flash Stuff Not Working

Sep 21, 2010

I am fairly new to Flash and I am creating a simple Flash login programme in Flash. If I type in the correct password or even if I type in the wrong password it always goes to frame 3 which is "Login Failed! Username or password was wrong". I have attached .fla file. Note I created in Macromedia Flash 8.

View 8 Replies

ActionScript 3.0 :: Working On Stuff Using The Flash Sound API ?

Feb 13, 2010

Has anyone been working on stuff using the Flash Sound API recently? I like working on dynamic audio and was wondering what the progress is on it.

View 1 Replies

ActionScript 2.0 :: Loading Database Stuff Through PHP/Flash?

Feb 10, 2005

ok, i have a database with two tables. one table holds the following:table 1 name: lotscolumns: lot_id, number, description, status_idtable 2 name: statusi have a php script that goes as follows (i'm ignoring the description fields for now):

PHP Code:
<?php
// database connection variables

[code].....

View 14 Replies

ActionScript 2.0 :: Pre-load The Stuff Flash Loads From Xml?

Mar 5, 2010

how to pre-load the stuff flash loads from xml -.- (actually the thumbnails, that need to be ready at cache for the roll-over effects). After looking a few tutorials and scrpts i have found in the i came to some conclusions but, fortunately, what i found checks the loading process for the individual items, while i need to get the sizes all together to add them in the loader.... I'm pretty clueless right now how to do that.

What i think i need is to create an array for the thumb attribute of my xml's nodes, and find a way to process the size of that all together using something like a shift + a variable for total size.... but well... i right now only think " i need to do that" but i have no clue of how =.=.

View 6 Replies

ActionScript 2.0 :: Loading Database Stuff Through PHP / Flash

Feb 10, 2005

i have a database with two tables. one table holds the following:[code]i have a php script that goes as follows (i'm ignoring the description fields for now):[code]now i'm not 100% sure this script is correct, so if anyone sees problems in it, please do let me know. i know that it needs some additions to pull the linking table (status) to display the status_id, but i have no clue how to write that as im not familiar with php, i just took this script from a user on this forum (i apologize for forgetting your name) and edited it.

anyway, i want to be able to pull out all those fields and load them up in flash so i can use them in the scripts over there.i have a grasp on the LoadVars(); a bit but not sure how to pull all this out and if its correct so that i can use it in flash. the fields im most worried about using is the number field in the lots table and the status_id (in both i guess since its a linking table).

View 14 Replies

Insert Stuff Like Headers (<h1>) And Meta Keywords Into Flash?

Mar 25, 2009

Can I insert stuff like headers (<h1>) and meta keywords into flash?

View 1 Replies

Professional :: Get Stuff Off The Stage To Show In A Web Browser On Flash CS4?

Apr 24, 2010

I have a picture that I want to be my background.  So I put it around the stage, but when I test my movie in a web browser, only my stage shows.  Is there a way I can get it to all show?  I don't really care if my background is cut off, as long as you can see it, because it's a tile sort of picture.

View 4 Replies

Set Text In Flash File Containing Stuff In Html Code

Feb 27, 2011

I want to create a flash file containing some text given by HTML code. For example like this:[code]But i don't have such swf file. So how can i make an swf file like that? Is there any program for it? Or is there already an swf file for that?

View 1 Replies

Flash :: Cannot Paste Stuff Onto The Stage With Gaia Framework?

Sep 21, 2011

I'm a total noob to Flash, and I'm learning it because I want to make a website design that looks like this.

That's coming from a separate external .fla file not inside my Gaia project. I currently have a Gaia 3.2.6/FP10/AS3 project with Timeline animation that I just made up today.The problem is that when I copy and paste those graphic symbols (not the background), into the 1st frame of my home.swf of my Gaia project, the preloader freezes at 50% on the home page.

When I remove the forms from my seperate external .fla file, then copy and paste them into the 1st frame of my Gaia project, the preloader freezes at 100%.When I draw a square onto the first frame of home.swf, the page loads normally.

View 1 Replies

ActionScript 3.0 :: Flash Closed Captioning For Flash WITHOUT FLV

Feb 29, 2012

I have created a tutorial for users that will register to use an application. I am used to using Adobe Captivate, but that is not available to me at my current job. So, I am doing my best in Flash. I couldn't figure out how to create a rewind button, so I cut up my tutorial into scenes that are based on what screen the user would see when registering.

Because of this, my audio will be cut into the scenes. I have created pseudo Closed Captioning by hiding and showing text when a user clicks on a Show or Hide button. That's great except, when the movie goes to Scene 2, the closed captioning returns to an off state and the user would need to click Show again. I want to know if there is a way to set a variable when the user clicks Show that can carry into subsequent scenes to then continue showing the Closed Captions. Alternatively, is there a way to make a rewind button or another way to handle Closed Captions? I am very new to ActionScript (3 or otherwise) and must have Closed Captions to meet federal law.

[CODE]...

View 4 Replies

ActionScript 3.0 :: Adobe Flash And Making Some Stuff And That Export It To IPad?

May 30, 2011

Im trying to learn Adobe Flash and making some stuff and that export it to my iPad. It doesnt have to be Shared Object, just read on internet that it could be used. But i dont know.

I need a save and load function. Im gonna explain why and how. Im making a test game. When the player finish a level another level on the "Level select" screen should be unlock.

So, when player open my game first time. Level 2 is locked. When he finish Level 1 he can play Level 2.I got some help with this and got it to work like this:

[Code]...

That means if Player hits goal he get send back to frame 2 and "level2played" gets true and he can click and play level2. But this doesnt ofcourse get saved when the app get closed. So i kinda need it to be saved. So if Player hits goal in level 1, this "level2played=true;" gets saved.

View 2 Replies

Implement Closed Captioning Into FLVs?

Feb 29, 2008

implement closed captioning into my FLVs. I have successfully set up the FLVplayback component, and the FLVplaybackCaptioning component to work. That's not the issue. The issue is, once I have my swf, flv, and xml files (needed to successfully use CC in a FLV), I need to insert that .swf into my captivate project.

It appears to insert/import OK, but once I publish the project, the swf does not appear, and in fact the FLV icon sits on the slide rapidly blinking. Neither the video plays, nor can I even see the playback component/closed caption component (swf) that holds the FLV.

All paths are relative, so the only things I can think of that may be causing the issue are:

a)Captivate doesn't support CS3 FLVPlayback or
FLVPlaybackCaptioning components

b)Since Captivate allows importing of FLV files directly, running the FLV through the component's swf is a problem

c)The hierarchy of files needed for the Closed Captioning FLV (xml, flv, swf), interfere with compiling the new Captivate .swf
upon publishing I've also been told that the FLV captioning component only works in Actionscript 3.0 which runs on Adobe Virtual Machine 2.Captivate publishes .swf files using Actionscript 2.0 which runs on Adobe Virtual Machine 1. Therefore, what I need to do will not work.

View 4 Replies

ActionScript 3.0 :: Closed Caption With No Component?

Jul 8, 2010

what the subject says: Closed Caption for Video Flv. Every documentation on internet speak about FlvPlaybackCaptioning.. I would like to made a flv player with caption on my own...
 
I also found an interesting component called CCForFlashAs3, but I'm not able to use it...

View 3 Replies

ActionScript 3.0 :: Sound Keeps Playing After Swf Closed

Mar 27, 2009

I'm building a web site that uses swf's as pages. The menu.swf has 5 buttons one for each page. When I press a button it loads a page with addChildAt (page, 0); so that the menu is always a level above the currently loaded page. When one of the pages open it plays a mp3 in a loop. The music keeps playing when another page loads. The page that was playing the music was also on level 0 so it's gone yet the music keeps playing. How do I make it so the music stops when another page loads?

View 3 Replies

IDE :: Character Disappears Right After The Browser Closed?

Dec 3, 2009

[url] i first thought they were using a socket server for this but if they were using socket server, i can only login one per ip address right? but if i open up two different browser, i can log in with two different character interacting each other.what i really dont understand is, how the character dispears right after the browser closed, without using a socket server.

View 2 Replies

Media Server :: User Is Not Getting Disconnected From FMS On Using IE Until IE Is Closed

Sep 9, 2009

FMS: 3.5..User is not getting disconnected from FMS on IE until IE is closed. While it works on Firefox and Chrome.When a user logs out on Firefox and Chrome, the user connection of FMS is getting updated. But it doesn't work on IE until IE is closed.

View 10 Replies

ActionScript 3.0 :: Popup FLVPlayer - Cannot Connect After Once Closed

Oct 4, 2011

I am trying to popup (addChild) a movieclip with a close button, which has FLVPlayback component in it. When hit close button, movieclip is removed from the scene and flv is stopped. But when popup the same movieclip again, flv is not correctly loaded into player and progress continues forever.vance.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved