ActionScript 3.0 :: Load A PDF Into A Flash Player 10?
Dec 16, 2009Is it possible yet to load a PDF into a flash player 10 dynamically, much like you can with a jpg?
View 1 RepliesIs it possible yet to load a PDF into a flash player 10 dynamically, much like you can with a jpg?
View 1 RepliesI want to dynamically load .swf file in a player(like FLV player of as3) in as3.When I shall click on an image the corresponding video will be played on the player on right side(like you tube). Is there something (like FLV player) for .swf files with play, pause, resume, scrubber options to play in web?
View 3 RepliesI have the following mark-up to load a YouTube video player in a jQuery Tools overlay:
<a rel="#YouTubeVideo_MZKORPYI0HM" href="http://www.youtube.com/watch?v=mZkoRpyi0HM" title="Watch the YouTube video">
<img src="http://img.youtube.com/vi/mZkoRpyi0HM/2.jpg" class="youtubeThumbnail
[Code]....
The page behaves exactly how I would expect in Firefox (all versions) and Chrome. However, in IE8 (and I have the latest flash plug-in), I see a "1 item remaining" message in the status bar and the overlay contains no flash player. Right-clicking on the grey space shows a "movie not loaded" message.
Is it possible to load a jpg in place of a flash object if no player is found on the viewers browser?
I've figured out how to load an alternative page using "onload" as part of the body tag if no flash player is found, but just need to have something to load an alternative image object instead.
I have a flash mp3 player nested in a header on my website, there is a list down the page of the most recently added songs, I want people to be able to click on a link to a song and have it load into the player in the header.
View 2 RepliesI found this nifty code (here) for an MP3 player that uses XML/URLRequest to load the songs in.I'm trying to implement this code on my own application, and I've run into a couple of errors.I've got the XML loaded into the application, and it's showing up in a List component.But it's not letting me to play songs from it quite yet.This is the error I'm getting:
Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error.at BACKUPmusikkavspiller_mariuskristian_eksamenRIA_fla::wholeplayer_12/frame3()[BACKUPmusikkavspiller_mariuskristian_eksamenRIA_fla.wholeplayer_12::frame3:6][code3].......
I've read something about IOErrorHandlers, but I'm not quite sure how to use them, where to put them and what to read from them..If needed I'll paste my full code. The original code is from here <-, as posted above.
I'm struggling with a flash file that I want to play two different sound files when the appropriate buttons are pressed.I've gotten it to the point where it will load without any errors popping up, but instead of playing the second sound when I press the button for that sound, it plays the first sound again. Here's the code:
var sc1:SoundChannel = new SoundChannel();
var s1:Sound = new Sound();
s1.load(new URLRequest("http://www.website.com/wells.mp3"));
[code]....
I wrote a program in C# that, when a user press a button, opens a new form containing an embedded flash object. The flash application needs the user to be logged in, so i added to the source something like
swf.SetVariable("__ses", sid);
This works fine for 2 user testing the application, while the third one can succesfully open one table, while all the others appear "black", just like if the loader can't get past the loading step.
How can I get CPU utilization at client's pc with flash (actionscripting)?
I want to display red indicator if the cpu utilization at client's pc exceeds by certain amount.
I know this is probably something that is discussed a lot but I cannot find the solution to meet my exact needs. I need to redirect website visitors to an HTML version of my website (or show HTML instead of Flash) when they do not have flash player installed. I need a simple, clean, quick solution because there are about 70,000 letters that went out to customers with the site on them and the client just asked for this behavior this morning, right when the mail is supposed to hit mailboxes today.
View 3 RepliesI have a SWF loaded via a "swfobject.embedSWF()"I use Javascript's methods to pass calls via the flash APIs:call.player.sendEvent('LOAD', theFile)Using a XMLHttpRequest() call via GET to a PHP script I get a file url:Typing the URL into my browser starts the file, but passing the variable to the sendEvent() call does nothing. Why?
var response = http.responseText;
loadFile(response);
player.sendEvent('PLAY');
[code]......
I have recently installed FP 11.However I contsanly get message to install FP 11 when oppening one of my swf files emebeded in a html page.
It is ridiculous, I installed FP 11 and still get message to install it
I'm developing a simple Flash application which has only one SWF file. I want the SWF movie to start playing asap so I don't build a preloader for it. What happen if my actionscript code refers to resources which haven't been loaded yet? For example, the code cause the playhead to jump from frame 1 to frame 20 when the movie has just been loaded up to frame 10. In that case, flash player will? Block the script execution, stop playing, continue loading from frame 11 to 20 (without executing script), jump to frame 20 and invoke script at that frame when it's loaded?
Block the script execution, stop playing, ignore loading frame 11 to 19, load frame 20, jump to frame 20 and invoke script at that frame? Ignore jumping to frame 20, continue executing next statements after the go to frame 20 statement? Or anything else? If flash player doesn't ignore jumping to frame 20, any event is triggered when frame 20 is loaded completely? Note: Answers for the first question should focus on my example, cover all circumstances (such as attach movie from library...)
I have a flash+xml template . Unfortunately I can't add links to forum. But You can find that template at Flashden website, the name of that template is "Minimal xml template v1"
In the first panel AboutUs page with text I want modify it a little - I have a ready flash palyer and want change uploaded text to flv player movie (file preview.swf in the same folder)
Of course I need everything works tha same as default (when I'll click to close button - clear window with flv player, stop video and sound in flv player)
Now Aboutus text is loading to "Box1" movie clip in the text field "details_txt".
here you can see full AS code for xml text loading
Code:
//Load XML
//text instance name - details_txt
details_txt.html = true;
[Code].....
I've tried edit XML code (add preview.swf to content) and tried edeit AS in FLA source file. But it doesent work..
how can i load a Mjpeg file in a flash video player.I have a IP cam that i need to live streame to my site but How?
View 1 RepliesI want to use flv files for help document. But i need to set flv file, start and end points with code.
I'm trying to code flash player which can take these parameters(file name, start, end points) from html parameters.
NetConnection, NetStream and Video components are that i'm using. But i couldn't change the starting point to load flv.
There are 10 buttons on the stage and a display area. Clicking any button runs this function[code]...
This works well for the first few videos but after 5 or 6 unload/load cycles, the player gets slower and slower and eventually stops responding. I thought the basic idea of unloadMovieNum was to remove a movie from the stage and reclaim the memory but this doesn't seem to be the case.
I have some Flash application that loads data (external images, SWFs, XMLs) from the same domain. And it was fine until client decided to add load balancers for server. Now we have a number of complaints from users about security errors. It looks like application can't load external resources treating them as resources from different domain without crossdomain.xml.
One of users that have this problem provided us with following info:
Browser: IE 8.0
OS: Windows 7
Flash Player version: 10.1.102.64
I have spoken with server administrator and he told me that we have load balancers that work like Round-robin DNS. In its simplest implementation Round-robin DNS works by responding to DNS requests not only with a single IP address, but a list of IP addresses of several servers that host identical services. The order in which IP addresses from the list are returned is the basis for the term round robin. With each DNS response, the IP address sequence in the list is permuted. Usually, basic IP clients attempt connections with the first address returned from a DNS query so that on different connection attempts clients would receive service from different providers, thus distributing the overall load among servers.
Finally we have: SWF loaded from IP1, data requested from IP2, crossdomain.xml loaded from IP1. All of them can be accessed through the same domain, but have different IPs.Because of IPs difference, Flash Player ignores crossdomain.xml and triggers security error.I'm not sure it happens exactly like that, since for older versions of Flash Player I have found the following words:
The basis of domain comparison is the domain name, not IP address.
So, I have two questions after all of that: How exactly domain comparison for HTTP-connections works in latest versions of Flash Player? Can two resources obtained by address with same domain name but from different IPs treatened as obtained from different domains? Maybe someone have info about DNS rebinding in different browsers?
Has anyone seen a Flash video player out there that will load and play two videos at the same time, such as for comparing videos? A potential client is looking for something along the lines of this. I've not been able to locate anything out there,and I'm wondering if there's a usability reason for this...Obviously, you wouldn't want the audio playing for both at the same time, and the bandwidth issue for something like this might be a concern too. My feeling is that you wouldn't want to restrict a user to just playing both videos at once, but give them the option to play them separately or at the same time, with controls for each audio and playback.
View 1 RepliesI have written a basic piece of code to load and unload different swfs, now on their own they're pretty smooth (opened independently) , but when you load and unload them a couple of times in the main fla, just like as a user would navigate through a website, it causes the whole flash player and the movies to slow down quite dramatically and looks very bad as if about to crash. Now i know this problem was reported in FP 9, but anyone else has encountered this in FP 10 as well ?
Here's how i load and unload the external SWFs using buttons :
Code: Select allbt1.addEventListener(MouseEvent.CLICK,onLoadClick);
function onLoadClick(evt:MouseEvent):void
{
[code]....
What's the deal with multiple requests for the same external asset? Does the Flash Player cache and therefore ignore requests for the same file, or will it reload the file?
View 1 RepliesI have a Flash Player ActiveX control embedded in a .NET WinForms application and am trying to load a SWF into the FP control over an HTTPS url. In development I'm using a self-signed certificate and it seems that in this scenario I can't get FP to accept the certificate and allow the HTTPS communications.When I try to load the swf over https directly, I don't see the swf and when I right-click on the control I see "Movie not loaded". I can load the swf over http and then try to make Flash Remoting calls over https. I don't expect this to work by default but I added a crossdomain.xml file to allow insecure communications. The crossdomain.xml file is in the root of the server but is not loaded. I added an explicit call to loadPolicyFile with the full https url and the crossdomain.xml file is still not loaded. The local IIS logs don't show any request for the file at all, nothing in the HTTPERR file, and Flash's policyfiles.txt log says URl...If I host the swf in a browser, then the browser prompts to accept the certificate and everything works fine. I've accepted the certificate in IE and Firefox.I also tried calling DisableLocalSecurity() on the FP ActiveX control but it had no effect. I didn't really expect it to since I'm not actually loading the swf locally, it's loaded from a url.Can anyone confirm if the self-signed cert really is the problem? Is there a way to get FP to accept the certificate? Any way to bypass the http/https restriction (this is a locally installed app so I can change any local config files we need)?
View 1 RepliesMy flash media player is not playing automatically when my webpage loads. I have changed the settings from 0 to 1 (which should auto start the file), but still does not start the song automatically. This occurs in IE, FF, and Chrome.
<object type="application/x-shockwave-flash" data="http://flash-mp3-player.net/medias/player_mp3_maxi.swf" width="200" height="20">
<param name="movie" value="http://flash-mp3-player.net/medias/player_mp3_maxi.swf" />
<param name="bgcolor" value="#ffffff" />
[code]...
I am using CS4 with AS 3.0... I want to implement both a freeware photo flash gallery and mp3 audio player that I found into my all-Flash website. Both of these require reading from an xml file to get their content. They both come with html embedding instructions, but I don't know about actionscript.
View 14 RepliesIm working on a website for school, and im doing it through flash. The server ive been given is being taken up by thousands of pages, so its slow. Instead of loading each page through HTML, ive decided i could do a seperate frame for each page. However, to reach the menu at the bottom, you have to scroll down. Is there any way to make it so that when you click a button to load a different page for the flash player to scroll up all the way to the top of the page itself?
View 1 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'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]...