Re: [Flashcoders] geturl:javascript is causing images to not display on IE
Christian wrote: I was under the impression that getURL(javascript:) no longer worked in Flash 8. Is this incorrect? Well, it really depends on what the browser does when it receives a "javascript:" pseudo-URL from a plugin or control when it's expecting an URL. Browsers have varied quite a bit in the past in how they supported this*, and even though it's a popular technique, I *have* seen posts in the past about some Microsoft browsers fo rWindows doing wonky things with loading their own images after getting a js pseudo-URL. (* Searching the technotes with term "browser matrix flash" turned up some older benchmarks against various browsers.) I have no solid info on this... if the browsermakers don't document all the fringe things of how they implement a spec, I learned long ago that I'd have less luck. What you're observing does echo observations I've heard from others in the past, if that loose and uninformative recognition is of any help in your troubleshooting. (For the question itself, the Player will still send out location requests to its hosts, same as before... I haven't seen any docs of this popular hack being negated in any way.) jd -- John Dowdell . Adobe Developer Support . San Francisco CA USA Weblog: http://weblogs.macromedia.com/jd Aggregator: http://weblogs.macromedia.com/mxna Technotes: http://www.macromedia.com/support/ Spam killed my private email -- public record is best, thanks. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] geturl:javascript is causing images to not display on IE
Hrmmm... I'll have to throw up my test later as getURL:Javascript doesn't seem to work anymore. Most of the documentation i'm seeing out there is stating that any file published in flash 8 doesn't allow for the getURL("javascript") calls. Is there a security setting that needs to be in place for this to work? Geoff Stearns wrote: it still works fine - same as always. On May 30, 2006, at 8:58 AM, Christian wrote: I was under the impression that getURL(javascript:) no longer worked in Flash 8. Is this incorrect? Geoff Stearns wrote: are you making the js call before the page is done loading? the browser might be treating is as an anchor click and stop loading the remaining items on the page (this is normal browser behavior) since you are using Flash 8, why not use ExternalInterface to make the call? in IE that will have the player use fscommand (basically) and i think your images will stop dissapearing. (or failing to load as the case may be) On May 28, 2006, at 9:50 PM, Phil Glatz wrote: I've been experiencing an intermittent problem with a getURL call back to a javascript function on the page calling an SWF. I'm using Flash 8, and testing on XP. With Firefox, there is no issue. With IE 6, I experience the problem about 80% of the time. This issue is that I have my SWF in a div, with some divs below it containing some gif images. When I flush the browser's cache, the images always display. After subsequent page refreshes (F5), the images usually don't appear (but sometimes do). I'm using the SWF to display some variable content, filling dynamic text fields from passed variables. I can also select from a number of fonts via a passed var. When the font changes, the div height needed to contain the stage changes. I created an actionscript function that passes the new calculated height back to the page via a javascript call: function resize() { if (allowResize == "true") { h = Math.ceil(pBody._y+pBody._height)+10; getURL("javascript:setFlashHeight('wrapper','"+h+"');"); } } The HTML page has the javascript function setFlashHeight() that resizes the enclosing division for the SWF, via DOM. Like I say, it all works fine with Firefox, and the HTML and CSS are both correct. I first suspected a DOM issue, but I later discovered that if I added a return statement as the first line of the javascript function, the problem persisted. If I comment out the getURL call in the actionscript, my disappearing image problem goes away. So it appears to be a Flash issue of some sort, which I'm not understanding. I've Googled around a bit and can't find anything remotely related to this problem. I'm on a tight project deadline and am about to send $99 to Macromedia for a support call. I thought I'd check with this wise group first to see if this rings any bells. Is this some sort of known issue with Flash/IE? Driving me nuts! thanks, Phil ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] geturl:javascript is causing images to not display on IE
it still works fine - same as always. On May 30, 2006, at 8:58 AM, Christian wrote: I was under the impression that getURL(javascript:) no longer worked in Flash 8. Is this incorrect? Geoff Stearns wrote: are you making the js call before the page is done loading? the browser might be treating is as an anchor click and stop loading the remaining items on the page (this is normal browser behavior) since you are using Flash 8, why not use ExternalInterface to make the call? in IE that will have the player use fscommand (basically) and i think your images will stop dissapearing. (or failing to load as the case may be) On May 28, 2006, at 9:50 PM, Phil Glatz wrote: I've been experiencing an intermittent problem with a getURL call back to a javascript function on the page calling an SWF. I'm using Flash 8, and testing on XP. With Firefox, there is no issue. With IE 6, I experience the problem about 80% of the time. This issue is that I have my SWF in a div, with some divs below it containing some gif images. When I flush the browser's cache, the images always display. After subsequent page refreshes (F5), the images usually don't appear (but sometimes do). I'm using the SWF to display some variable content, filling dynamic text fields from passed variables. I can also select from a number of fonts via a passed var. When the font changes, the div height needed to contain the stage changes. I created an actionscript function that passes the new calculated height back to the page via a javascript call: function resize() { if (allowResize == "true") { h = Math.ceil(pBody._y+pBody._height)+10; getURL("javascript:setFlashHeight('wrapper','"+h+"');"); } } The HTML page has the javascript function setFlashHeight() that resizes the enclosing division for the SWF, via DOM. Like I say, it all works fine with Firefox, and the HTML and CSS are both correct. I first suspected a DOM issue, but I later discovered that if I added a return statement as the first line of the javascript function, the problem persisted. If I comment out the getURL call in the actionscript, my disappearing image problem goes away. So it appears to be a Flash issue of some sort, which I'm not understanding. I've Googled around a bit and can't find anything remotely related to this problem. I'm on a tight project deadline and am about to send $99 to Macromedia for a support call. I thought I'd check with this wise group first to see if this rings any bells. Is this some sort of known issue with Flash/IE? Driving me nuts! thanks, Phil ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] geturl:javascript is causing images to not display on IE
I was under the impression that getURL(javascript:) no longer worked in Flash 8. Is this incorrect? Geoff Stearns wrote: are you making the js call before the page is done loading? the browser might be treating is as an anchor click and stop loading the remaining items on the page (this is normal browser behavior) since you are using Flash 8, why not use ExternalInterface to make the call? in IE that will have the player use fscommand (basically) and i think your images will stop dissapearing. (or failing to load as the case may be) On May 28, 2006, at 9:50 PM, Phil Glatz wrote: I've been experiencing an intermittent problem with a getURL call back to a javascript function on the page calling an SWF. I'm using Flash 8, and testing on XP. With Firefox, there is no issue. With IE 6, I experience the problem about 80% of the time. This issue is that I have my SWF in a div, with some divs below it containing some gif images. When I flush the browser's cache, the images always display. After subsequent page refreshes (F5), the images usually don't appear (but sometimes do). I'm using the SWF to display some variable content, filling dynamic text fields from passed variables. I can also select from a number of fonts via a passed var. When the font changes, the div height needed to contain the stage changes. I created an actionscript function that passes the new calculated height back to the page via a javascript call: function resize() { if (allowResize == "true") { h = Math.ceil(pBody._y+pBody._height)+10; getURL("javascript:setFlashHeight('wrapper','"+h+"');"); } } The HTML page has the javascript function setFlashHeight() that resizes the enclosing division for the SWF, via DOM. Like I say, it all works fine with Firefox, and the HTML and CSS are both correct. I first suspected a DOM issue, but I later discovered that if I added a return statement as the first line of the javascript function, the problem persisted. If I comment out the getURL call in the actionscript, my disappearing image problem goes away. So it appears to be a Flash issue of some sort, which I'm not understanding. I've Googled around a bit and can't find anything remotely related to this problem. I'm on a tight project deadline and am about to send $99 to Macromedia for a support call. I thought I'd check with this wise group first to see if this rings any bells. Is this some sort of known issue with Flash/IE? Driving me nuts! thanks, Phil ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] geturl:javascript is causing images to not display on IE
A personal thanks, Geoff - using ExternalInterface saved the day for me. This problem has been bugging me on and off the last few months, and it is finally solved. I was thinking it was CSS for a long time. I'm glad it was something that could be fixed with just two lines of cde. Thanks again - you've pulled a lot of frustration off my shoulders. Best, Phil ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] geturl:javascript is causing images to not display on IE
At 08:56 PM 5/29/2006, Geoff wrote: are you making the js call before the page is done loading? the browser might be treating is as an anchor click and stop loading the remaining items on the page (this is normal browser behavior) Good point! I am doing this after load, but that's very useful advice, thanks. since you are using Flash 8, why not use ExternalInterface to make the call? Bingo! That solved it. Thanks for pointing this out. And thanks to everyone else for their suggestions, I've learned a lot of good things today. This is a very supportive community, and I really appreciate everybody's kindness and patience. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] geturl:javascript is causing images to not display on IE
are you making the js call before the page is done loading? the browser might be treating is as an anchor click and stop loading the remaining items on the page (this is normal browser behavior) since you are using Flash 8, why not use ExternalInterface to make the call? in IE that will have the player use fscommand (basically) and i think your images will stop dissapearing. (or failing to load as the case may be) On May 28, 2006, at 9:50 PM, Phil Glatz wrote: I've been experiencing an intermittent problem with a getURL call back to a javascript function on the page calling an SWF. I'm using Flash 8, and testing on XP. With Firefox, there is no issue. With IE 6, I experience the problem about 80% of the time. This issue is that I have my SWF in a div, with some divs below it containing some gif images. When I flush the browser's cache, the images always display. After subsequent page refreshes (F5), the images usually don't appear (but sometimes do). I'm using the SWF to display some variable content, filling dynamic text fields from passed variables. I can also select from a number of fonts via a passed var. When the font changes, the div height needed to contain the stage changes. I created an actionscript function that passes the new calculated height back to the page via a javascript call: function resize() { if (allowResize == "true") { h = Math.ceil(pBody._y+pBody._height)+10; getURL("javascript:setFlashHeight('wrapper','"+h+"');"); } } The HTML page has the javascript function setFlashHeight() that resizes the enclosing division for the SWF, via DOM. Like I say, it all works fine with Firefox, and the HTML and CSS are both correct. I first suspected a DOM issue, but I later discovered that if I added a return statement as the first line of the javascript function, the problem persisted. If I comment out the getURL call in the actionscript, my disappearing image problem goes away. So it appears to be a Flash issue of some sort, which I'm not understanding. I've Googled around a bit and can't find anything remotely related to this problem. I'm on a tight project deadline and am about to send $99 to Macromedia for a support call. I thought I'd check with this wise group first to see if this rings any bells. Is this some sort of known issue with Flash/IE? Driving me nuts! thanks, Phil ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] geturl:javascript is causing images to not display on IE
Use getURL("javascript:void(setFlashHeight('wrapper','"+h+"')"); On Mon, 29 May 2006 13:19:02 -0300, Kevin Newman <[EMAIL PROTECTED]> wrote: I think you may have hit one of the problems with using javascript: pseudo urls. If I remember correctly, when you use a javascript pseudo url it disables some of the events under some circumstances. You could try two things - either use fscommand (or FlashJS, or one of the other communication packages floating around on the net) or try returning false from the javascript: url (I'm not sure about this one). getURL("javascript:setFlashHeight('wrapper','"+h+"');return false;"); This is the only mention of the problem that I could find: http://groups.google.com/group/comp.lang.javascript/browse_frm/thread/a57416b64499f57b/e77bfad5ee2fe342?lnk=st&q=javascript+pseudo+url+images+not+loading+group%3Acomp.lang.javascript&rnum=2&hl=en#e77bfad5ee2fe342 Since the javascript: url seems to work fine in plugin based browsers (Mozilla, Opera, Safari), and just doesn't work in ActiveX (IE) you could check the plugin type in Actionscript (System.capabilities.playerType == "PlugIn"), and use fscommand for ActiveX and use getURL for plugin. You would just need to add a vbscript to catch the fscommand and route it to the javascript call. Something along these lines should work (untested - probably needs work): Actionscript: if (System.capabilities.playerType == "PlugIn") { getURL("javascript:setFlashHeight('wrapper','"+h+"');return false;"); } else { fscommand("setFlashHeight", "wrapper,"+h); } HTML: On Error Resume Next Sub_FSCommand(ByVal command, ByVal args) Call yahooMap_DoFSCommand(command, args) End Sub function _DoFSCommand(command, args) { var args = args.split(','); window[command](args[0], args[1]); } :NOTE: You could probably do everything from the VBScript, but I don't know VBScript well. Also, if you are publishing to Flash 8 then you can save yourself some headache by using ExternalInterface. BTW, I'm pretty sure this is an IE problem, not a Flash one. ;-) Kevin N. Phil Glatz wrote: I've been experiencing an intermittent problem with a getURL call back to a javascript function on the page calling an SWF. I'm using Flash 8, and testing on XP. With Firefox, there is no issue. With IE 6, I experience the problem about 80% of the time. This issue is that I have my SWF in a div, with some divs below it containing some gif images. When I flush the browser's cache, the images always display. After subsequent page refreshes (F5), the images usually don't appear (but sometimes do). I'm using the SWF to display some variable content, filling dynamic text fields from passed variables. I can also select from a number of fonts via a passed var. When the font changes, the div height needed to contain the stage changes. I created an actionscript function that passes the new calculated height back to the page via a javascript call: function resize() { if (allowResize == "true") { h = Math.ceil(pBody._y+pBody._height)+10; getURL("javascript:setFlashHeight('wrapper','"+h+"');"); } } The HTML page has the javascript function setFlashHeight() that resizes the enclosing division for the SWF, via DOM. Like I say, it all works fine with Firefox, and the HTML and CSS are both correct. I first suspected a DOM issue, but I later discovered that if I added a return statement as the first line of the javascript function, the problem persisted. If I comment out the getURL call in the actionscript, my disappearing image problem goes away. So it appears to be a Flash issue of some sort, which I'm not understanding. I've Googled around a bit and can't find anything remotely related to this problem. I'm on a tight project deadline and am about to send $99 to Macromedia for a support call. I thought I'd check with this wise group first to see if this rings any bells. Is this some sort of known issue with Flash/IE? Driving me nuts! thanks, Phil ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- _ Marcelo Volmaro ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] geturl:javascript is causing images to not display on IE
I think you may have hit one of the problems with using javascript: pseudo urls. If I remember correctly, when you use a javascript pseudo url it disables some of the events under some circumstances. You could try two things - either use fscommand (or FlashJS, or one of the other communication packages floating around on the net) or try returning false from the javascript: url (I'm not sure about this one). getURL("javascript:setFlashHeight('wrapper','"+h+"');return false;"); This is the only mention of the problem that I could find: http://groups.google.com/group/comp.lang.javascript/browse_frm/thread/a57416b64499f57b/e77bfad5ee2fe342?lnk=st&q=javascript+pseudo+url+images+not+loading+group%3Acomp.lang.javascript&rnum=2&hl=en#e77bfad5ee2fe342 Since the javascript: url seems to work fine in plugin based browsers (Mozilla, Opera, Safari), and just doesn't work in ActiveX (IE) you could check the plugin type in Actionscript (System.capabilities.playerType == "PlugIn"), and use fscommand for ActiveX and use getURL for plugin. You would just need to add a vbscript to catch the fscommand and route it to the javascript call. Something along these lines should work (untested - probably needs work): Actionscript: if (System.capabilities.playerType == "PlugIn") { getURL("javascript:setFlashHeight('wrapper','"+h+"');return false;"); } else { fscommand("setFlashHeight", "wrapper,"+h); } HTML: On Error Resume Next Sub_FSCommand(ByVal command, ByVal args) Call yahooMap_DoFSCommand(command, args) End Sub function _DoFSCommand(command, args) { var args = args.split(','); window[command](args[0], args[1]); } :NOTE: You could probably do everything from the VBScript, but I don't know VBScript well. Also, if you are publishing to Flash 8 then you can save yourself some headache by using ExternalInterface. BTW, I'm pretty sure this is an IE problem, not a Flash one. ;-) Kevin N. Phil Glatz wrote: I've been experiencing an intermittent problem with a getURL call back to a javascript function on the page calling an SWF. I'm using Flash 8, and testing on XP. With Firefox, there is no issue. With IE 6, I experience the problem about 80% of the time. This issue is that I have my SWF in a div, with some divs below it containing some gif images. When I flush the browser's cache, the images always display. After subsequent page refreshes (F5), the images usually don't appear (but sometimes do). I'm using the SWF to display some variable content, filling dynamic text fields from passed variables. I can also select from a number of fonts via a passed var. When the font changes, the div height needed to contain the stage changes. I created an actionscript function that passes the new calculated height back to the page via a javascript call: function resize() { if (allowResize == "true") { h = Math.ceil(pBody._y+pBody._height)+10; getURL("javascript:setFlashHeight('wrapper','"+h+"');"); } } The HTML page has the javascript function setFlashHeight() that resizes the enclosing division for the SWF, via DOM. Like I say, it all works fine with Firefox, and the HTML and CSS are both correct. I first suspected a DOM issue, but I later discovered that if I added a return statement as the first line of the javascript function, the problem persisted. If I comment out the getURL call in the actionscript, my disappearing image problem goes away. So it appears to be a Flash issue of some sort, which I'm not understanding. I've Googled around a bit and can't find anything remotely related to this problem. I'm on a tight project deadline and am about to send $99 to Macromedia for a support call. I thought I'd check with this wise group first to see if this rings any bells. Is this some sort of known issue with Flash/IE? Driving me nuts! thanks, Phil ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] geturl:javascript is causing images to not display on IE
You sure this isn't a security issue thing? Have you tried uploading it to a server and testing it? Javascript calls from your local drive from Flash 8 player can cause problems. On 5/29/06, Phil Glatz <[EMAIL PROTECTED]> wrote: I've been experiencing an intermittent problem with a getURL call back to a javascript function on the page calling an SWF. I'm using Flash 8, and testing on XP. With Firefox, there is no issue. With IE 6, I experience the problem about 80% of the time. This issue is that I have my SWF in a div, with some divs below it containing some gif images. When I flush the browser's cache, the images always display. After subsequent page refreshes (F5), the images usually don't appear (but sometimes do). I'm using the SWF to display some variable content, filling dynamic text fields from passed variables. I can also select from a number of fonts via a passed var. When the font changes, the div height needed to contain the stage changes. I created an actionscript function that passes the new calculated height back to the page via a javascript call: function resize() { if (allowResize == "true") { h = Math.ceil(pBody._y+pBody._height)+10; getURL("javascript:setFlashHeight('wrapper','"+h+"');"); } } The HTML page has the javascript function setFlashHeight() that resizes the enclosing division for the SWF, via DOM. Like I say, it all works fine with Firefox, and the HTML and CSS are both correct. I first suspected a DOM issue, but I later discovered that if I added a return statement as the first line of the javascript function, the problem persisted. If I comment out the getURL call in the actionscript, my disappearing image problem goes away. So it appears to be a Flash issue of some sort, which I'm not understanding. I've Googled around a bit and can't find anything remotely related to this problem. I'm on a tight project deadline and am about to send $99 to Macromedia for a support call. I thought I'd check with this wise group first to see if this rings any bells. Is this some sort of known issue with Flash/IE? Driving me nuts! thanks, Phil ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] geturl:javascript is causing images to not display on IE
I've been experiencing an intermittent problem with a getURL call back to a javascript function on the page calling an SWF. I'm using Flash 8, and testing on XP. With Firefox, there is no issue. With IE 6, I experience the problem about 80% of the time. This issue is that I have my SWF in a div, with some divs below it containing some gif images. When I flush the browser's cache, the images always display. After subsequent page refreshes (F5), the images usually don't appear (but sometimes do). I'm using the SWF to display some variable content, filling dynamic text fields from passed variables. I can also select from a number of fonts via a passed var. When the font changes, the div height needed to contain the stage changes. I created an actionscript function that passes the new calculated height back to the page via a javascript call: function resize() { if (allowResize == "true") { h = Math.ceil(pBody._y+pBody._height)+10; getURL("javascript:setFlashHeight('wrapper','"+h+"');"); } } The HTML page has the javascript function setFlashHeight() that resizes the enclosing division for the SWF, via DOM. Like I say, it all works fine with Firefox, and the HTML and CSS are both correct. I first suspected a DOM issue, but I later discovered that if I added a return statement as the first line of the javascript function, the problem persisted. If I comment out the getURL call in the actionscript, my disappearing image problem goes away. So it appears to be a Flash issue of some sort, which I'm not understanding. I've Googled around a bit and can't find anything remotely related to this problem. I'm on a tight project deadline and am about to send $99 to Macromedia for a support call. I thought I'd check with this wise group first to see if this rings any bells. Is this some sort of known issue with Flash/IE? Driving me nuts! thanks, Phil ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com