Fancybox flash parameters - html

I am using fancybox within a html page and I am calling an flv file via a swf file, plays fine locally and works via the web, the problem is that I need to link all of my assets with remote urls as I need to host the html elsewhere. So html hosted on server A and assets on server B. So my thoughts turn to adding the flash parameter to the query.fancybox-1.3.4.pack.js file and this is where I get stuck.
http://www.myofficeheadset.com/video.html
I've located the object tag in the query.fancybox-1.3.4.pack.js file I just need to add the allowScriptAccess parameter
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+e.width+'" height="'+e.height+'"><param name="movie" value="'+c+
'"></param>';P="";b.each(e.swf,function(x,H){C+='<param name="'+x+'" value="'+H+'"></param>';P+=" "+x+'="'+H+'"'});C+='<embed src="'+c+'" type="application/x-shockwave-flash" width="'+e.width+'" height="'+e.height+'"'+P+"></embed></object>
Any help would be much appreciated
Justin

Using the video player within Flash usually loads the movie content dynamically from another location or file. It seems like the flash is loading perfectly fine, but it can not find the movie to load. You should make the path to this movie inside the swf an absolute path, as the relative directory changes based on where the swf is loaded into.

Related

How to embed swf file in floating iframe on website via. bookmarklet?

I am a high schooler & a novice to bookmarklets. I want a bookmarklet that can make a floating iframe on top of a website with a .swf file as it's contents. I've tried many solutions, but a major obstacle is that simply pasting the .swf link as an iframe content ("https://cdn.jsdelivr.net/gh/shirtjs/gstore#v1/cubefield_24.swf". I know, it's stupid.) just downloads the swf file, as we are using moderated chromebooks. Can somebody provide me a bookmarklet code that makes this?
"...But a major obstacle is that simply pasting the .swf URL link as an iframe content just downloads the swf file, as we are using moderated chromebooks."
This has nothing to do with moderators. As a software security issue, Chrome does not accept/load direct links to SWF files unless the link is inside a media tag like <object> or <embed>.
(maybe) solution:
Consider your current <iframe> line...
<iframe src="https://cdn.jsdelivr.net/gh/shirtjs/gstore#v1/cubefield_24.swf"></iframe>
Replace with <embed>code...
<embed src="https://cdn.jsdelivr.net/gh/shirtjs/gstore#v1/cubefield_24.swf" width="550" height="400">

Animate CC - Embedded video plays on SWF, not on HTML Wrapper

I am unable to get embedded video working in the HTML wrapper, whereas it works fine in the SWF file itself. The video plays instantly when opening the SWF, but when I open the HTML only the video player skin shows and no actual video, almost as if it can't find the video file.
Here is the exact process I went through to get to this point:
Starting from a blank ActionScript 3 document, I import a video and select the "Load external video with playback component" option. The video file is in the same directory as the project file, and the video file is referred to in FLVPlayback source as 'movie.flv'. From here I publish the project to SWF and also with a HTML wrapper. Upon opening the .SWF the video plays, however when I open the .HTML no video plays, although the video player skin shows up.
I have tried several different methods of getting this video to work, I have tried embedding the video solely with ActionScript, but the results are the same.
Is it possible to have the video load both in the .SWF and in the .HTML? The .SWF itself loads, but the video embedded in the .SWF does not. I have also tried using .mp4 files but have the same results. This is for a school project, so I am limited to using ActionScript, and the final project must be published to HTML/SWF/EXE.

Cordova play local audio file

My cordova app downloads an audio file from the web. This works fine and the track is being saved in
"cdvfile://localhost/persistent/JukeboxDownloads/Test.mp3"
I get the URL of the file like that inside the success call of my downloader:
entry.toURL();
I then try to play the downloaded file using an audio tag (iOS) like this:
<audio src="file:///Users/Marc/Library/Developer/CoreSimulator/Devices/59AA8A4B-5CE5-42E2-8CF8-7DA0DEB07E99/data/Containers/Data/Application/7406C75B-4509-44C5-A6C7-F71C2D6D27AF/Documents/JukeboxDownloads/Test.mp3" id="audioPlayer" controls>
I also tried to set the src manually using jQuery:
$("#audioPlayer").attr("src","file:///Users/Marc/Library/Developer/CoreSimulator/Devices/59AA8A4B-5CE5-42E2-8CF8-7DA0DEB07E99/data/Containers/Data/Application/7406C75B-4509-44C5-A6C7-F71C2D6D27AF/Documents/JukeboxDownloads/Test.mp3");
However, both did not work for me and I am not able to play the audio, it always says "Error" without further explanation. When I use another source file it works perfectly (that means a file inside my www folder or on the web).
Any ideas why cordova does not play the file?
I would appreciate your help!
Further information: Cordova 5.0;xCode 6.3.1;iOS 8.3
Try referencing the file by creating the src like so:
var src = cordova.file.documentsDirectory + 'JukeboxDownloads/Test.mp3';
I have found that when building the app and rebuilding the referenced GUID for the app changes which causes the URL to be invalid.
In my experience, using cdvfile://localhost/persistent/ works for images but not video or audio files.

xml elements loading on embed

This might be a stupid question but for some reason in my swf app, the images that are supposed to load from xml just aren't when embedded, but when the .swf is visited from it's url, it works fine.
In other words when i visit
localhost/project/swf/myswf.swf < loads xml fine
But if it's embedded like
<embed src="/project/swf/myswf.swf"></embed>
That loads the swf, but none of the images load from xml in it.
At first I thought it had to do with the url being loaded in actionscript. The file structure of the swf folder would be like:
/swf
/elements
- images
- images
- images, etc.
elements.xml
myswf.swf
so the swf is loading images from the elements folder after reading their url in the xml.
I changed the AS for the xml url to just "elements.xml" to the full url, and it didn't help, what could cause the problem?

Flash will not load images if it is embedded into a website

I have just finished making a flash banner in Fl5 and have embedded it into my website.
I can view it in my browser by going directly to the file however when it is embedded the photos will not load. The images it loads has to be in the same directory as the .swf file and as i stated it clearly works when going directly to the file but not once it has been embedded.
If someone else has had this issue or knows how to fix it, please help me
Thank You.
the directory of where the flash file can be found is:
http://tinyurl.com/6q5pu79
the website address is:
http://tinyurl.com/7x7nzz3
C
The paths you specify for the images in your code are by default relative to the HTML file where they are embedded (if you go directly to the swf, they're relative to the swf). You can fix that by using the base parameter when you embed.
Add a param in your HTML:
<param name="base" value="banner" />
... inside both <object> elements.
That tells FlashPlayer that relative paths in your code are relative to the "banner" directory rather than the directory where the HTML file is.