View Full Version : flash, html hrefs, z-level, wmode and more...
kracko
08-05-2007, 02:11 AM
I have a test version of my page here (http://www.moretothestory.com/hcuisine/test.html)
caveat: I have not, as yet, done anything with the embed code in the html, to have it work effectively in anything other than firefox. (It looks funky in IE)
I have designed a flash menubar with drop down menus. It appears above the rest of the html on the page.
I have used wmode (as I now know is a no no, after reading some feedback on this forum), to overlay the drop down menus on top of my html.
I have used a css and div tags to position various html elements around the page. (this probably has no bearing on my issue).
My main issue is that html a ref's that apppear under the flash div are not active. (see the brown headings in the body text area)
My question is: Since the menubar code is working and looking the way I want it to, what is the path of least resistance to getting this right?
I'm not really sure where to start in solving this issue.
Any advice would be appreciated.
atomic
08-05-2007, 03:00 AM
Yeah... Read about a somewhat complicated workaround on that recently, biut can't find the link right now... If I did bookmark it!
If I recall correctly, it had to do with resizing the division that holds the Flash movie, so that the Flash embedded object doesn't cover up the underlying links...
The division would be limited to the vertical size of the menu's main items... When you roll over it, it expands to allow the drop down, and retracts when you roll off...
kracko
08-05-2007, 03:12 AM
If anyone has the particulars related to a solution I would love to hear more. The div tag in my test version is currently set to a height of 35px (same as menu, minus drop down space). I don't think changing this will make any difference.
The flash component is 200px in height to accommodate the drop downs. Since the embed tag sets the flash component height to also be 200px, it displays beyond the boundary of the div tag.
atomic
08-05-2007, 03:36 AM
Ok, I had bookmarked it...
Check posts #18 & #21 of this thread...
http://www.actionscript.org/forums/showthread.php3?t=60193
And this example...
http://www.uovo.dk/incubator/transparentFlash.html
But seeing your last post just now... Maybe this won't work...:confused:
kracko
08-06-2007, 03:45 AM
I have used the example I found in the link supplied by atomic to resolve most of the issues I was dealing with. (Thank You)
Here (http://www.moretothestory.com/hcuisine/test.html)is the latest sample.
However, now I have discovered that the javascript technique of resizing the embeded flash window is failing in IE.
The following code is paraphrased from my HTML file:
<script language="JavaScript1.1">
function setFlashWidth(divid, newW){
document.getElementById(divid).style.width = newW+"px";
}
function setFlashHeight(divid, newH){
document.getElementById(divid).style.height = newH+"px";
}
function setFlashSize(divid, newW, newH){
setFlashWidth(divid, newW);
setFlashHeight(divid, newH);
}
</script>
<style type="text/css">
<!--
#flashResizer {
position:absolute;
margin:97px auto;
width: 750px;
height:36px;
z-index:9;
}
</style>....
...<div style="width: 750px; height: 35px;" id="flashResizer">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" id="resizeFlash" align="top" height="100%" width="100%">
<param name="allowScriptAccess" value="sameDomain">
<param name="movie" value="resizeFlash.swf"><param name="quality" value="high"><param name="salign" value="lt"><param name="wmode" value="transparent"><param name="bgcolor" value="#ffffff"><embed src="transparentFlash_files/resizeFlash.swf" quality="high" salign="lt" wmode="transparent" bgcolor="#ffffff" name="resizeFlash" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" align="top" height="100%" width="100%">
</object>
</div>
In flash I call the resizer function whenever I want to reveal/hide the space needed to display the drop down windows.
See here:
getURL("javascript:setFlashSize(\'flashResizer\',750,200)");
It works fine in Firefox and Safari, but fails in IE. (Oh joy)
Where should I start to create a functional IE version of this approach?
I will outline (in this thread) the entire solution when I have it all together.
kracko
08-06-2007, 03:55 AM
This may have to do with the method I am using to embed the flash file.
I am getting the (infamous) message to press the space bar or press enter to activate the control. I'll test again after correcting this.
<div style="width: 750px; height: 35px;" id="flashResizer">
<!--url's used in the movie-->
<!--text used in the movie-->
<!--
<p align="left"><font face="_sans" size="10" color="#010101" letterSpacing="0.000000" kerning="0">EMBEDDED FONTS & LINKED SYMBOLS</font></p><p align="left"><font face="_sans" size="10" color="#010101" letterSpacing="0.000000" kerning="0">this must be placed on stage before calling loadData()</font></p>
-->
<script language="JavaScript" type="text/javascript">
<!--
var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
if(hasRightVersion) { // if we've detected an acceptable version
var oeTags = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" '
+ 'codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" '
+ 'id="resizeFlash" align="top" height="100%" width="100%" '
+ '<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="hcmenu.swf">'
+ '<param name="quality" value="high"><param name="salign" value="lt">'
+ '<param name="wmode" value="transparent"><param name="bgcolor" value="#ffffff">'
+ '<embed src="hcmenu.swf" quality="high" salign="lt" wmode="transparent" bgcolor="#ffffff" '
+ 'name="hcmenu" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" '
+ 'pluginspage="http://www.macromedia.com/go/getflashplayer" align="top" height="100%" width="100%">'
+ '<\/embed>'
+ '<\/object>';
document.write(oeTags); // embed the flash movie
} else { // flash is too old or we can't detect the plugin
...
}
// -->
</script>
kracko
08-06-2007, 07:27 AM
I used SWFobject which has worked fine for me in the past, but I think it may have interfered with the resize function.
I include the swfobject code along with my functions like so...
<script type="text/javascript" src="swfobject.js">
<!-- resize functions -->
function setFlashWidth(divid, newW){
document.getElementById(divid).style.width = newW+"px";
}
function setFlashHeight(divid, newH){
document.getElementById(divid).style.height = newH+"px";
}
function setFlashSize(divid, newW, newH){
setFlashWidth(divid, newW);
setFlashHeight(divid, newH);
}
</script>
I then add my div and set the swfobject prams in script below the div tag like so....
<div style="width: 750px; height: 35px;" id="flashResizer">
Bypass link
</div>
<script type="text/javascript">
var so = new SWFObject("hcmenu.swf", "resizeFlash", "750", "200", "7", "#ffffff");
so.addParam("wmode", "transparent");
so.addParam("allowScriptAccess", "sameDomain");
so.useExpressInstall('expressinstall.swf');
so.write("flashResizer");
</script>
I am calling the resize function from my swf like so....
getURL("javascript:setFlashSize(\'flashResizer\',750,200)");
But the function is failing
See my test file here (http://www.moretothestory.com/hcuisine/test2.html)
The previous version minus swfobject that is working fine in firefox is here (http://www.moretothestory.com/hcuisine/test.html)
It seems I am almost there, if I can resolve this last issue, any help would be appreciated.
atomic
08-06-2007, 03:16 PM
I know how frustrating IE can be... And I don't think I can help you more than I already did...
But a few suggestions still...
On the IE link above, I do get a javascript error warning on the page as soon as I roll over the drop menu... I've also noticed that the menu will drop down if you mouse in from the bottom of the movie, not only if you mouse over from the top, indicating that the division is already expanded from the start...
I'd certainely get your .html down to it's simplest (removing all detection & install scripts), even removing your flashResizer bit, to see if I still get that javascript error... If not, then I'd gradually add back the Resizer, to maybe pinpoint what is in fact causing the problem...
Best I can do... Sorry!
kracko
08-06-2007, 04:35 PM
I have already determined that the IE issue is fixed (minus resizer).
The problem is that the resizer function is not firing properly when called from flash. It is actually the failure of the resizer function that is causing the error in IE.
Without the resizer function, all is well as far as IE is concerned.
If you look at it in firefox, you can also tell that the resizer function is not working there either. The first few links in the body text (the brown headings over the paragraphs) are not behaving as links because the flash window is covering them.
I suspect that I have to address the so object (part of the swfobject code), when I am attempting to resize the window, but not sure.
atomic
08-06-2007, 05:31 PM
Can you provide your menu's .fla?
atomic
08-06-2007, 06:04 PM
Just decompiled it... Maybe my decompiler, but nowhere can I find the getURL call to your javascript Resizer function? Sure you have the good hmenu.swf uploaded?
MrKracko
08-06-2007, 07:05 PM
I somehow messed up my actionscript.org account by attempting to change my e-mail address.
Anyhow. The getURL() functions are in .as files that's probably why you can't see them.
I don't want to post the src here.
I had the javascript functions working ok before I incorporated swfObject. So I suspect that swfObject has changed the structure of the embeded object in some way.
When I review the generated source (not the code in the html file) there are differences.
Generated code from my test.html (http://www.moretothestory.com/hcuisine/test.html)page (prior to adding SWFObject) :
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"
id="resizeFlash" align="top" height="100%" width="100%">
<param name="allowScriptAccess" value="sameDomain">
<param name="movie" value="hcmenu.swf"><param name="quality"
value="high"><param name="salign" value="lt"><param name="wmode"
value="transparent"><param name="bgcolor" value="#ffffff"><embed
src="hcmenu.swf" quality="high" salign="lt" wmode="transparent"
bgcolor="#ffffff" name="hcmenu" allowscriptaccess="sameDomain"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" align="top"
height="100%" width="100%">
</object>
Generated source from SWFObject in test2.html (http://www.moretothestory.com/hcuisine/test2.html):
<div style="width: 750px; height: 35px;" id="flashResizer">
<embed type="application/x-shockwave-flash" src="hcmenu.swf"
style="" id="resizeFlash" name="resizeFlash" bgcolor="#ffffff"
quality="high" wmode="transparent" allowscriptaccess="sameDomain"
height="200" width="750"></div>
The object definition seems to be missing when I use swfobject. I suspect this is at the root of the problem.
Otherwise the details are as I described them in my earlier post. I am using the same functions I used in the test.html version, so I did not need to change the getURL calls (using the same swf). In the html, I just added along with the include of the swfobject.js (see my post from yesterday aroiund 10:27 pm)
atomic
08-06-2007, 07:13 PM
Well I've got the drop, dropout, rowOne, rowtwo .as files... But still can't see that call... Any other .as files?
If so can you mail it to me? I'll provide an address through a PM.
Going at the doctor's... :( Be back later!
MrKracko
08-06-2007, 07:14 PM
I found a lot of posts in actionscript.org forums regarding the use of swfobject and resize. But none so far that have the specifics I would need to resolve this issue.
I'm going to keep looking, but if anyone has dealt with this same scenario, or seen someone who has I'd appreciate a heads up.
I found this site (http://hossgifford.com/downloads.htm) that claims to have a solution that works with swfobject. But in looking closer at the files, I can't seem to make out exactly what he's doing.
The demo I downloaded has no reference to swfobject. The live demo uses swfobject, but no reference to any of the javasript files downloaded in the example.
Strange.
MrKracko
08-06-2007, 09:31 PM
I was not able to find even one working example in the collection of posts I found here. I should say there are links to sites that appear to have a solution, but they do not provide sufficient evidence to reproduce their success.
It is interesting to note that there are people in these threads that claim to have some resolution, but none (that work) were published in the thread. I always like to finish a thread with the concise results of my findings in order to leave breadcrumbs for the next person.
I just think that is the kind of etiquette that should be encouraged here.
I'm going to start looking elsewhere.
atomic
08-06-2007, 10:00 PM
I was not able to find even one working example in the collection of posts I found here. I should say there are links to sites that appear to have a solution, but they do not provide sufficient evidence to reproduce their success.
It is interesting to note that there are people in these threads that claim to have some resolution, but none (that work) were published in the thread. I always like to finish a thread with the concise results of my findings in order to leave breadcrumbs for the next person.
I just think that is the kind of etiquette that should be encouraged here.
I'm going to start looking elsewhere.
And then when asked, you won't even provide your own files, so that someone else may test it on it's own... :rolleyes:
MrKracko
08-06-2007, 10:01 PM
Check your e-mail.
It is not necessary to post (publicly) your entire source in order to reveal the methods used to solve a problem, just those elements of code that are used to achieve a solution.
MrKracko
08-06-2007, 10:26 PM
As a matter of fact I have often been asked (by folks who want to help me solve my problem) to reduce a problem to it's basic elements. In other words to remove all code that has nothing to do with the problem you are trying to solve.
If you solve the problem, then re-introduce the supplemental code (incrementally if possible) in order to see if something else you are doing is causing the problem.
Usually it is best to create a simple example with no frills to demonstrate a technique. This is what I would do in this case if I arrive at a solution.
In fact, I may do it now just to prove to myself that there are not other factors involved here.
I am perfectly willing to post publicly this type of an example.
MrKracko
08-07-2007, 02:14 AM
Ok, I have prepared a simple test collection of files with the problem isolated.
You can download that collection here (http://www.moretothestory.com/resizetest/srcfiles.zip) (zip)
I have a simple version of resizing the div tag and exposing the flash window in it's entirety here (http://www.moretothestory.com/resizetest/resizer_.html).
This version does not attempt to solve the IE issues in any way. But it does successfully re-size the div tag exposing the flash window full view. Just press the down/up button alternately to expand/contract the window as well as loading the flash content without active control errors.
I have expanded that simple version by using swfObject to load the flash object into the div tag here (http://www.moretothestory.com/resiztest/resizer.html).
In the zip file you will find the following files:
resizer_html - simple version no IE handling
resizer.html - version with swfObject
resizer.fla - same .fla source used in both examples
swfobject.js (licensing from deconcept (http://blog.deconcept.com/swfobject/) applies)
The following code has been added to the header of my html page in the simple example:
<script language="JavaScript1.1" type="text/javascript">
<!-- resize functions -->
function setFlashHeight(newH){
document.getElementById('flashResizer').style.heig ht = newH+"px";
}
</script>
<title>Test re-size of flash window via getURL-javascript</title>
<style type="text/css">
body {
margin: 0px;
background-color:#FFFFFF;
}
#flashResizer {
position:absolute;
margin:97px auto;
width: 550px;
height:200px;
z-index:9;
}
#covertext {
position:absolute;
top:297px;
left:0px;
}
</style>
The javascript declarations are slightly different for the swfObject version:
<script src="swfobject.js" type="text/javascript"></script>
<script>
<!-- resize functions -->
function setFlashHeight(newH){
document.getElementById('flashResizer').style.heig ht = newH+"px";
}
</script>
the function setFlashHeight is called from my flash using getURL as follows:
getURL("javascript:setFlashHeight(200)");
The div tag and embed code in the simple example look like this:
<div style="width: 550px; height: 200px;" id="flashResizer">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"
id="resizeFlash" align="top" height="100%" width="100%">
<param name="allowScriptAccess" value="sameDomain">
<param name="movie" value="resizer.swf"><param name="quality"
value="high"><param name="salign" value="lt"><param name="wmode"
value="transparent"><param name="bgcolor" value="#ffffff">
<embed src="resizer.swf" quality="high" salign="lt" wmode="transparent"
bgcolor="#ffffff" name="resizer" allowscriptaccess="sameDomain"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" align="top"
height="100%" width="100%"></embed>
</object>
</div>
The div and script in the sample that uses swfObject looks like this:
<div style="width: 550px; height: 400px;" id="flashResizer">
no flash loaded
</div>
<script type="text/javascript">
var so = new SWFObject("resizer.swf", "resizeFlash", "100%", "100%", "7", "#ffffff");
so.addParam("wmode", "transparent");
so.addParam("allowScriptAccess", "sameDomain");
so.useExpressInstall('expressinstall.swf');
so.write("flashResizer");
</script>
The version with swfObject is not working. I'm not sure why.
The resize function has no effect at all in IE, (although the activate message is cleared when using the swfObject version)
It looks like the resulting code is not respecting the Stage.scaleMode="noScale";
setting in my .fla when the swfObject method is used.
If you set the player to show all you can see that the flash content is shrunk to 1/2 size, when the div tag is contracted.
Anyhow, this is not the desired behavior.
Bottom line, I need to see the resize function work in all cases with preferably with swfObject. If not with some other clean method of resizing the flash window.
I have seen the resize download by Gifford Hogs (http://hossgifford.com/downloads.htm). I can't seem to figure out how it is applied. If anyone could help me figure it out I would appreciate it.
I will reciprocate with a tutorial for others to use to work this out.
It does seem that others are looking for this answer as well.
MrKracko
08-07-2007, 02:53 AM
Just a couple of additional notes.
The simple example does not work in IE. I was mistaken. And of course it does invoke the dreaded active content click me doodad.
Essentially I'm looking for a cross-browser method of loading flash into a div, and then dynamically resizing the flash content (from flash).
I think this is what others want too (as I have seen in recent threads).
I need to take a break and build some more pages. But I need a solution soon, so if no-one can help I will have to keep pluggin away at it.
atomic
08-07-2007, 03:44 AM
The zip link is dead.
MrKracko
08-07-2007, 03:58 AM
Ok I fixed the link to the zip.
I also found this link at MustardLab (http://www.mustardlab.com/developer/flash/objectresize/). It looks promising. They have source code and thier example works in IE.
I found many more threads in the forums on this topic. Looks like it has been an issue for a lot of folks.
(I never gave up, couldn't help myself)
atomic
08-07-2007, 07:00 AM
Well a few cross-browsers positioning problems... But guess I got your main concern going... Works in IE, FF & Safari...
http://francoisgill.110mb.com/flash/MrKracko/resizergood1.html
It does sometimes pay to provide all of your specific code & files! :p
Mind you after all of that, IE does allow the link (I added) to be active, whether the .swf is expanded or not. Thus, your underlying links might still be clickable with IE when the drop menu is down.
kracko
08-07-2007, 06:41 PM
I do appreciate your support in this issue.
In the interest of leaving behind something useful for others I'd like to try and summarize our efforts here.
Atomic, Please correct me if I get anything wrong.
The problem
I was trying to resolve an issue that began with the following challenge.
I had a drop down menu that was to be displayed with a transparent background in order to reveal html in other div tags on a lower z-level.
If I were to simply allow the flash at it's full size to overlap the html, links in the html were not active under Firefox.
I also wanted to eliminate the active content message in IE. As I would with any flash deployment.
One further complication was that the div tag that was to host the flash content was explicitly (absolute) positioned on the page over the html content.
I began by using a getURL javascript call to increase or decrease the size of the div tag as needed to reveal the drop downs as the mouse ran over them. So far so good.
However, when adding swfObject to resolve the IE active content messages, I was no longer able to effectively resize the div tag.
So with Atomics assistance, we began to identify the issues and come to a conclusion.
I created a set of sample flash/html files to demonstrate the problem isolating the issues to those mentioned above.
Conclusion
Here is the end result (http://www.moretothestory.com/resizetest/resizer2.html) working as desired in Firefox, Safari and IE.
Here are the source files (http://www.moretothestory.com/resizetest/srcfiles.zip)used to demonstrate the solution.
I have revised the files developed by Atomic to demonstrate more explicitly the solution I was after and to eliminate any code that was extraneous to the solution.
There are many reasons I did not want to publicly make available the source to my menu bar, not the least of which were the hours I spent developing it.
More specifically the menubar I created was not necessary to demonstrate the issue I was trying to resolve. The much simpler example I produced as part of the example we used to resolve the problem was more appropriate.
With that said, Atomics contributions were invaluable to arriving at the conclusions I have provided here. Thanks again.
Solution
Resizing the div tag was not an effective solution for the dealing with flash object on the page after introducing swfobject (or any other means of adding the object to the page using javascript).
Instead it is necessary to resize the object itself. You do so by addressing the id of the object as it is defined by your script that adds the object to the page.
If you look at the swfObject code that follows the div that will contain the flash object you see the id assignment (the second value sent to swfObject "resizer").
<div id="flashcontent" style="position:absolute;">
no scripting allowed or flash player not present.
</div>
<script type="text/javascript">
// <![CDATA[
var so = new SWFObject("resizer2.swf", "resizer", "550", "200", "6");
so.addParam("scale", "noscale");
so.addParam("wmode", "transparent")
so.write("flashcontent");
// ]]>
</script>
resizer will be our target for the resize.
The javascript function that has been added to the head of our html page along with the include of the swfobject.js file is as follows:
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
<!--
function resizeSWF(nHeight) {
//alert(nHeight);
nHeight += "px";
document.getElementById("resizer").style.height = nHeight;
}
//-->
</script>
Note that getElementByID uses "resizer" as the target for setting the height style. This same method can also be used to set the width of the flash object.
The styles for the 2 div tags that contain the text which the flash will be positioned over (covertext) and the flash object (flashcontent) are set as follows:
<style type="text/css">
body {
margin: 0;
background-color: #ffffff;
}
#flashcontent {
width: 550px;
margin:97px auto;
z-index:2;
}
#covertext {
position:absolute;
margin:310px auto;
}
</style>
This positions the flash content 97 pixels below the top of the page and sets the width to match our flash object. The text will appear below the top half of our flash object allowing the bottom portion of the flash object to overlap.
The 2 div tags appear in the body of the html as follows:
<div id="covertext">
<table width="550" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="240">This text should be covered while<br /> flash window is expanded. </td>
<td width="210">This text should always be visible through transparent portion of flash window<br /><br /> text to the left may be covered by a graphic when flash window is expanded, otherwise it should be seen to the left of this text<br /><br /><a href="http://WWW.google.com/"> LINK </a></td>
</tr>
</table>
</div>
<div id="flashcontent" style="position:absolute;">
no scripting allowed or flash player not present.
</div>
Note that the flashcontent div has a style setting. The absolute positioning needs to be set here for some reason. It appears that when swfobject replaces the content of the div that if the absolute setting is not done in the div tag it is not respected even if it has been set in the style (CSS) for that div.
Finally we need to have our flash code incorporate the javascript function to alter the flash object dynamically when we are exposing/contracting the drop down portion of our menu.
Stage.scaleMode="noScale";
Stage.align. = "TL";
// if expand = false, flash window is contracted, else expanded
var expand = false;
this.button_mc.onRelease = function () {
if (this.expand) {
getURL("javascript:resizeSWF(200)");
this.expand = false;
this.bname.text = "DOWN";
} else {
getURL("javascript:resizeSWF(400)");
this.expand = true;
this.bname.text = "UP";
}
};
stop ();
Note that it is important to set your scaleMode for the stage or your flash content will be shrunk when the flash object is reduced to a size smaller than what you used to design the flash content. Also the Stage.align setting must be used to ensure that the flash content is not simply centered in the div which when contracted will hide some of the flash content.
The sample files have all this code as shown here.
atomic
08-07-2007, 06:46 PM
Your posted link to this working in your above post, isn't working!
Sure you've set the correct link?
kracko
08-07-2007, 06:54 PM
Your right, I inadvertantly left out the stage.align setting in the flash in my effort to reduce the code down to it's bare minimum.
Fixed now, in the demo and source.
atomic
08-07-2007, 07:12 PM
Better!
Only remains the maybe problem that with IE, the link remains active whether the division is expanded or not...
masie82
11-07-2007, 07:41 AM
hi kracko,
is the linking for the source file u uploaded working?
atomic
11-07-2007, 02:37 PM
PM me an address, and I'll mail you the files.
atomic
11-13-2007, 09:11 PM
For those interested, I believe the attached as being the last working files, mentioned above...
Thank you Atomic for the link.
Tried it and it seems to work.
Only thing is that i cannot get this to work when i try to publish it for Flash version 8.
Anyone know if its possible to make it work?
atomic
11-14-2007, 02:08 PM
Works fine for me when published for 8?
Works fine for me when published for 8?
Just tried it again.
- Saved the zipfile, unpacked it.
- Opened the file in Flash
- went to 'Publish settings' and changed version to 'Flash player 8'
publised it, but when i press the button it will say up / down, but nothing appears/happens :eek:
atomic
11-16-2007, 02:09 AM
Are you testing it from the .html?
masie82
11-16-2007, 04:29 AM
my flash has 6 drop down menus; unfortunately the script only workable on one menu only. if i put the script at all menus, only one of them will work or nothing will work or sometimes, it seems to work but it's not (flickering).
then, when i applied the script to only one button, it works fine in safari but not in firefox.
and then in safari, when i put a flash animated banner underneath the working expandable menu, the menu will flicker during the animation's transition.
oh my..
atomic
11-16-2007, 04:52 AM
The name of the game is compromises!
Be much easier if we only had AOL browsers... Then nothing would work!
albertxx
11-16-2007, 10:15 AM
hi everyone. ı build a dropdown menu in actionscript 3. sample
www.kosano.org.tr
but ı have got some problem please help me. firstly;
ı can click a link under the dropdown menu on internetexplorer 6 and 7 but ı cant clik firefox and opera. ı did wmode=transparent but this is good for iexplorer. what do ı do???
if ı dont do this ı have got second plan
how can ı resize movie in actionscript for example
when onmouse over movie height= 557px onmouse out movie=70px how can ı do these
thanks for your responds
(sory my english is not so good)
Are you testing it from the .html?
Yup, tried it but i cant seem to make it work.
Would it be possible for you to zip your Flash 8 published one?? thanks
atomic
11-16-2007, 04:10 PM
Took my above posted files and modified them, publishing for Flash 8...
They work both locally and online...
http://francoisgill.110mb.com/anne/resizer1.html
You can download the files...
http://francoisgill.110mb.com/anne/sourceMod8.ZIP
atomic
11-16-2007, 04:14 PM
OH!. Notice I've changed the html's background color And the Flash division's color, to show these were really modified files...
Since the division when down, is no longer transparent, you now lose the right text and link as well... That was just for this demontration obviously.
OH!. Notice I've changed the html's background color And the Flash division's color, to show these were really modified files...
Since the division when down, is no longer transparent, you now lose the right text and link as well... That was just for this demontration obviously.
Hi Atomic,
Thanks again for your help.
Just opened the files in Flash and when i check under publish settings, it still is set to Flash 7 instead of Flash 8.
Can you confirm this?
Thank you
atomic
11-19-2007, 03:03 PM
Sorry my bad I guess... Just change it to 8, and re-save it...
Or re-download the updated mod8.Zip above...
Sorry my bad I guess... Just change it to 8, and re-save it...
Or re-download the updated mod8.Zip above...
Hi Atomic,
Thank you again for your help
Just tried it out and i am seeing what i experienced before.
I cannot get the script to work when its published to Flash 8
The page loads as normal but when pressing the buttons, nothing happens - both in Firefox as in Internet Explorer.
There is no sign of any JS script error as well
I really wonder why i cannot get this to work
atomic
11-20-2007, 07:15 AM
Well I can assure you that the following is published from & for Flash 8, pulled from the zip package posted above...
http://francoisgill.110mb.com/anne/resizer1.html
If the above link works for you, there's no reason it shouldn't work when you have a go at it...
Unless you're on a Mac? :o
masie82
11-20-2007, 09:27 AM
im on mac, using ff, n the link posted works fine for me
that is strange, it wont work in both IE and FF here.
does this maybe have to do with flash player version? i have version 9
when i click on the button, nothing happens :(
atomic
11-22-2007, 07:09 AM
I have the Flash Player 9 plug-ins also...
superduperfreak
12-01-2007, 07:26 PM
Is there an easier solution to this problem?
My problem is related in addition to overlapping with multiple and independent flash drop down menu. Works great in IE but in FF and Saf., the independent flash menu overlap each other hindering functionality on the less priority menu. Plus, of course where ever the menu drops hinder the links.
I have the Flash Player 9 plug-ins also...
Got it to work now.
Somehow i had to reinstall flash completely to make it work in the browsers as well.
Its a nice script and i am trying to use the UFO.js instead of the SWFobject.js
Cant really seem to get it to work.
My script in the header looks like
<script type="text/javascript">
var FO1 = {movie:"resizer1.swf", name:"resizer", width:"550px", height:"200px", majorversion:"6", build:"40", wmode:"transparent"};
UFO.create(FO1, "flashcontent");
</script>
you would think that if i include the name: "resizer" that it would behave the same as to the swfobject ?
Or am i missing something here
atomic
12-04-2007, 01:45 PM
Why try to fix something that's already now working?
In any case those scripts won't be needed from the spring of 2008...
Microsoft has now licensed the technologies from Eolas, removing the “click to activate” requirement in Internet Explorer...
http://blogs.msdn.com/ie/archive/2007/11/08/ie-automatic-component-activation-changes-to-ie-activex-update.aspx
Why try to fix something that's already now working?
In any case those scripts won't be needed from the spring of 2008...
Microsoft has now licensed the technologies from Eolas, removing the “click to activate” requirement in Internet Explorer...
http://blogs.msdn.com/ie/archive/2007/11/08/ie-automatic-component-activation-changes-to-ie-activex-update.aspx
well, its not about fixing something, but in a page where i already use UFO i think its cleaner/better to keep using UFO instead adding SWFobject as well...
i think it has to do with the coding?
The javascript says " document.getElementById " and the SWFobject is between the body tags.
So i guess this needs to be rewritten too as the UFO embed will be done in the header instead of the body.
so dififcult if your clueless about JS :rolleyes:
atomic
04-25-2008, 07:30 PM
Here are the files re-attached here on this forum...
Here are the files re-attached here on this forum...
Unexpected, but many thanks Atomic rather generous of you, thanks again. :);)
anaramirez
05-15-2008, 09:31 AM
Hi Atomic
I would like to obtain the files your are posting regarding to the publishing for Flash 8 but I can't becouse the link are broken.
Can you send me them by e-mail?
my mail: anaramirez1974@yahoo.com
thank you very much
ana
Took my above posted files and modified them, publishing for Flash 8...
They work both locally and online...
http://francoisgill.110mb.com/anne/resizer1.html
You can download the files...
http://francoisgill.110mb.com/anne/sourceMod8.ZIP
atomic
05-15-2008, 03:30 PM
I've re-attached it to this forum, in post #52 above.
anaramirez
05-18-2008, 02:03 PM
Hi Atomic
...But itsn't work in Flash 8.
thank you very much
ana
anaramirez
05-18-2008, 02:06 PM
Hi Atomic
But itsn't work in Flash 8.
thank you very much
ana
saijin
12-16-2008, 04:24 AM
put the flash and the menu inside DIV's
Note: example using CodeIgniter:
<div class="transparent_flash">
<!--/********* TRANSPARENT FLASH - START ******************/-->
<?php
$this->load->view('transparent_flash');
?>
<!--/********* TRANSPARENT FLASH - END ******************/-->
</div>
<div class="top_navigation">
<?php
// Top Navigation
$this->load->view('top_navigation');
?>
</div>
Integrate the CSS
div.transparent_flash {
position:absolute;
top:0px;
right:0px;
width:586px;
height: 525px;
z-index: 1;
}
div.top_navigation {
position:relative;
background: url(../images/top-navigation-bg.jpg) #CCCCCC;
padding: 0;
height: 34px;
z-index: 2;
}
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.