ActionScript 3.0 :: Redirection Take Too Much Time?
May 1, 2009
I am using AS3 navigateToUrl (aka: AS2 getURL) or even tried javascript redirection (externalInterface) to redirect users from my movie to another html, but the first redirection takes like 15 seconds before its executed, eg before the page redirects to new page. Im not sending any data. This only happens if the redirection was not attempted already and the html is not cached.
So what i need is to decrease this time .. ideally for the redirection to happen instantly.
The movie is embedded in HTML like this: Dimensions: "Match Movie" (maybe if i used 100% width/height it would work?)
Scale: "Default (Show All)"
View 2 Replies
Similar Posts:
Dec 30, 2010
I have a flash game where MP3 files need to be externally loaded when the user plays a game. The problem is that I may change where the MP3s are hosted. This would normally be fine, just upload a different SWF with the new URL to the MP3s. The problem is that I can only post the swf once, because it will be uploaded to 1000+ sites and I can't go through them all and upload new ones. I need a way to redirect the URL to the hosted MP3.
One way for me to do it would be to host the redirection myself, but the game will be extremely popular (i hope) and I was wondering if there was a redirection service out there so that I'd put in:
URL: "redirectURL.com/35kskdfji2jdi"
Which would redirect to: "hostedURL.com/myMP3.mp3"
Is there any way for me to do this without just handling the redirection through a server that I rent?
View 1 Replies
Oct 15, 2002
I want to send form data from flash to my email through cgi.but i do not want to get the page redirected I want to display a message or data submission inside flash only.
View 1 Replies
Dec 1, 2009
1. I entered a url in a video player : rtmp://10.0.0.1/vod/mp4:sample1_1500kbps.f4v
2. this video doesn't exist in 10.0.0.1 server. it is exist in 10.0.0.2.
3. the server 10.0.0.1 connect, play, and resource not found.
4. server 10.0.0.1 know that this video exists in 10.0.0.2 ,then redirect the whole url to 10.0.0.2. such as rtmp://10.0.0.2/vod/mp4:sample1_1500kbps.f4v
View 3 Replies
Nov 30, 2009
I have a Flash object that sends an URL request with URLLoader. However, how do I make it follow those Location: redirections in headers?
View 1 Replies
Jul 9, 2011
I followed the following article to deal with ViewExpiredException -
It does what it is supposed to do. But I wanted to have some FacesMessage displayed on view if the user was redirected to it due to ViewExpiredException. So, I added a FacesMessage before redirection using NH.handlenaviage(). But it didn't work, and the reason was that the FacesMessage survived only one Request Processing Cycle.
At first my solution was to save the message in the session and retrieve it before Restore View phase of next cycle.
Even though it worked, I started looking for some standard solution and the first thing that I came across was the following article -
Persist and pass FacesMessages over multiple page redirects
But it didn't work. I think it's because the PhaseListeners are executed before ExceptionHandlers. So, in this case it was useless.[code]...
View 1 Replies
May 27, 2011
I have a flash file . In last frame i want to redirect it to a website.My problem is that I am not able to find the last frame.
View 1 Replies
Apr 9, 2009
I have this clock code and would like to know what needs to be added or changed for it to reference the time off the server and not the local computer time (and preferably reference the server just once and not repeatedly). I already have a file on the server "time.php" that is providing the milliseconds. I know it should be fairly simple, but I just can't wrap my head around it.
[Code],,,
View 2 Replies
May 5, 2010
I use CS4.
Code:
package {
import flash.display.Sprite;
import flash.events.Event;[code]...........
Both of these are saved in files with the name same as the classes.
Both are saved a folder which also contains an fla file name hello.fla.So,when test the movie(hello.fla),after choosing the document class as WavyBall,I get these errors: 1046: Type was not found or was not a compile-time constant: Ball.
Source: var Ball:Ball;
1120: Access of undefined property stage.
Source:Ball.x=stage.stageWidth/2;
1120: Access of undefined property stage.
Source:Ball.y=stage.stageHeight/2;
5000: The class 'WavyBall' must subclass 'flash.display.MovieClip' since it is linked to a library symbol of that type.What is wrong?
View 3 Replies
Dec 11, 2009
I have a fairly complex animation movie clip within my main timeline in a Flash file. When you click a button, it plays the movie clip, then goes back out to the main timeline. The first time the movie clip runs, it plays choppy and slow, but if I play it two or more times, it plays correctly (smoothly). Is there some actionscript I need to preload the movie clip, or some other solution to the first-run slowness?
View 2 Replies
Aug 24, 2009
I'm testing Live streaming with FMSS. The stream is pushed to FMSS buy Adobe FMLE software. Streaming works fine until I reach 1300-1400 simultaneous connections.No matter what the encoding ratebit is (150kbps or 2000kbps) the stream is no longer play from time to time (5-8 seconds).
The CPU (2xIntel Quad) is loaded less than 20% and memory used is about 2 GB (there is plenty of memory installed 32G). The OS is RedHat 5.3 64bit platform. Network uplink maximum rate is 4Gbps.I disabled the Queue but the problem still persist.
View 1 Replies
Jul 29, 2010
I added in my application universal time, and I gave start and stop time. The process is going smoothly, but if I change my system (local) time, the entire time will be changed. Is there any solution to solve this problem?
[Code]...
View 6 Replies
Aug 27, 2010
I am working on a site that has a clock but it displays in military time, is there a way to change it to regular time. The following is the Action script:
[Code]...
View 8 Replies
Jul 6, 2009
I've loaded a video into the FLVPlayback component and I'm looking for a way to get the total time and the time played so far and output them to two text fields so the end result would look something like "00:12/00:50".
Right now I'm defining the video by the components inspector but I'm eventually hoping to define this bit by actionscript as well.
View 6 Replies
Aug 2, 2009
im making a flash upload thingy for my site, it has options to set the expiry time of the file, each time has a button which needs to be made from an array (which comes forma php script, not really relevent)... here is my code..
ActionScript Code:
if (vars.options == undefined){[code]....
i know the x values are too small but they should still all appear on the stage right ?, only the final item in the array appears...i think i might be replacing the previous one with the new one.
View 3 Replies
Feb 9, 2010
Im using the FLVplayback component for a project im doing. I want to add the time elapsed and time left on the controls (just like how the player on the tutorials on this site works). I dont really want to create my own controls, as im happy with the flv playback component.
View 2 Replies
Mar 19, 2006
I was just wondering whether it was possible to perform a function after a period of time.like +2 to hp every 6 seconds.
View 2 Replies
Sep 2, 2009
i've a countdown flash and am reading the currentDate from client side ( user clock on windows ). i need to read the time from html for example and save it on var then strat time from it example: HTML Code:
[Code]...
View 11 Replies
Oct 7, 2010
I'm using ActionScript 2 and I already placed the progress bar on the stage assigned it the instance name ProgressBar0 but i'm confused on how to give it a label, have it start at a certain time and end at a certain and show the percentage complete in the label.
View 7 Replies
Nov 18, 2009
i have a player in flash action 3. i need to take a the total time of the sound file and current time of the sound file. how can i code like this.
function onPlayProgress(evt:Event):void {
var sndLength:int = Math.ceil(snd.length /(snd.bytesLoaded / snd.bytesTotal));
var seekbar = 100 * (channel.position / sndLength);
[Code].....
View 1 Replies
Apr 23, 2010
I need to add in extra hours to the time, and the day will change automatically too. How should I change the code below?[code]
View 1 Replies
Sep 17, 2006
make a clock base on given time(server time) as title,
View 2 Replies
Nov 7, 2004
My goal is to change the time for setInterval each time the function is called. Planning to replace myInterval = 5000; with a randomized number. My problem is getting setInterval to recognize the myInterval variable from the function.
[Code]...
View 2 Replies
Jul 13, 2010
every login ,flash get server time from php. how can i update time and date in flash..?
View 3 Replies
Apr 15, 2011
How to convert date and time to CDT time Zone in flex4.
View 1 Replies
Jul 1, 2011
How to convert UTC time into date time format in flex. I am using sdk 3.5. for example I have current date time in UTC format as 1309522586000 (milliseconds) and I want to convert it to friday jul 1 2011. How can I do this??
View 1 Replies
Feb 13, 2009
Is there a particular reason that when you stream a video your _netStream.time will misreport the elapsed time of the stream? I've tested streaming vs progressive download and discovered that while progressive netStream.time seems spot-on accurate the streaming netStream.time is behind the actual running time of the flv.
In other words, the video has played to completion and stopped, but the seek bar has only progressed 85% of the way through on a stream.
Is this something to do with the sample rate of the video, or some other encoding issue?
View 1 Replies
Apr 17, 2011
i'm trying to build this as3 buttons with labels for the OVER_OUT_CLICK tweens i`ve designed but aparently there is some problem because the button dose not act the same the first time you go over and out as the second time
[Code]...
View 6 Replies
Nov 6, 2011
developing custom video player for my fla files.. i made few flash slides with combination of audio,text,animations, and video files.(for a e learning project).. the player which i made is a blend of few sample tutorials available on online... now my problem is how to display the total movie length of the movie in a dynamic text box using as2..
View 6 Replies
Sep 16, 2005
obtain the time (by functions similar to getSeconds) of the server the flash file is hosted on, instead of the client who is viewing the movie?
Thing is, I have a very simple clock that displays the time in New Zealand (where I will be going), but it only display the time correctly for GMT+1 right now. If a client from New Zealand or US connects, they will see the wrong time :/
So right now i use:
Code:
newtime = timedate.getSeconds() + 3600*11;
timedate.setSeconds(newtime);
View 4 Replies