Loading local .png and .mp3 files in Actionscript 3.0 - image

I am writing a program in Actionscript using FlashDevelop. Using URLRequest, I am loading image and sound files perfectly fine when the program is run through FlashDevelop. The files are located in bin with my HTML and swf files. However, when I run it using the browser (Chrome), the sound files works fine but the image does not load. I would think that it is a problem with the path, but the mp3 plays just fine, so I know that it can't be that.
Any ideas about what it could be?

If you are using Ad Blocker Extension in Chrome, then you need to turn of it or give images names which are not blockable in Ad Blocker.

Related

Enable VideoJS to play .mov

I have set up a wordpress theme called Video Board, the site I am building allows users to upload their videos for comments. Uploading a video from a mobile device is critical, the theme supports mp4 which covers android users, however it does not support .mov. Has anyone come across a way to play .mov in videojs?
The server has ffmpeg installed, however the last plugin I tried needed its own upload page which worked however videos were not captured in the themes latest uploads/popular posts etc.
I know a conversion would be the proper way to do it, but at this point I would even be happy working out a way that when users upload videos through the theme upload page, it doesn't actually convert but just changes the file extension(renames) it to .mp4, as that is all I have been doing to fill out some content.
I am open to all suggestions,
Thanks,
Sam
There are tech plugins for video.js, but these will require browser plugins. You're far better off converting the mov files after upload to standard formats, e.g. h264/acc MP4

Microsoft Player Framework not playing local files

I am developing a windows 8 app in winjs and one of its features is to be able to play local video files. So far I am using:
Windows.System.Launcher.launchFileAsync
Which works fine but obviously suspends the app and opens the video with their default video program. I would rather keep the user in the app so I tried to implement it using the Microsoft Player Framework(http://playerframework.codeplex.com/). I know the framework is referenced correctly etc because it can play video files both in the 'app data' directory and online.
However when I try to play files within a folder that the user has picked (with the folder picker) or the videos library that the app has declared access to, the video fails to play. The app can however change the name, create new files in the directory and delete files so I struggle to see a permissions problem.
To get the path of the file I am using getFileAsync( and using the path property and simply using that to set the src property of the MediaPlayer control.
Do any windows 8 app gurus have any suggestions as to why it is not working?
Thanks in advance
p.s. let me know if any further info is required

Local loading of images in actionscript fails in a browser works in flash player

This one is strange
When I run the flash player (from flashdevelop) the images are loaded and everything is fine.
But when I run the swf from a browser the requests are sent (using chrome's tools for programers - network tab) but nothing is loaded. The size/content column shows 0/actual size of the file
This makes me sad.
Any ideas where to look for an answer?
Make sure that you either compile the swf with the bitmaps imported in your stage/library or make sure that the html version has the right directory setup when the bitmaps are loaded from other directories

wp7 player freezes if html5 <video> and isolated storage

I have video file located in my application isolated storage and would like to play it from html using video tag. Video player runs and then hangs on "loading..". Can someone manage to get video played using html5 video tag and isolated storage?
My observations and tests (HTC HD7, Mango Beta 2 - 7.10.7712.60).
I can play this video file using MediaElement or MediaPlayerLauncher. So the file is correct.
If I publish this file in internet and change reference to absolute (src="http://absoluteUri.mp4") video file is opened correctly. So it seems there is a problem with relative path and isolated storage.
If i specify incorrect relative path I see another message so relative path in my experiments is correct.
audio html5 tag works with isolated storage files very well; video - doesn't (freezes) but works correct if I reference to audio file in internet
For "/folder/video.mp4" and "\folder\video.mp4" device opens different playback screens, but both freeze with 'loading' and 'opening' messages.
There is MediaPlayerLauncher C# class that works with "folder/video.mp4" name (doesn't freeze)and does not work with leading slash in path - "/folder/video.mp4" - throws file not found; contrariwise tag can't find file w/o leading slash, even in root folder.
Playback screens triggered by MediaPlayerLauncher and html tag look identical but in first case it works and in second it freezes.
EDIT:
Application overview: the app is general Windows Phone Silverlight app with embedded WebBrowser control where html is hosted. Why I need this? - I'm working on cross-mobile platform where application is defined as html + js.
Erick Fleck covers this pretty good at the MSDN forums in this blog post - http://social.msdn.microsoft.com/forums/en-us/wpdevelop/thread/190abd75-3b45-4454-96ab-c32fb19c4664 . Looks like it comes down to 'where you store your content', so the other apps would have to adapt their structure if you want it to be truly xplat. Or you could do some 'adaptive urls'.

How to script the download of "undownloadable" flash clip and then upload to youtube?

I am trying to find a way to upload the following flash replay to youtube easily
http://battlestations.mobileweapon.net/history_view.php?hid=274641
I want to do these for a large number of replays from the site. Problem is, I can't download the swf or flv somehow even after trying various flash downloader tools, such as Flashgot firefox extension.
Can anyone enlighten me as to why I can't download the replay for viewing locally, and briefly outline a way to script the uploading to youtube?
try http://userscripts.org/scripts/show/9789 its a greasemonkey script for facebook flash videos. I havent tried it personally but it looks like if you are on facebook you should be able to save the flv file with it

Resources