ActionScript 3.0 :: External SWF Not Playing When Hosted On Internet
Sep 12, 2010
Here is the external swf loader that is commonly used and which I used
ActionScript Code:
var xpos:Number = 4;
var ypos:Number = 4;
var swf:MovieClip;
var loader:Loader = new Loader();
var presvid:URLRequest = new URLRequest("presentation/presentation.swf");
loader.load(presvid);
loader.x = xpos;
loader.y = ypos;
addChild(loader);
The presentation.swf file plays well when I test the movie, but when I upload it to the internet to say swfcabin.com or deviantart, etc or any site which supports swf, the presentation.swf file doesnt play.
View 3 Replies
Similar Posts:
Dec 29, 2010
I have an external preloader that loads the game that's hosted on And let's also say that game is amazingly ridiculously popular that it exceeded the monthly bandwidth limit of my free hosting plan on that server and my account gets suspended. Then what will happen when the Loader object calls load (new URLRequesI'm planning to upload a game to a distribution website and they strongly encourage that the games be contained in one single swf. But trying to do a internal preloader is shortening my lifespan.So I plan to maybe have the game swf hosted on multiple servers and if the primary server fails due to heavy traffic or the account got suspended then the player can choose to load from a different server. I'm pretty sure that's possible..
View 2 Replies
Mar 10, 2010
I am able to publish flash as long as I launch from local computer. Can't get flash to play when I publish on external server hosted by ISP. Is there another method to publish that does NOT require the Ac_RunActiveContent.js?
View 1 Replies
Apr 12, 2010
I've been spending hours now reading up on IE7's issue with rendering Flash content on top of other elements, particularly navigation menus (this is often a problem with dropdown menus and Flash ad banners, for example).
Update
At Mercator's request, I am providing a large code-sample to assist in any advice you might have. Consider the HTML below:
[code]...
The footpanel uses jQuery-powered flyout menus, if that provides any further context. These menus have z-indexes in the 300X range to appear above the footpanel.The Flash in question is JW player playing a flash video or mp4. Currently, the object and embed tags are inside a container div.My understanding of previous solutions was that the combination of the param changes and the positioning/z-index change on the container div should have resolved the issue. Alas, it is not so. The player resides on top of the footpanel.Other information that may or may not be helpful is that the page is XHTML 1.0 Transitional and that Dreamweaver reports 1 error in the HTML code: <embed> is not in the XHTML 1.0 specification. This fact does not prevent the video from being viewed in any browser tested, and the page still displays correctly in FF.
View 2 Replies
Jan 12, 2011
In the below code i get an error saying Error #2007: Parameter url must be non-null on Internet Explorer only.What am i doing wrong here
html
<OBJECT
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
WIDTH="50"
HEIGHT="50"
id="myMovieName">
[Code]...
View 2 Replies
Oct 28, 2010
We have one player in this player we are playing flv files. If we are opening that player in the mozilla we can view the flv file after 2 second but in the internet explorer we can see the same flv after 20 to 25 second.
View 5 Replies
Mar 6, 2006
At the end of the movie I would like to check if the user is still connected to the Internet (they maybe on an unstable dial-up connection and lost connection). Is there anyway to do that? I mean, is there a way to check if a user is connected to the Internet using ActionScript?
View 4 Replies
Jan 31, 2010
Is there any way via Actionscript that I can have a swf determine what URL it's hosted under? For instance, if I put my swf on this site, I want it to behave one way and on another behave completely differently. Make sense?
View 7 Replies
Sep 17, 2010
I have a SWF hosted on a https enabled domain and amfphp installation on the same domain. Now when i let user embed the swf on his on http page, i intend to send some data to amfphp without user seeing it. However i see that firefox with firebug plugin catches the post data easily. How is this happening ? Adobe documents say that if a swf is hosted in https and destination is also under https, its suppose to be secure?
View 4 Replies
May 19, 2009
This code is posted in several places saying it works with paypal. For some reason, for me, it does not work - I get to paypal's homepage instead. However, the same code (sort of) works if I just use a straight html page. I don't get it.S3
Code:
addcart.addEventListener(MouseEvent.CLICK, addItem);
function addItem (event:MouseEvent):void
[code].....
View 1 Replies
Mar 15, 2009
why is that the news item links on [URL] work
and when the same swf is embedded here, the links do not work? [URL]
how can I go around this?
corssdomain: [URL]
I am using [URL]
View 1 Replies
Jul 28, 2009
I created a swf embedded on a web document and hosted on our local server. I have no problem previewing and playing it on flash player 10 but whenever I attempted to play the same swf in flash player 9 I'm getting a popup security warning. I went ahead and registered it on the Adobe website but still with no success.
View 4 Replies
Dec 6, 2009
I'm looking for an AS3 function to get the filesize of a file that is being hosted on a remote webserver. Tried to find some functions but didn't succeed.
View 3 Replies
Dec 6, 2009
I am looking for an online photo editor like url...) or picnik.com/info/api (Flash) but I need one that I can host on my own server.. been searching for a while but no results..I also love the idea behind url... but its so expensive.
View 4 Replies
Nov 8, 2009
I've embedded a virtual tour on one of my client sites.
The site is hosted by Slicehost, and as you can see the load times for the Flash movies are very slow, so my idea was to serve the swf files from Amazon S3 Europe.
To test it, I have all swfs uploaded to the same directory / bucket on Amazon, while the index.html and p2q_embed_object.js files reside on my local machine. The js file is changed to refer to the Amazon-hosted swfs. The first swf loads fine, but the others don't. What am I doing wrong? Is there a better way to do this that would allow me to serve my Flash assets from elsewhere?
View 1 Replies
Sep 1, 2011
How can I programatically make a picture of a flash application in an ASP.NET/C# page which is hosting the flash application?
View 2 Replies
Aug 2, 2009
i have a php page hosted on 1 domain and a flash login page on another and im trying to get the SWF on one domain to retrieve data from the php page on the other domain.If i run the SWF file on the same domain as the login script it works fine, The swf retrieves the info from PHP The current AS code is here.[code]
View 9 Replies
Jan 10, 2012
I used AS3 to successfully load a web-hosted video file when I tested my app. within Flash CS5. However, I published as a Windows projector EXE file and the web-hosted video won't load from within Flash Player 10 running the EXE.
View 1 Replies
Jan 2, 2011
I am looking for the abilities that Youtube's Chromeless player has to offer but for non-Youtube hosted videos such as Metacafe, Vimeo, Viddler, etc. Abilities I will need are :
[Code]....
Can I use Chromeless player for videos hosted on other sites besides Youtube? If not, is there a solution out there? If not, what languages/APIs would I need use and know to create such an application?
View 2 Replies
Jun 2, 2011
We are writing a new social app that connects to FB using FB connect (actually, it's in Flash so we're using the FB AS3 SDK, which uses the FB Javascript API under the hood AFAIK).
When the flash app is served from our site - it works fine.But when we try to embed it in a 3rd party site (using an Iframe that points to our site) the following happens: when we try to perform a login to FB using the AS3 function Facebook.login(onLogin, opts), a small browser-based login to FB pop-up comes up, but it has the following error first
Or is it possible that FB don't support FB connect apps that are embedded in 3rd party sites?
View 1 Replies
Apr 5, 2011
I want to create a custom video player to modify the skin of the play controls etc but still host the videos on youtube.The youtube api allows for minor colour adjustments but not full customisation. I know it would be possible if I download the FLVs but i want the video to remain hosted on youtube.
View 3 Replies
Jun 8, 2009
Ive got a project with a fairly complex arrangement of menus and a narrated tutorial of sorts that is large (in terms of Mb) compared to the menus themselves. Since the tutorial is likely to be played only once, if at all, I don't want to load the asset unless needed. To do this I'm using the following code to load an external swf (the tutorial) and attach it to an mc container (mc_launch). A loader bar will be added later but for now it works, except: if the user navigates away from the tutorial (jumps to another frame in the menu timeline) the audio of the child attached to the mc_launch continues to play even though the instance of the mc_launch is no longer on stage. Shouldn't all the child objects of the container go away once the instance of the container is gone? If not, do I specifically have to execute a mc_launch.removeChild(loader) before navigating away from the instance of mc_launch?[code]...
View 5 Replies
Aug 24, 2009
I am fairly new to Flash and working with MX 2004 with Flash 2. I have tried several methods to play an external .FLV file. Some ideas from this forum and some from the Flash help system. Either I don't understand them and/or I am not implementing them correctly but nothing has worked. I have read of an FLVPlayback component and my system has a MediaPlayback component in the Component window. I have also seen yards of actionscript to play such files. Can anyone supply me with a basic/simple method, with code/example or buttons-to-push if necessary, to have an .SWF play an external .FLV via my MX 2004 system?
View 3 Replies
Oct 10, 2009
I've got a flash site that's done in Action Script 2 in Flash CS3. On the gallery page I want to be able to load and play the external swf slides that the links point to where the black rectangle is instead of in seperate windows. I've tried all sorts of things but I just can't figure it out.
View 1 Replies
Oct 11, 2009
I've got a flash site [URL] that's done in Action Script 2 in Flash CS3. On the gallery page I want to be able to load and play the external swf slides that the links point to where the black rectangle is instead of in seperate windows. I've tried all sorts of things but I just can't figure it out.
View 2 Replies
May 5, 2009
I've been trying to figure this one out for a couple of days now, and it's driving me nuts! I'm new to flash (I'm using CS3 with AS2), but I've managed to convert a template into an almost finished site. My problem is this: I've made an external slideshow swf which works fine if used by itself. It's saved as a flash 7 AS2 according to the program (Aleo Slideshow Gallery Maker) used to generate it. It's in the same directory as the main swf file. I'm not sure of the code to load and play the external slideshow swf with a button in the main swf file. Do I need to change the html as well as the swf script? I've tried all sorts of things, but I can't figure the script out on how to finish the flash to include the slideshow. The SWF files inquestion are attached - I'm just using sample iamages at the moment. When I go to the gallery page, I want to be able to click on the fly to load and play the slideshow.
Attachments:
slide_btn.swf (17.8 K)
backup70.swf (881.4 K)
View 3 Replies
May 5, 2009
stop();var pausePoint:Number = 0.00;var isPlaying:Boolean;
var soundChannel:SoundChannel = new SoundChannel();var sound:Sound = new Sound(new URLRequest("Sounds/Music_File_2.mp3"));
[Code]...
I am trying to play the .mp3 file called "Music_File_2.mp3" the music file is in a folder called "Sounds" 2buttons called Play_btn and Stop_btn plays and stops the music. Once the music playing if i click on the play button the music will pause.
Everything works fine when i launch the program though "Flash Player 10". but when i right click and open the .swf file with Internet explorer the whol project works fine, but the sounds would not play.
View 5 Replies
Aug 26, 2009
Does anyone have any clue on how to unload an external swf with all its sounds?
View 1 Replies
May 25, 2010
I am having a problem stopping external swf from playing. I am currently using FlashCS4 and publishing to Flash Player 10. I would really like to use the code
"loader.unloadAndStop();"
to stop the swf. I tried using it but I keep getting the following error:
1061: Call to a possibly undefined method unloadAndstop through a reference with static type flash.display:Loader.loader.unloadAndstop();
I read somewhere that since the swf files were published in Captivate (also using Flash player 10) I have to load the swf into a flash movieclip first then try the loader.unloadAndStop code.
fscommand("allowscale","false");
fscommand("showmenu","false");
//import flash.display.MovieClip;
var Xpos:Number = 220;var Ypos:Number = 105;
[Code] .....
View 7 Replies
Oct 4, 2010
Before the mp4 plays I have a preloader set up in Frame 1to preload the movie and play in Frame 3.
myLoaded = Math.round(getBytesLoaded()); myTotal = Math.round(getBytesTotal()); myPercent = myLoaded/myTotal;if (myLoaded == myTotal)
{ gotoAndStop(3);} else { gotoAndPlay(1);}
[code].....
View 5 Replies