ActionScript 2.0 :: Calling An Off-site PHP Unction Without Leaving Flash?

Dec 8, 2009

Is it possible to call an off-site PHP function without having to go away from or refresh the page?

For example, say my game is embedded on a page in a separate website, and i want them to submit scores to my database located on my site. But i want them to be able to continue playing the game without ever leaving the flash focus.

On that note, is it possible to also call a php function off-site? Having a leaderboard IN flash that can update with your score without leaving the interface would probably be for the best here...

should be noted that the database is MySQL

View 2 Replies


Similar Posts:


ActionScript 2.0 :: Music Continues To Play After Leaving Site?

Apr 28, 2006

I have a mp3 player in a stand alone swf that I load into level 30 (or something). It works just fine, plays music and stop when I click the button. However, it continues to play after I have left my site and are browsing other pages, and at that point you have no way of turning it off. This is if course a big problem and I have taken the music.swf down for the time being.

Code:
stop();
// Preloader variables
var t = 0;
var l = 0;
var p = 0;
// Stop the stop button from morphing
//this.control.gotoAndStop(1);
[Code] .....

So, what is happening here? Why does it continue to play when I leave my site.

View 3 Replies

Flash :: Detect When Leaving A Frame In ActionsScript 3.0?

Nov 6, 2010

Is there an event listener to use to detect whenever I am leaving a particular frame on my timeline? If I am correct, Event.FRAME_EXIT only works on the newer versions of Flash. Is that correct? (I am working with CS3.)

View 1 Replies

ActionScript 3.0 :: Flash Xml Gallery Not Leaving Stage

Nov 20, 2009

Recently I got a premade flash component and put it in a flash site I was creating. It works fine when you view it, however, when I try to leave the "portfolio" page, the gallery stays on the stage, and I cannot get rid of it.

View 1 Replies

IDE :: Flash Motion Tweens Leaving Trails Behind Them?

Mar 17, 2009

Im motion tweening letters in from different angles to form the company's name for a website intro, but some of the letters leave a trail behind them...

View 2 Replies

Flash :: Professional - Browser Back Button After Leaving

Apr 8, 2010

I am currently working on a site where a button in the flash takes you to an external link. The user would like the browser back button, when you are on the external link, to take them to the page on the flash that was last viewed without restarting the flash. Is this possible?

View 5 Replies

Flash 10 :: Export To Quicktime Leaving Trails Of Color?

Feb 11, 2011

I am having this issue with Flash CS5:After making an animation, I export movie as Quicktime. When I view this movie it?well I am not sure what it is doing. The animation leaves trails of color when an object moves across the screen, leaving behind little bits of color too. Is it lagging? This does not happen when I export a SWF, but it does happen when I export a Quicktime movie.I export using Quicktime, so I can then import it into iMovie, to add titles, and sound and others things, or perhaps I just want to add a little Flash movie to my iMovie project.

View 0 Replies

ActionScript 3.0 :: Detect Mouse Leaving And Entering Flash Window?

May 31, 2009

Is there a way to detect when a mouse leaves the stage (flash window) and when it comes back?

View 2 Replies

ActionScript 1/2 :: Stop Cursor Leaving The Flash Stage Area In Browser?

May 22, 2009

I need to stop my cursor from moving on certain points on the stage. I'm using a magnifying glass effect but in the browser this only show the glass up to the stage so I need to stop it moving past those points. You can see what I mean if you move the magnify glass to the very left or right here:
 
[URL]
 
this is the code I have for the magnify glass:
 
