Link to home
Start Free TrialLog in
Avatar of arun_3k
arun_3k

asked on

problem in calling a javascript print function from a flash file.

i'm having a print icon in the flash file. when the user clicks on it a javascript function is called where i print a frame.the problem is that in IE 6.0.2800 the flash file inserted in the HTML gets inverted, when we click the print icon. but there is no problem with the print functionality it is the flash file that gets inverted.so pls help me out .

it is working fine in the previous versions of I.E like I.E 5.5 etc.. only in IE 6.0.2800 the problem occurs

the code i use is

getURL("javascript:myfn()") // in the flash

in the html under javascript

function my()
{
     printFrame.focus();
     printFrame.print(); // where printframe is the frame that contains the content to be printed
}
Avatar of rascalpants
rascalpants
Flag of United States of America image

why not just use Flash's inline print functionality?

here is a page that will help you figure this out...

http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary625.html


let me know if you need more help...

rp
ASKER CERTIFIED SOLUTION
Avatar of stef4s
stef4s

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of arun_3k
arun_3k

ASKER

thanks stef4s partly soved now the flash file remains stable and it is not inverted but the thing is the color of the flash file is changed i.e color of the characters and other objects in the flash file are changed. anyhow great job done pls solve this problem too...
How have they changed colour?
Avatar of arun_3k

ASKER

everything is changed to blue color.
so I am confused why you would not want to use the superior print functionality in Flash...  you have much better control, the quality is better, and from your problems above, it seems it would be much easier to implement...


the tool is there, why not use it?

rp
please give us a link s we can see this colour change ourselves. What browser r u using?
Avatar of arun_3k

ASKER

in reply to stef4s : i'm using the I.E 6.0.2800.

in reply to rascalpants : i want to print a html frame not the frame in flash.this html frame contains a html page which contains the content to be printed.
arun_3k is it possible to post a link to your file so that I can see what happens?
"in reply to rascalpants : i want to print a html frame not the frame in flash.this html frame contains a html page which contains the content to be printed."

I am not sure why this question was posted in the Flash Forum then...  what specific Flash problem was there and what was the solution?  

points to stef4... great, but this should not be PAQed in the Flash area...  people will later find this question thinking that they will get a Flash solution...  they will not...

rp
rascalpants, arun_3k thought it was a Flash Problem.

"problem is that in IE 6.0.2800 the flash file inserted in the HTML gets inverted".

Because Flash is embedded in HTML it is a valid question for both topics.
I disagree....  but oh well...

rp