Flash Content in Director MX 2004 10.1
I used director to create my shell or base program. This way I could make a shaped and draqgable projector. The main content with in this file is in a linked swf file. All animated buttons, Scrolling menus, rollovers, video and text hyperlinks are in this SWF. All the buttons and menu in this swf file direct it to other locations within the SWF or call out to URL's. No buttons in the director file call to the SWF or vise versa. The buttons, scrolling menus and rollovers all animate while running in director but wont control the SWF.
Any Idea's
Post an example of the ActionScript that runs when you interact with a widget in your Flash file, but isn't doing what it should.
Similar Messages
-
Director mx 2004 won't display Flash 8 swf files & other Flash media
I have created a Flash 8 Project which has audio, video (which are converted to swf files fom flvs), flashpaper. This application is driven by XML.
However this application works fine outside director, but when I import the main swf file into director mx 2004 and RUN it, director won't display the videos (but I can hear the audio from the videos), Director wont show graphic images(eg menu icon movie buttons, and flash buttons). Also I can launch external files (eg text file) from flash, but again it won't work via director.
ANY SUGGESTIONS PLEASEANY SUGGESTIONS PLEASE
I suggest there's no need to shout.
Try linking the Director cast member to the external swf file instead of fully importing it. You also should have the 10.1.1 update in place - this is particularly important. -
Director MX 2004 and Flash Actionscript 2
Can anyone show me how to program director MX 2004 to run a
few Actionscript 2 programmed .swf (not frame-by-frame programmed)
in a row?Rob,
Thanks for your replay. Here is what I want to do:
I have a Flash animation all done in Actionscript to playback
a few slides with title and description. The pictures are loaded in
the .swf runtime and the location of the pictures, duration,
transition, and text attributes are controlled by external XML.
Since this is all done with Actionscript, the Timeline is not
really an indication of real time (like in frame-by-frame
animation). How can I program Director to play the whole Flash
animation and stop when done?
How can I upload a test file to you to illustrate what I'm
talking about? -
Director MX 2004 and Flash CS3
Hi there:
New to Director, so I apologize if this question's a wierd
one, but I'm wondering -- is it possible to host a Flash 9 SWF
(authored, say, in Flex and written in AS3) in a Director MX 2004
project? I'd like to add some of the features of Director to my
SWF, and am hoping I can drop in my SWF and write some code that'll
bridge the two environments.
Thanks,
Chris> is it possible to host a Flash 9 SWF (authored, say, in
Flex and
> written in AS3) in a Director MX 2004 project?
No, the last publically released version of the Flash Asset
xtra will
play version 8/AS2 files only. The next version of Director
(due before
the end of the year) is expected to include an updated asset
xtra -
Flash content disappearing in IE
While using IE on Mac OS X 10.4.6, my flash movie disappears
when I launch a simple JS pop-up window. It can be made visible
again by rolling over the various parts of the movie, but that's
silly. It works fine on all other browsers, including Windows
browsers. Anybody?Jeckyl,
No, I wasn't using transparent wmode, so I switched to it and
nothing changed. Here is a link, the flash content doesn't
disappear until you go to Directors, choose a Director, then click
on a spot title to launch a js pop-up. I have used the same js on
other sites and they work fine. I'm quite confused...
http://www.zgroupfilms.com/
Thanks! -
PC Explorer 6 flash content - PROBLEM!
Does anyone know why flash content when viewed on a pc in
explorer has a grey box around it. Viewing pages in explorer 6 on
the pc and published flash files in MX 2004 on the mac.see other threads on this page re. same issue
-
Autorun CD-ROM with flash content on website
I have two websites with Flash content that I need to put on
a CD-ROM for a presentation on a computer with spotty internet.
I've created the autorun part fine, but here's my issue. When the
html page pulls up in a browser and the link to the Flash content
is clicked, I get a security warning that " Adobe Flash Player has
stopped a potentially unsafe operation." Everything is on the CD -
nothing should be trying to access the internet - and I'm looking
for a way to override this security warning without having to
rebuild the flash files. So far, most of the info I've found deals
with changing something on the user's computer, but is there a fix
that can reside on the CD (so the user doesn't have to do anything,
or ever see the warning?)
Thanks!The basics of what you are asking is pretty easy to do in
Director. To
make a menu, just import your graphics including buttons.
Create a
frame label on the timeline for each video. On each button,
add the
behaviour named 'Jump to Marker Button' (it is in the Library
under
Behaviours, Controls). Pick the appropriate label for each
button in
the resulting popup. Then import your video and place one on
each
frame. Put the 'Go Loop' behaviour on each of these frames
(in the
frame channel). That behaviour is in the Library under
Behaviours,
Navigation.
Depending upon how your movies are setup, the rest will be
different
(i.e. are the Quicktime, avi, wmv, RealVideo, etc?). But the
Library
has behaviours for a lot of them, and building custom scripts
is pretty
easy as well if you can put forth the effort to learn Lingo.
It is
actually among the easiest to learn languages in my opinion. -
Director MX 2004 Games - Game Development with Macromedia Director examples
hi,
do you know where can I get examples for Director MX 2004
Games - Game Development with Macromedia Director from?Hi,
Look at the Inspriation Macromedia Direcor Games and
Entertainment links at:
http://www.adobe.com/products/director/special/inspiration/games/
I have cool Director content links at:
http://www.fbe.unsw.edu.au/learning/director/resources/#cool
regards
Dean
Director Lecturer / Consultant
http://www.fbe.unsw.edu.au/learning/director
http://www.multimediacreative.com.au -
Hi guys,
Does anyone has a sample on flash remoting inside director
2004 mx?
Thanks.
Kind Regards
Jun CanonigoWell, to be clear, the DataGrid component did not come with
Director 2004. A developer can copy the SWC file over and have it
available within Director.
I can tell you that any of the Flash components which were
not included in the release of Director 2004, were left out on
purpose. The reason was because there was some degree of
incompatibility at release. Specific what that is? I don't know the
specific details.
This does not mean that the DataGrid will not function in
your project. It could simply mean that data binding doesn't work.
Test Test Test is my main suggestion.
As for using the DataGrid... You have access to all the
exposed methods and properties to any component you add to
Director. Thus you should be able to uses anything found here....
http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/js/html/wwhelp.htm?href=Part4_ASLR2. html -
Est-il possible de créer entièrement un site Web
à partir de Director Mx 2004
Je ne connais pas le Flash mais travaille avec Director
Si cela est possible, l'un d'entre vous peut-il me diriger
vers des tutoriaux de cet ordre
mercimarcotab wrote:
> Est-il possible de cr?er enti?rement un site Web ?
partir de Director
> Mx 2004 Je ne connais pas le Flash mais travaille avec
Director
>
> Si cela est possible, l'un d'entre vous peut-il me
diriger vers des
> tutoriaux de cet ordre
> merci
Sans aucun probl�me, des sites m�me tr�s
complexe. J'en ai d�j� fait
plusieurs (de plus ou moins bonne qualit�)
Il n'y a en fait que peu de diff�rences avec un
programme offline
Il faut principalement se m�fier de :
- certaines fonctions, interdite en shockwave-safe (ie
jou� en online par le
plugin shockwave). Il s'agit de prot�ger l'utilisateur
(pas d'acc�s disque
par ex)
- d'autres qui sont � utiliser. Par exemple
gotonetmovie(url) au lieu de go
to movie "xxx"
- comme certaines fonctions, il faut faire attention aux
xtras : il faut
obligatoirement poss�der une version shockwave-safe de
l'xtra (qui n'existe
pas toujours. ex : fileio) et se m�fier de certaines
fonctions un peu
diff�rentes, voire interdites dans cette version
sp�ciale. Lors de la
publication depuis director, il faut aussi lui indiquer
d'auto-charger ces
xtras
- le preload. Certaines choses sont automatiquement
pr�charg�es par le
player, d'autres non. Il faut donc pr�voir le
chargement avant de pouvoir
utiliser ces �l�ments (bitmap li�s,
castlib externes, ...)
- Pour les test, il existe 2 m�thodes.
1 : les �l�ments doivent �tre
obligatoirement dans un dossier dswmedia (et
sous-dossier) pour un test dans director (il y a un
param�tre safeplayer qui
permet de simuler un environnement shockwave dans director)
2 : utiliser un serveur web, style apache, pour tester en
condition r�elle
le sw. Je pr�f�re largement cette solution,
m�me si elle est un peu plus
contraignante (publier syst�matiquement avant test).
On peut se passer du
dossier dswmedia, qui AMHA, pose plus de probl�me qui
n'en �vite
Il est �galement tr�s facile de dialoguer avec
le serveur web, gr�ce �
diverses fonctions (getnettext, ...).
Exemple de sites en SW
- site tr�s simple, qui n'est pas un site en soi, mais
plein de sw
ind�pendant. Il utilise � peu pr�s tout
ce qui est faisable en sw :
http://madoka.net.free.fr/indexb.html
- un site d�j� plus complexe :
http://madoka.net.free.fr/dos/
(seul les
tutoriaux
fonctionnent. Lancer la recherche vide)
- ce site est 100% shockwave : il est extr�mement
complexe (j'ai cr�� un
"OS" complet bas� sur director, et ce site pour le
tester online) :
http://iadb.free.fr
Attention, c'est une version un peu vieille et il doit rester
quelques bugs
Bubar - Les Studios Du Wapiti
Cr�ation de sites internet et de logiciels
multim�dias
http://www.wapitistudio.com
Xtras pour Director :
http://www.wapitistudio.com/xtra.htm -
FLV in SWF in Director MX 2004 Issue
I did a search, but couldn't find a response to this issue.
I have SWF running in a sprite in Director MX 2004. The SWF
includes an FLVPlayer component with a "SteelExternalPlayMute.swf"
skin and links to an external FLV. (Flash files are version 8. All
resources are in the same folder.) The visibility of the FLV Player
is set to "false" in SWF and I have a button in the SWF to set the
visible to "true" and play the FLV. This all works correctly in the
SWF and when I "PLAY" the Director movie in production, but the FLV
won't appear and "PLAY" in the Director Published EXE, but WILL do
so if I pull the ""SteelExternalPlayMute.swf" out of the folder.
Something in the Flash component skin isn't working in the
Director EXE because the Actionscript to play the FLV does work
when the skin is removed from the folder. Even the visibility
script works fine and the video plays.
Any ideas on how to fix this issue? Does anyone have
experience with this issue? Is it simply an incorrect SWF import
setting or resource?
Thanks.Hi,
You said swfs are Flash 8. Did you also set them to
Actionscript 2? If it's
Actionscript 3, that may be the problem. You may be
interested in looking at the
Flash Video templates I have at:
http://www.deansdirectortutorials.com/FlashVideo/
regards
Dean
Director Next Roadmap Survey
http://www.deansdirectortutorials.com/survey/DirectorRoadmap/
Director Lecturer / Consultant / Director Enthusiast
http://www.deansdirectortutorials.com/
http://www.multimediacreative.com.au
email: [email protected] -
Flash CS 4 and Dreamwaver 2004
Version:1.0 StartHTML:0000000216 EndHTML:0000011957 StartFragment:0000002400 EndFragment:0000011921 SourceURL:file://localhost/Users/kenneth/Desktop/PROBLEMS%20WITH%20FLASH%20CS4%20AND%20DR EAMWEAVER%202004.doc
PROBLEMS WITH FLASH CS4 AND DREAMWEAVER 2004
1. Buttons; When flash button is selected and modifications for the button are complete I get an unknown error message.
( see attachment; unkown error jpg)
2. Flash animations; When a flash animaton is selected from the assets panel of Dreamweaver the animation works fine both in Dreamweaver and in browsers.
3. Image Viewer; When the image viewer is opened the image viewer window opens. When images are loaded into the viewer and captions are added they appear to work in Dreamweaver but they don’t move in sequence when the buttons are clicked. In browsers the captions don’t appear. If the window is closed and reopened all of the images have disappeared and just the image viewer returns.
The response I got from an inquiry to Adobe was; “The version of Dreamweaver has been discontinued and is no longer supported via phone or web cases. We only support versions CS3 andCS4 via telephone or web.
Is it possible to have interoperability between these two programs? If so, how do I get it?You appear to be discussing features built-in to Dreamweaver that involve Flash content, so you may get better information from the Dreamweaver forum in regards to using these feaures.
It is unlikely that Dreamweaver 2004 would be compatible with Flash CS4, though compatibility is not really an issue since Flash has little use for Dreamweaver to do nything it needs to, and Dreamweaver is pretty much just a fancified text editor, where if you needed to incorporate Flash CS4 content you could have Flash publish the html code and then paste that code into the html file in Dreamweaver. -
Why is my flash content not working on my dreamweaver created html site?
This is a problem that's happening on my website I'm creating. I created a quick test website to show you the problem on the fourm. It's the same problem, and if you can provide the solution to this test website I can apply it to my main website.
Test website on server:
test331754952.net23.net
What I did:
-launched flash
-typed "test" and made it spin 360 degrees
-published swf
-launched dreamweaver
-created a site
-moved swf to site folder
-saved a html file to the site folder
-in dreamweaver, went to insert, media, swf, then selected the swf I made
-it inserted the swf, creating a gray placeholder for it
-re-saved the html document, at which point dreamweaver created a folder named script and 2 files, an swf, and a javascript file
Site Directory:
Scripts Sub-Directory:
What happens:
-when I launch the swf on my machine, it plays fine
-when I open the swf directly on the test website on the server, it plays fine
-when I open the html with the embended swf on the test website on the server, it shows a gray box, then goes white
-In dreamweaver, when I go to preview in browser and choose internet explorer, it tells me I don't have new flashplayer(I do: flashplayer 11)
Ie also pokes up a box at the bottom that says its not allowing content. When I click allow content, it creates a gray box
-In dreamweaver, when I go to preview in borwser and choose google chrome, it tells me flash player has stopped a potentionally unsafe operation. When I close this dialog box, it gives me a gray box where my swf should be embeded.
-I've tried changing global flash secuirty setting and it does nothing
-I've tried visiting the test website on multiple computers in my household to no avail
-I've tried having friends visit the site on their computer at their house to no avail
-I did't touch the code on this test website-the code is exactly what dreamweaver generated
Html Document Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
</head>
<body>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="550" height="400" id="FlashID" title="test">
<param name="movie" value="test.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="15.0.0.0" />
<!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="test.swf" width="550" height="400">
<!--<![endif]-->
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="15.0.0.0" />
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
<div>
<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
<script type="text/javascript">
swfobject.registerObject("FlashID");
</script>
</body>
</html>
Javascript file code(the one dreamweaver made when I inserted swf):
/*! SWFObject v2.0 <http://code.google.com/p/swfobject/>
Copyright (c) 2007 Geoff Stearns, Michael Williams, and Bobby van der Sluis
This software is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
var swfobject = function() {
var UNDEF = "undefined",
OBJECT = "object",
SHOCKWAVE_FLASH = "Shockwave Flash",
SHOCKWAVE_FLASH_AX = "ShockwaveFlash.ShockwaveFlash",
FLASH_MIME_TYPE = "application/x-shockwave-flash",
EXPRESS_INSTALL_ID = "SWFObjectExprInst",
win = window,
doc = document,
nav = navigator,
domLoadFnArr = [],
regObjArr = [],
timer = null,
storedAltContent = null,
storedAltContentId = null,
isDomLoaded = false,
isExpressInstallActive = false;
/* Centralized function for browser feature detection
- Proprietary feature detection (conditional compiling) is used to detect Internet Explorer's features
- User agent string detection is only used when no alternative is possible
- Is executed directly for optimal performance
var ua = function() {
var w3cdom = typeof doc.getElementById != UNDEF && typeof doc.getElementsByTagName != UNDEF && typeof doc.createElement != UNDEF && typeof doc.appendChild != UNDEF && typeof doc.replaceChild != UNDEF && typeof doc.removeChild != UNDEF && typeof doc.cloneNode != UNDEF,
playerVersion = [0,0,0],
d = null;
if (typeof nav.plugins != UNDEF && typeof nav.plugins[SHOCKWAVE_FLASH] == OBJECT) {
d = nav.plugins[SHOCKWAVE_FLASH].description;
if (d) {
d = d.replace(/^.*\s+(\S+\s+\S+$)/, "$1");
playerVersion[0] = parseInt(d.replace(/^(.*)\..*$/, "$1"), 10);
playerVersion[1] = parseInt(d.replace(/^.*\.(.*)\s.*$/, "$1"), 10);
playerVersion[2] = /r/.test(d) ? parseInt(d.replace(/^.*r(.*)$/, "$1"), 10) : 0;
else if (typeof win.ActiveXObject != UNDEF) {
var a = null, fp6Crash = false;
try {
a = new ActiveXObject(SHOCKWAVE_FLASH_AX + ".7");
catch(e) {
try {
a = new ActiveXObject(SHOCKWAVE_FLASH_AX + ".6");
playerVersion = [6,0,21];
a.AllowScriptAccess = "always"; // Introduced in fp6.0.47
catch(e) {
if (playerVersion[0] == 6) {
fp6Crash = true;
if (!fp6Crash) {
try {
a = new ActiveXObject(SHOCKWAVE_FLASH_AX);
catch(e) {}
if (!fp6Crash && a) { // a will return null when ActiveX is disabled
try {
d = a.GetVariable("$version"); // Will crash fp6.0.21/23/29
if (d) {
d = d.split(" ")[1].split(",");
playerVersion = [parseInt(d[0], 10), parseInt(d[1], 10), parseInt(d[2], 10)];
catch(e) {}
var u = nav.userAgent.toLowerCase(),
p = nav.platform.toLowerCase(),
webkit = /webkit/.test(u) ? parseFloat(u.replace(/^.*webkit\/(\d+(\.\d+)?).*$/, "$1")) : false, // returns either the webkit version or false if not webkit
ie = false,
windows = p ? /win/.test(p) : /win/.test(u),
mac = p ? /mac/.test(p) : /mac/.test(u);
/*@cc_on
ie = true;
@if (@_win32)
windows = true;
@elif (@_mac)
mac = true;
@end
return { w3cdom:w3cdom, pv:playerVersion, webkit:webkit, ie:ie, win:windows, mac:mac };
/* Cross-browser onDomLoad
- Based on Dean Edwards' solution: http://dean.edwards.name/weblog/2006/06/again/
- Will fire an event as soon as the DOM of a page is loaded (supported by Gecko based browsers - like Firefox -, IE, Opera9+, Safari)
var onDomLoad = function() {
if (!ua.w3cdom) {
return;
addDomLoadEvent(main);
if (ua.ie && ua.win) {
try { // Avoid a possible Operation Aborted error
doc.write("<scr" + "ipt id=__ie_ondomload defer=true src=//:></scr" + "ipt>"); // String is split into pieces to avoid Norton AV to add code that can cause errors
var s = getElementById("__ie_ondomload");
if (s) {
s.onreadystatechange = function() {
if (this.readyState == "complete") {
this.parentNode.removeChild(this);
callDomLoadFunctions();
catch(e) {}
if (ua.webkit && typeof doc.readyState != UNDEF) {
timer = setInterval(function() { if (/loaded|complete/.test(doc.readyState)) { callDomLoadFunctions(); }}, 10);
if (typeof doc.addEventListener != UNDEF) {
doc.addEventListener("DOMContentLoaded", callDomLoadFunctions, null);
addLoadEvent(callDomLoadFunctions);
function callDomLoadFunctions() {
if (isDomLoaded) {
return;
if (ua.ie && ua.win) { // Test if we can really add elements to the DOM; we don't want to fire it too early
var s = createElement("span");
try { // Avoid a possible Operation Aborted error
var t = doc.getElementsByTagName("body")[0].appendChild(s);
t.parentNode.removeChild(t);
catch (e) {
return;
isDomLoaded = true;
if (timer) {
clearInterval(timer);
timer = null;
var dl = domLoadFnArr.length;
for (var i = 0; i < dl; i++) {
domLoadFnArr[i]();
function addDomLoadEvent(fn) {
if (isDomLoaded) {
fn();
else {
domLoadFnArr[domLoadFnArr.length] = fn; // Array.push() is only available in IE5.5+
/* Cross-browser onload
- Based on James Edwards' solution: http://brothercake.com/site/resources/scripts/onload/
- Will fire an event as soon as a web page including all of its assets are loaded
function addLoadEvent(fn) {
if (typeof win.addEventListener != UNDEF) {
win.addEventListener("load", fn, false);
else if (typeof doc.addEventListener != UNDEF) {
doc.addEventListener("load", fn, false);
else if (typeof win.attachEvent != UNDEF) {
win.attachEvent("onload", fn);
else if (typeof win.onload == "function") {
var fnOld = win.onload;
win.onload = function() {
fnOld();
fn();
else {
win.onload = fn;
/* Main function
- Will preferably execute onDomLoad, otherwise onload (as a fallback)
function main() { // Static publishing only
var rl = regObjArr.length;
for (var i = 0; i < rl; i++) { // For each registered object element
var id = regObjArr[i].id;
if (ua.pv[0] > 0) {
var obj = getElementById(id);
if (obj) {
regObjArr[i].width = obj.getAttribute("width") ? obj.getAttribute("width") : "0";
regObjArr[i].height = obj.getAttribute("height") ? obj.getAttribute("height") : "0";
if (hasPlayerVersion(regObjArr[i].swfVersion)) { // Flash plug-in version >= Flash content version: Houston, we have a match!
if (ua.webkit && ua.webkit < 312) { // Older webkit engines ignore the object element's nested param elements
fixParams(obj);
setVisibility(id, true);
else if (regObjArr[i].expressInstall && !isExpressInstallActive && hasPlayerVersion("6.0.65") && (ua.win || ua.mac)) { // Show the Adobe Express Install dialog if set by the web page author and if supported (fp6.0.65+ on Win/Mac OS only)
showExpressInstall(regObjArr[i]);
else { // Flash plug-in and Flash content version mismatch: display alternative content instead of Flash content
displayAltContent(obj);
else { // If no fp is installed, we let the object element do its job (show alternative content)
setVisibility(id, true);
/* Fix nested param elements, which are ignored by older webkit engines
- This includes Safari up to and including version 1.2.2 on Mac OS 10.3
- Fall back to the proprietary embed element
function fixParams(obj) {
var nestedObj = obj.getElementsByTagName(OBJECT)[0];
if (nestedObj) {
var e = createElement("embed"), a = nestedObj.attributes;
if (a) {
var al = a.length;
for (var i = 0; i < al; i++) {
if (a[i].nodeName.toLowerCase() == "data") {
e.setAttribute("src", a[i].nodeValue);
else {
e.setAttribute(a[i].nodeName, a[i].nodeValue);
var c = nestedObj.childNodes;
if (c) {
var cl = c.length;
for (var j = 0; j < cl; j++) {
if (c[j].nodeType == 1 && c[j].nodeName.toLowerCase() == "param") {
e.setAttribute(c[j].getAttribute("name"), c[j].getAttribute("value"));
obj.parentNode.replaceChild(e, obj);
/* Fix hanging audio/video threads and force open sockets and NetConnections to disconnect
- Occurs when unloading a web page in IE using fp8+ and innerHTML/outerHTML
- Dynamic publishing only
function fixObjectLeaks(id) {
if (ua.ie && ua.win && hasPlayerVersion("8.0.0")) {
win.attachEvent("onunload", function () {
var obj = getElementById(id);
if (obj) {
for (var i in obj) {
if (typeof obj[i] == "function") {
obj[i] = function() {};
obj.parentNode.removeChild(obj);
/* Show the Adobe Express Install dialog
- Reference: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=6a253b75
function showExpressInstall(regObj) {
isExpressInstallActive = true;
var obj = getElementById(regObj.id);
if (obj) {
if (regObj.altContentId) {
var ac = getElementById(regObj.altContentId);
if (ac) {
storedAltContent = ac;
storedAltContentId = regObj.altContentId;
else {
storedAltContent = abstractAltContent(obj);
if (!(/%$/.test(regObj.width)) && parseInt(regObj.width, 10) < 310) {
regObj.width = "310";
if (!(/%$/.test(regObj.height)) && parseInt(regObj.height, 10) < 137) {
regObj.height = "137";
doc.title = doc.title.slice(0, 47) + " - Flash Player Installation";
var pt = ua.ie && ua.win ? "ActiveX" : "PlugIn",
dt = doc.title,
fv = "MMredirectURL=" + win.location + "&MMplayerType=" + pt + "&MMdoctitle=" + dt,
replaceId = regObj.id;
// For IE when a SWF is loading (AND: not available in cache) wait for the onload event to fire to remove the original object element
// In IE you cannot properly cancel a loading SWF file without breaking browser load references, also obj.onreadystatechange doesn't work
if (ua.ie && ua.win && obj.readyState != 4) {
var newObj = createElement("div");
replaceId += "SWFObjectNew";
newObj.setAttribute("id", replaceId);
obj.parentNode.insertBefore(newObj, obj); // Insert placeholder div that will be replaced by the object element that loads expressinstall.swf
obj.style.display = "none";
win.attachEvent("onload", function() { obj.parentNode.removeChild(obj); });
createSWF({ data:regObj.expressInstall, id:EXPRESS_INSTALL_ID, width:regObj.width, height:regObj.height }, { flashvars:fv }, replaceId);
/* Functions to abstract and display alternative content
function displayAltContent(obj) {
if (ua.ie && ua.win && obj.readyState != 4) {
// For IE when a SWF is loading (AND: not available in cache) wait for the onload event to fire to remove the original object element
// In IE you cannot properly cancel a loading SWF file without breaking browser load references, also obj.onreadystatechange doesn't work
var el = createElement("div");
obj.parentNode.insertBefore(el, obj); // Insert placeholder div that will be replaced by the alternative content
el.parentNode.replaceChild(abstractAltContent(obj), el);
obj.style.display = "none";
win.attachEvent("onload", function() { obj.parentNode.removeChild(obj); });
else {
obj.parentNode.replaceChild(abstractAltContent(obj), obj);
function abstractAltContent(obj) {
var ac = createElement("div");
if (ua.win && ua.ie) {
ac.innerHTML = obj.innerHTML;
else {
var nestedObj = obj.getElementsByTagName(OBJECT)[0];
if (nestedObj) {
var c = nestedObj.childNodes;
if (c) {
var cl = c.length;
for (var i = 0; i < cl; i++) {
if (!(c[i].nodeType == 1 && c[i].nodeName.toLowerCase() == "param") && !(c[i].nodeType == 8)) {
ac.appendChild(c[i].cloneNode(true));
return ac;
/* Cross-browser dynamic SWF creation
function createSWF(attObj, parObj, id) {
var r, el = getElementById(id);
if (typeof attObj.id == UNDEF) { // if no 'id' is defined for the object element, it will inherit the 'id' from the alternative content
attObj.id = id;
if (ua.ie && ua.win) { // IE, the object element and W3C DOM methods do not combine: fall back to outerHTML
var att = "";
for (var i in attObj) {
if (attObj[i] != Object.prototype[i]) { // Filter out prototype additions from other potential libraries, like Object.prototype.toJSONString = function() {}
if (i == "data") {
parObj.movie = attObj[i];
else if (i.toLowerCase() == "styleclass") { // 'class' is an ECMA4 reserved keyword
att += ' class=" + attObj[i] + "';
else if (i != "classid") {
att += ' ' + i + '="' + attObj[i] + '"';
var par = "";
for (var j in parObj) {
if (parObj[j] != Object.prototype[j]) { // Filter out prototype additions from other potential libraries
par += '<param name="' + j + '" value="' + parObj[j] + '" />';
el.outerHTML = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"' + att + '>' + par + '</object>';
fixObjectLeaks(attObj.id); // This bug affects dynamic publishing only
r = getElementById(attObj.id);
else if (ua.webkit && ua.webkit < 312) { // Older webkit engines ignore the object element's nested param elements: fall back to the proprietary embed element
var e = createElement("embed");
e.setAttribute("type", FLASH_MIME_TYPE);
for (var k in attObj) {
if (attObj[k] != Object.prototype[k]) { // Filter out prototype additions from other potential libraries
if (k == "data") {
e.setAttribute("src", attObj[k]);
else if (k.toLowerCase() == "styleclass") { // 'class' is an ECMA4 reserved keyword
e.setAttribute("class", attObj[k]);
else if (k != "classid") { // Filter out IE specific attribute
e.setAttribute(k, attObj[k]);
for (var l in parObj) {
if (parObj[l] != Object.prototype[l]) { // Filter out prototype additions from other potential libraries
if (l != "movie") { // Filter out IE specific param element
e.setAttribute(l, parObj[l]);
el.parentNode.replaceChild(e, el);
r = e;
else { // Well-behaving browsers
var o = createElement(OBJECT);
o.setAttribute("type", FLASH_MIME_TYPE);
for (var m in attObj) {
if (attObj[m] != Object.prototype[m]) { // Filter out prototype additions from other potential libraries
if (m.toLowerCase() == "styleclass") { // 'class' is an ECMA4 reserved keyword
o.setAttribute("class", attObj[m]);
else if (m != "classid") { // Filter out IE specific attribute
o.setAttribute(m, attObj[m]);
for (var n in parObj) {
if (parObj[n] != Object.prototype[n] && n != "movie") { // Filter out prototype additions from other potential libraries and IE specific param element
createObjParam(o, n, parObj[n]);
el.parentNode.replaceChild(o, el);
r = o;
return r;
function createObjParam(el, pName, pValue) {
var p = createElement("param");
p.setAttribute("name", pName);
p.setAttribute("value", pValue);
el.appendChild(p);
function getElementById(id) {
return doc.getElementById(id);
function createElement(el) {
return doc.createElement(el);
function hasPlayerVersion(rv) {
var pv = ua.pv, v = rv.split(".");
v[0] = parseInt(v[0], 10);
v[1] = parseInt(v[1], 10);
v[2] = parseInt(v[2], 10);
return (pv[0] > v[0] || (pv[0] == v[0] && pv[1] > v[1]) || (pv[0] == v[0] && pv[1] == v[1] && pv[2] >= v[2])) ? true : false;
/* Cross-browser dynamic CSS creation
- Based on Bobby van der Sluis' solution: http://www.bobbyvandersluis.com/articles/dynamicCSS.php
function createCSS(sel, decl) {
if (ua.ie && ua.mac) {
return;
var h = doc.getElementsByTagName("head")[0], s = createElement("style");
s.setAttribute("type", "text/css");
s.setAttribute("media", "screen");
if (!(ua.ie && ua.win) && typeof doc.createTextNode != UNDEF) {
s.appendChild(doc.createTextNode(sel + " {" + decl + "}"));
h.appendChild(s);
if (ua.ie && ua.win && typeof doc.styleSheets != UNDEF && doc.styleSheets.length > 0) {
var ls = doc.styleSheets[doc.styleSheets.length - 1];
if (typeof ls.addRule == OBJECT) {
ls.addRule(sel, decl);
function setVisibility(id, isVisible) {
var v = isVisible ? "inherit" : "hidden";
if (isDomLoaded) {
getElementById(id).style.visibility = v;
else {
createCSS("#" + id, "visibility:" + v);
function getTargetVersion(obj) {
if (!obj)
return 0;
var c = obj.childNodes;
var cl = c.length;
for (var i = 0; i < cl; i++) {
if (c[i].nodeType == 1 && c[i].nodeName.toLowerCase() == "object") {
c = c[i].childNodes;
cl = c.length;
i = 0;
if (c[i].nodeType == 1 && c[i].nodeName.toLowerCase() == "param" && c[i].getAttribute("name") == "swfversion") {
return c[i].getAttribute("value");
return 0;
function getExpressInstall(obj) {
if (!obj)
return "";
var c = obj.childNodes;
var cl = c.length;
for (var i = 0; i < cl; i++) {
if (c[i].nodeType == 1 && c[i].nodeName.toLowerCase() == "object") {
c = c[i].childNodes;
cl = c.length;
i = 0;
if (c[i].nodeType == 1 && c[i].nodeName.toLowerCase() == "param" && c[i].getAttribute("name") == "expressinstall") {
return c[i].getAttribute("value");
return "";
return {
/* Public API
- Reference: http://code.google.com/p/swfobject/wiki/SWFObject_2_0_documentation
registerObject: function(objectIdStr, swfVersionStr, xiSwfUrlStr) {
if (!ua.w3cdom || !objectIdStr) {
return;
var obj = document.getElementById(objectIdStr);
var xi = getExpressInstall(obj);
var regObj = {};
regObj.id = objectIdStr;
regObj.swfVersion = swfVersionStr ? swfVersionStr : getTargetVersion(obj);
regObj.expressInstall = xiSwfUrlStr ? xiSwfUrlStr : ((xi != "") ? xi : false);
regObjArr[regObjArr.length] = regObj;
setVisibility(objectIdStr, false);
getObjectById: function(objectIdStr) {
var r = null;
if (ua.w3cdom && isDomLoaded) {
var o = getElementById(objectIdStr);
if (o) {
var n = o.getElementsByTagName(OBJECT)[0];
if (!n || (n && typeof o.SetVariable != UNDEF)) {
r = o;
else if (typeof n.SetVariable != UNDEF) {
r = n;
return r;
embedSWF: function(swfUrlStr, replaceElemIdStr, widthStr, heightStr, swfVersionStr, xiSwfUrlStr, flashvarsObj, parObj, attObj) {
if (!ua.w3cdom || !swfUrlStr || !replaceElemIdStr || !widthStr || !heightStr || !swfVersionStr) {
return;
widthStr += ""; // Auto-convert to string to make it idiot proof
heightStr += "";
if (hasPlayerVersion(swfVersionStr)) {
setVisibility(replaceElemIdStr, false);
var att = (typeof attObj == OBJECT) ? attObj : {};
att.data = swfUrlStr;
att.width = widthStr;
att.height = heightStr;
var par = (typeof parObj == OBJECT) ? parObj : {};
if (typeof flashvarsObj == OBJECT) {
for (var i in flashvarsObj) {
if (flashvarsObj[i] != Object.prototype[i]) { // Filter out prototype additions from other potential libraries
if (typeof par.flashvars != UNDEF) {
par.flashvars += "&" + i + "=" + flashvarsObj[i];
else {
par.flashvars = i + "=" + flashvarsObj[i];
addDomLoadEvent(function() {
createSWF(att, par, replaceElemIdStr);
if (att.id == replaceElemIdStr) {
setVisibility(replaceElemIdStr, true);
else if (xiSwfUrlStr && !isExpressInstallActive && hasPlayerVersion("6.0.65") && (ua.win || ua.mac)) {
setVisibility(replaceElemIdStr, false);
addDomLoadEvent(function() {
var regObj = {};
regObj.id = regObj.altContentId = replaceElemIdStr;
regObj.width = widthStr;
regObj.height = heightStr;
regObj.expressInstall = xiSwfUrlStr;
showExpressInstall(regObj);
getFlashPlayerVersion: function() {
return { major:ua.pv[0], minor:ua.pv[1], release:ua.pv[2] };
hasFlashPlayerVersion:hasPlayerVersion,
createSWF: function(attObj, parObj, replaceElemIdStr) {
if (ua.w3cdom && isDomLoaded) {
return createSWF(attObj, parObj, replaceElemIdStr);
else {
return undefined;
createCSS: function(sel, decl) {
if (ua.w3cdom) {
createCSS(sel, decl);
addDomLoadEvent:addDomLoadEvent,
addLoadEvent:addLoadEvent,
getQueryParamValue: function(param) {
var q = doc.location.search || doc.location.hash;
if (param == null) {
return q;
if(q) {
var pairs = q.substring(1).split("&");
for (var i = 0; i < pairs.length; i++) {
if (pairs[i].substring(0, pairs[i].indexOf("=")) == param) {
return pairs[i].substring((pairs[i].indexOf("=") + 1));
return "";
// For internal usage only
expressInstallCallback: function() {
if (isExpressInstallActive && storedAltContent) {
var obj = getElementById(EXPRESS_INSTALL_ID);
if (obj) {
obj.parentNode.replaceChild(storedAltContent, obj);
if (storedAltContentId) {
setVisibility(storedAltContentId, true);
if (ua.ie && ua.win) {
storedAltContent.style.display = "block";
storedAltContent = null;
storedAltContentId = null;
isExpressInstallActive = false;
Can someone please help! I've looked and tried prety much everything. If you can provide a solution I would GREATLY apreciate it!There is no Flash player version 15... as in your code:
<param name="swfversion" value="15.0.0.0" />
For some reason Adobe thought it would be a good idea to target a Flash player version (15) as default.....which may be out a couple years in the future. Go figure!!!
If you don't like player version 9, change to 10 or 11.... just not 15 (yet).
Best wishes,
Adninjastrator -
Flash contents not being displayed on the published Apex application URL
I've had to publish one of my apex application through an bluecoat proxy to reach my Oracle HTTP server. It works fantastic for everything - except my flash charts. Flash contents are not getting loaded.Issue is only in the published application URL,the same application is working fine internally without proxy.
Does anyone have any idea why this is failing and how I might fix this?.The bluecoat support enginner is having the following findings
I am seeing some strange behavior when the browser goes through the
proxy vs when it does not.
When the browser uses the proxy the last thing it requests is the
following(packet 354):
GET /i/themes/theme_20/btn-bg.gif HTTP/1.1 Via: 1.1 GITS6ISA Cookie:
WWV_CUSTOM-F_941005998277888_193=7DE31ABFD8D9E680 User-Agent:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.19)
Gecko/2010031422 Firefox/3.0.19 GTB7.1 (.NET CLR 3.5.30729) Host:
ithelpdesk.anupcomp.ae Accept: image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language: en-us,en;q=0.5 Accept-Charset:
ISO-8859-1,utf-8;q=0.7,*;q=0.7 Referer:
http://ithelpdesk.anupcomp.ae/i/themes/theme_20/theme_3_1.css
X-Forwarded-For: 86.98.85.117 Cache-Control: max-stale=0 Connection:
Keep-Alive X-BlueCoat-Via: E2DE37912594ECAA
HTTP/1.1 200 OK ETag: "1a887e1-92-4c2c5105" Content-Type: image/gif
Last-Modified: Thu, 01 Jul 2010 08:25:41 GMT Server:
Oracle-Application-Server-10g/10.1.2.0.2 Oracle-HTTP-Server
OracleAS-Web-Cache-10g/10.1.2.0.2
(G;max-age=3600+360;age=0;ecid=121853469393,0) Date: Tue, 25 Jan 2011
07:52:55 GMT Accept-Ranges: bytes Content-Length: 146 Connection:
Keep-Alive Age: 0
That is the browser requests
http://ithelpdesk.anupcomp.ae/i/themes/theme_20/btn-bg.gif and gets a
200 ok from the proxy/server.
When the browser does not use the proxy I see the following
behavior(packet 2783):
The browser requests
http://anupserver:7777/i/themes/theme_20/btn-bg.gif 2 times, each time
the server responds with a 304 not modified status, this means the
browser has the most recent copy of the .gif file. The browser finally
does a post to http://anupserver:7777/pls/apex/wwv_flow.accept. Given
that the browser gets a 200 ok response from the proxy when requesting
http://ithelpdesk.anupcomp.ae/i/themes/theme_20/btn-bg.gif and then
stops requesting data, we need to understand why the browser is behaving
differently without the proxy(i.e. why does it request the content 2
times and why is it doing the post). The interaction between the
browser and the proxy appears normal, a 200 ok response with content is
normal, why does the browser stop requesting content?
GET /i/themes/theme_20/btn-bg.gif HTTP/1.1 Accept: */* Referer:
http://anupserver:7777/pls/apex/f?p=193:1 Accept-Language:
en-us,ar-ae;q=0.5 Accept-Encoding: gzip, deflate If-Modified-Since: Thu,
01 Jul 2010 08:25:41 GMT If-None-Match: "1a887e1-92-4c2c5105"
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET
CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152;
.NET CLR 3.5.30729) Host: anupserver:7777 Connection: Keep-Alive
HTTP/1.1 304 Not Modified Date: Sun, 13 Feb 2011 12:42:01 GMT Server:
OracleAS-Web-Cache-10g/10.1.2.0.2 Content-Type: text/html Connection:
Keep-Alive Keep-Alive: timeout=5, max=999 Content-Length: 0
GET /i/themes/theme_20/btn-bg.gif HTTP/1.1 Accept: */* Referer:
http://anupserver:7777/pls/apex/f?p=193:1 Accept-Language:
en-us,ar-ae;q=0.5 Accept-Encoding: gzip, deflate If-Modified-Since: Thu,
01 Jul 2010 08:25:41 GMT If-None-Match: "1a887e1-92-4c2c5105"
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET
CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152;
.NET CLR 3.5.30729) Host: anupserver:7777 Connection: Keep-Alive
HTTP/1.1 304 Not Modified Date: Sun, 13 Feb 2011 12:42:02 GMT Server:
OracleAS-Web-Cache-10g/10.1.2.0.2 Content-Type: text/html Connection:
Keep-Alive Keep-Alive: timeout=5, max=999 Content-Length: 0
POST /pls/apex/wwv_flow.accept HTTP/1.1 Accept: image/gif,
image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash,
application/vnd.ms-excel, application/vnd.ms-powerpoint,
application/msword, application/x-ms-application, application/x-ms-xbap,
application/vnd.ms-xpsdocument, application/xaml+xml, */* Referer:
http://anupserver:7777/pls/apex/f?p=193:1 Accept-Language:
en-us,ar-ae;q=0.5 Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE
6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR
2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729) Host:
anupserver:7777 Content-Length: 262 Connection: Keep-Alive
Cache-Control: no-cacheHello Orton,
I think this has something to do with network access, may be a firewall restricting access to the server.
Thanks,
Machaan -
Problem with Left Click (mighty mouse) and flash content
Hi, first sorry for my bad english...
Well I have an issue with the left click (i have mighty mouse) and flash content in Firefox:
if i'm using Firefox and then change to any other app, when i get back to firefox i have no left click anymore...
So i have to open the mouse setting panel and everything works fine again...
I don't want to open the mouse panel over and over again to fix that, so what i can do?
THANKS in advance =)
I uploaded a video to show the issue:
http://www.youtube.com/watch?v=ROWSod5fUjk
Mighty mouse Settings:
Left Click + Right Click
Firefox ver: 3.5.5
Snow Leopard: 10.6.2
iMac 24" (iMac9,1)
Message was edited by: MaLk GopherHi, Guys!!
And you have some right cosmic_hippo , Why?
Well think that the real problem it's something between Firefox and Flash content...
because if i use Safari and i try make what i describe in the first post, i don't have any problem with the mouse settings.
Only Happens when i use Firefox...
Cheers.
Well the issue is still there...
Maybe you are looking for
-
Keeps changing send ad receive!!
I have iPod touch 4th gen, 16gb. Currently in Thailand but left my phone at home and was receiving msgs fine but now keeps unticking my number on send/receive.. Why!?!? HELLLP
-
I am using the Google Maps API, it return in utf-8, so for some countries, caracters are wrong, My server is ISO-8859-1 So, how to convert the result from utf-8 to iso-8859-1 ? I tried : <cfprocessingdirective pageEncoding="UTF-8"> <cfcontent type="t
-
Using Time Capsule as a second, separate wifi network?
I hope someone can solve this little riddle that I've been mucking around with for a couple of days now. I have an existing wireless network, connected to the internet via an old Belkin wireless modem/router. I have an iMac and various other devices
-
After approval AR is not released
Hi Friends, We have developed a workflow for approval of AR's. I am creating appropriation request thro' IMA11 , and then I am sending it for approval now status FAPP for approval in progress now it came in my workflow inbox now I am approving the A
-
ICM LOGGER -Service Account Failure
Hi, Please suggest me for below- ICM Version- 7.5, SQL Version-2005 I have 3 Servers for ICM. 1 for Progger 1 , 1 for Progger 2 and 1 for AW/HDS. I have Installed both the logger and AW?HDS and installed SQL 2005 on the machine and updated SQL 200