var moveGlass:Number; 
magnifyingGlass.onPress = function() {    moveGlass = setInterval(startGlass,1);};function startGlass() {    magnifyingGlass._x =

[Code]....

View 4 Replies

ActionScript 2.0 :: Full Screen Flash Site With Scroll - See The Complete Site

Feb 25, 2012

i have made a site in flash. stage size 955x600 i have exported it as fullscreen with no scale. the problem is that if i browse the site with a resolution of 800x600 (760x420 if i'm not wrong), the browser dont' add scrolls and its impossible to see the complete site. How can i fix this without resizing the site. i want the users to see with the proportions that i have now.. ijust want a scroll on the browser.

View 2 Replies

Build A Html Site Aswell As Flash Site?

May 20, 2009

I was wondering if its still necessary to build a html site aswell as a Flash Site? Or is there a definitive and failsafe way to incorporate html into my flash site? SEO is a very important factor for me. I read this article: url...by Geoff Sterns in 2006, resulting in the following[code]

View 4 Replies

Professional :: Site Attack In Flash Site

Dec 14, 2010

A client of mine has had 2 sites (both Flash sites) attacked over the last 12 months, so he's been asking: should he go for a static HTML site or stick with a Flash site? Is there ways to make a Flash site more secure?

View 1 Replies

Logging Into PHP Site...Another Log In For Flash Site?

Mar 3, 2012

I have some people making a site that uses PHP and mysql. You will be logging in first to the PHP site, but the Flash based component of it requires to use the same log in and password. Do they have to log in twice??????

View 1 Replies

ActionScript 3.0 :: Redraw Is Leaving Artifacts?

Jan 16, 2012

Im pretty sure Im not going about this the right way... but anyways If you move to the left or right, the front triangle is supposed to have its points redrawn to locked positions inside the player, but for some reason it is leaving artifacts and Im sure its some redundancy in my script that I don't see...here is the script executing the redraw...

Actionscript Code:
function reDrawFront() {  var temp=frontLockright.localToGlobal(new Point(0,0));  var temp2=frontLockleft.localToGlobal(new Point(0,0)); 

[code]....

View 2 Replies

Hide Carosel After Leaving Frame?

Jun 25, 2009

From my flash "home" frames, I have 4 buttons that take the user to different places on the timeline. One frame on the timeline includes a carosel of pictures that rotate and looks nice. I downloaded the carosel actionscript and xml documents online, I did not build them myself. Now, when I hit the "home" button to get back to the home frame, the carosel still lingers around. I would like to know how to hide it, or make it not come back at all when coming back to my "home" frame.

Here is my actionscript inserted in the frame:

import mx.utils.Delegate;var numOfItems:Number;var radiusX:Number = 1000;var radiusY:Number = 30;var centerX:Number = Stage.width / 2;var centerY:Number = Stage.height / 2;var speed:Number = 0.9;var perspective:Number = 130;var home:MovieClip = this;var tooltip:MovieClip =

[Code]....

View 2 Replies

ActionScript 3.0 :: Stop Flv When Leaving A Frame?

Oct 6, 2009

i want to stop a video from playing,when leaving a framei tried to use SoundMixer.stopAll(); but it only stops the sound, i think my video is still streaming in the background because im starting to notice performance problems when i go back and open the video againthe website gets very slow.

View 5 Replies

ActionScript 1/2 :: Detection Of User's Leaving

May 11, 2010

With AS, can I trace that user hasn't been operating on the computer for a while, say 5 miniutes, and then do something? theoretically speaking, to detect that there is no mouse or keyboard event for certain a period of time, and then do something~~ just like screensaver of Widows~

View 1 Replies

Professional :: Export To .mov Leaving Artifacts Everywhere

Feb 17, 2011

I have made a simple animation with music, 800ish frames, no actionscript, using CS4 When I export it as a Quicktime Mov it breaks up and leaves artifacts everywhere, I read that the spec of your mac can affect the export but I'm working on a mac pro with 2 x 2.26 GHz Quad core Xeon and 16GB Ram so I very much doubt its that. The only other forums I've seen (working) answers on are ones where you save the video and audio separately and rebuild it in after effects or something similar but I do not have that software (and surely you should'nt have to do all that). I need to import the movie into iMovie to add to another piece of film.

View 5 Replies

ActionScript 3.0 :: Getting An Event For Leaving A Text Box?

Nov 3, 2009

wondering if there is an event that will be triggered when a text box loses focus or has been changed and then moved out? I tried Event.CHANGE but it fires everytime a letter is typed into a box. I am looking for something that would file once the focus leaves the box.

View 1 Replies

ActionScript 2.0 :: Detection Of User's Leaving?

May 11, 2010

With AS, can I trace that user hasn't been operating on the computer for a while, say 5 miniutes, and then do something? theoretically speaking, to detect that there is no mouse or keyboard event for certain a period of time, and then do something~~ just like screensaver of Widows~~

View 4 Replies

Flex :: StackOverflow Errors When Calling Publish After Calling Close

Mar 2, 2010

I'm getting stack overflow errors when I'm trying to publish() a NetStream after close()ing it. Pasted below is the error stack:[code]

View 1 Replies

ActionScript 3.0 :: Stopping Videos When Leaving Frame?

Nov 24, 2009

I have created an instance of FLCPlayback named "chili_player" which, depending on which button is clicked will play a certain video. This all works great.

my videos are located within videos_mc and in frame 80 of my site. I have other movie_clips and frames set up for other pages.

I have tried the normal method of placing the following code on every other frame the user can view.

videos_mc.chili_player.stop();

but it does not work and I get the following error message.

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at index_fla::MainTimeline/frame1()

View 3 Replies

ActionScript 3.0 :: Removing MovieClip On Leaving Stage?

May 26, 2010

I'm trying a shooting game from an incomplete tutorial online. I'm trying to finish it off myself and hopefully learning more in the process but straight away I've hit a brick wall.The stage is 900 x 350. Bullets are fired from a turret near the center of the screen and will travel and eventually leave the stage at some point. I want to remove the bullet from memory and the display list once it has left the stage and can no longer be seen.I'm using a conditional if statement to check the x and y position of the movieclip, and if it outside the width or height of the stage then I want to remove it completely.

PHP Code:
stop();var angle:Number=0;var radiansToDegrees:Number=180/Math.PI;var degreesToRadians:Number=Math.PI/180;var currentTurretRotation:Number;var

[code]......

View 4 Replies

ActionScript 3.0 :: Movie Replay After Leaving Page?

Jul 27, 2010

I have a movie that has an intro to it. It also has buttons that take them to subsequent pages. Once they go back, I'd like the intro portion of the movie to not play. In other words, I'd like it to start at a particular frame after the initial visit to it.

I think this can be done with Local Shared Objects, but I haven't quite figured out how exactly.

View 1 Replies

Animated HTMLText Leaving Trails / Streaks Behind?

Sep 28, 2009

I have some htmlText in a textField inside a MovieClip on the timeline. The MovieClip has a little (CS3) timeline motion tween on it - it grows and shrinks once. The htmlText is populated beforehand via ActionScript and the entire SWF sits inside a preloader "shell" that handles loading it and adding it to the displayList.
 
When the text expands - it looks fine. When it shrinks, the HTML bullets (UL and LI items) leave "trails" behind - and thus create a "streak". The funny thing is, if later on I move the playhead forward using gotoAndPlay(), the streaks disappear, even though it's not moving to a new keyframe for that MovieClip. So it's clearly a screen refresh issue.
 
I tried turning runtime bitmap caching on, and the bullets did not display whatsoever.

[Code]...

View 1 Replies

Professional :: Stop Video After Leaving Page?

Jan 8, 2010

i want to stop my video once i click onto another page
 
but the video still plays in the background??

View 4 Replies

ActionScript 3.0 :: Stop FLV From Playing Upon Leaving Frame?

Apr 19, 2011

Maybe someone has some insite on this before I open an artery. I have a timeline, seperated into sections. The navigation targets frame labels. On one of those keyframes there is a flv. When you play that video and then navigate to another frame without stopping the video, it continues to play. I've tried giving it an instance name and adding a stop action to it that resides in the button functions so when it navigtaes to another frame it would stop. However, when  I click on any button and the movie is not currently playing, I  get a error message that reads TypeError: Error #1009: Cannot access a property or method of a null object reference. I assume it is looking for something that is not currently there. It has been suggested that I use the SoundMixer.stopAll() but that removes any background music currently playing.
 
Do I need some kind of conditional statement that detects if the flv is currently playing?
 
Can FLV be controlled with a simple instancename.stop() ?

View 3 Replies

Actionscript 3 :: Flip Effect Leaving A Trail?

May 26, 2011

I'm trying to create something with a flip effect tutorial from tutplus - [URL] However my flip area is much bigger than the tutorial, it's 900px wide. Everything works fine except that it leaves a trail when the width is that big. You'll see it when you flip it a few times. Someone else posted the same problem in the comments from last year, but no one replied. Does anyone know a solution to this?

Edit: Here is a screen shot: [URL] The front is purple and the back is white. As you can see it left a bit of the purple as the page flipped to white. I couldn't get a screen shot of it turning, but it's even more obvious as the page is actually flipping because the width become narrow which reveals a whole lot more that's left behind on the page.

View 2 Replies

ActionScript 2.0 :: Leaving Trails Behind A Moving Object?

May 14, 2003

i have an object on a motion path and want it to leave a solid trail of itself when it moves (no fade and stage isn't cleared)

View 8 Replies

ActionScript 3.0 :: Leaving TextField And Updating Variables

Jun 30, 2009

I want a few variables to be updated when MyTextField is left. I tried this:
Code:
myTextField.addEventListener(Event.MOUSE_LEAVE, update_everything)
function update_everything(e:Event):void{
}
But that didnt work. My function should also work if the text field is left with TAB.

View 1 Replies







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