Top 100+ Swfobject Interview Questions And Answers
Question 1. Do You Know Why Is The "settings..." Option In The Flash Player Context Menu Grayed Out?
Answer :
Flash Player's "Settings" panel has a minimum length of 214x137 pixels. If your embedded SWF is smaller than 214x137, Flash Player will not have enough room to show the settings panel, and could make the "Settings..." menu item inactive (grayed out). If you would love the "Settings..." menu item to be clickable, you may want to make certain your SWF is at the least 214px extensive by way of 137px tall.
This length constraint also applies to the Express Install conversation.
Question 2. Explain Why Can We See Memory Usage Increase On Every Page Refresh In Internet Explorer?
Answer :
Recently the crew from Anychart.Com discovered the cause behind a protracted status apparent Flash Player nine/10 memory leak while a user refreshes the web page. This bug influences HTML pages which has a swf embedded on the page (whether or not the usage of SWFObject or now not) whilst regarded in IE 6/7/8. The reason for the bug become in reality not the Flash participant itself, however the Skype IE plug-in.
Flash Interview Questions
Question 3. Tell Me Why Does Internet Explorer 6 And 7 Show The Error Message J.Parentnode Is Null Or Not An Object?
Answer :
This happens while the SWFObject library (variations 2.0 or 2.1) are included more than once on the equal internet web page. To keep away from this, make sure that your swfobject.Js file is only blanketed as soon as. SWFObject 2.2 will encompass a fix for this issue.
Question 4. Tell Us Why Does Firefox Report Permission Denied To Call Method Location.To String In The Error Console?
Answer :
When you create an iframe on a page that is living on a one-of-a-kind domain than the parent page you'll get this mistake which is as a result of the Flash plug-in.
Flash Tutorial
Question five. Do You Have Any Idea Why Do Stage.Stagewidth And Stage.Stageheight Return zero In Firefox Or Internet Explorer When Using Dynamic Publishing?
Answer :
When the use of the dynamic publishing method in Internet Explorer or Firefox on Mac degree.StageWidth and stage.StageHeight might initially go back zero (be aware that for Internet Explorer the level size could be to be had on first load, however whilst reloading or revisiting a web page it will to start with be 0).
The solution is to outline a resize handler to your ActionScript code. The Flash Player crew became manifestly privy to this problem and consequently the Flash Player will hold on triggering the degree.Resize event until it gets its actual width and top.
An AS3 instance:
degree.AddEventListener(Event.RESIZE, resizeHandler);
stage.DispatchEvent(new Event(Event.RESIZE)); // pressure level resize event for ordinary cases
function resizeHandler(occasion:Event):void
if (level.StageHeight > zero && degree.StageWidth > zero)
stage.RemoveEventListener(Event.RESIZE, resizeHandler); // best execute as soon as
// your initialization code right here
Sound Interview Questions
Question 6. Why Would Not Flash Player 10 Display My Swf File?
Answer :
A new safety characteristic in Flash Player 10 reasons SWF's no longer to be displayed while a HTTP server sends the following response: Content-Disposition: attachment.
Question 7. How To Know Which Flash Player Version Is Installed And Which Version Is Detected By Swfobject?
Answer :
The Flash Player version as set up by:
Firefox 3: Type "approximately:plugins" in the area/cope with bar and look for the "Shockwave Flash" access
Safari 3: Click "Help > Installed Plug-ins" in the important menu and look for the "Shockwave Flash" entry
The Flash Player model as detected by means of:
SWFObject 2
Flash (using HTML `item` detail handiest)
Flash (using HTML `embed` detail simplest)
Web Developer Guide Tutorial Dreamweaver Interview Questions
Question eight. Where Can We Find Older Flash Player Versions, E.G. To Test Adobe Express Install?
Answer :
Flash Player uninstaller
Archived Flash Player variations for testing purposes
The latest launched version of Flash Player
When you run an archived Flash Player on Intel-primarily based Macintosh computers please remember the fact that there are two forms of Mac installers:
A universal binary installer consists of both a model of Flash Player that runs natively on Intel-based Macs and a PowerPC version.
PowerPC installers require browsers to run in Rosetta, that is a unique mode that runs older legacy PowerPC packages on Intel-based totally Macs. You can pressure a browser to open in Rosetta by way of starting the information window in Finder (clicking the app and choosing "Get Info"), then ticking the "Open in Rosetta" box. New versions of Safari and Opera now not guide this, however Firefox three does.
Question nine. How To Disable Flash Player Or Javascript?
Answer :
For static publishing and dynamic publishing you may enable/disable your Flash Player with the aid of:
Internet Explorer 7: Menu: Tools > Internet Options, Program Tab, click on button: Manage upload-on, Filters, Add-ons that run without requiring permission, select Shockwave Object, click Enable/Disable button at bottom, close and restart browser
Firefox three: Menu: Tools > Add-ons, Plugins tab, Select Shockwave Flash, permit/disable
Safari three: Menu: Safari > Preferences, Security tab, Web content material: take a look at Enable plug-ins
Opera nine.Five: Menu: Opera > Quick Preferences > Enable Plug-Ins
For dynamic publishing you can enable/disable JavaScript by:
Internet Explorer 7: Menu: Tools > Internet Options, Security tab, click on icon: Internet, click on button: Custom Level, scroll to the "Scripting" section of the listing, click on radio button Disable beneath Active scripting, near and restart browser
Firefox three: Menu: Firefox > Preferences, Content tab, Check Enable JavaScript
Safari three: Menu: Safari > Preferences, Security tab, Web content material: take a look at Enable JavaScript
Opera 9.5: Menu: Opera > Quick Preferences > Enable JavaScript.
3-D Animation Interview Questions
Question 10. Do You Know Why Does Firefox Load My Swf Twice?
Answer :
Firefox 3 has a recognised trouble that on occasion causes a swf to be 'double initialized'. The hassle seems to be fixed in their codebase, however has no longer been released yet. See the subsequent bugs for greater info: bug 438830 and worm 445599.
Or, when you have "Disable cache" selected for your Firefox Web Developer Toolbar extension a double load will arise.
Adobe Flex Tutorial
Question 11. Why Do We See A Dotted Border Around My Swf When Using Firefox three On Windows And Wmode Transparent Or Opaque?
Answer :
Firefox three on Windows using wmode transparent or opaque introduces a brand new default style for the object element; it treats it like an energetic link.
This Firefox implementation deviates from Firefox three on Mac, previous Firefox versions on Windows and the default fashion for the embed detail, so it's far therefore probably to be a Firefox bug.
The following style rule in the head of your web page should solve this problem:
<style type="text/css" media="screen">
item define:none;
</style>
Adobe Flash CS6 Interview Questions
Question 12. Tell Me Why Can Not I See Flash Content In Firefox three?
Answer :
Do you have the Adblock extension installed? In Firefox three Adblock incorrectly blocks Flash content (the object tag simplest, so it really is why content embedded with SWFObject 1.Five does work, as it makes use of the embed tag), even in case your entire web page is whitelisted.
In this situation just disable Flash block (by using disabling the extension, do not use Adblock's disable characteristic, because then it nonetheless may not display Flash content). Please word that the improvement of and assist for Adblock has been discontinued.
Flash Interview Questions
Question thirteen. Please Tell Me Why Does Not The Salign Param Element Work In Firefox Or Safari?
Answer :
When the use of static publishing make certain which you have duplicated your nested param elements for each item elements.
Also the order of certain param elements are vital, e.G. The scale parameter should continually be declared BEFORE the salign parameter.
Flask Tutorial
Question 14. Tell Me Do Swfs Embedded With Swfobject 2 Display In The Sony Ps3 Or Nintendo Wii Web Browsers?
Answer :
The Opera internet browser on Nintendo Wii presentations each Flash content embedded with static and dynamic publishing. Please notice that the Wii currently most effective supports Flash Player 7 content and that Adobe Express Install isn't always supported.
The Netfront browser on Sony PSP and older versions of PS3 will only display Flash content while using static publishing. The purpose for this is that it is JavaScript guide is extremely restrained, in order that the SWFObject 2 script will by no means be completed. Please additionally note that it currently handiest supports Flash Player 6 content material and that Adobe Express Install is not supported.
Question 15. How To Avoid That Extra Whitespace Is Created Underneath My Swf?
Answer :
When the usage of dynamic publishing and a strict HTML DOCTYPE Firefox, Safari and Opera can also create some pixels whitespace underneath your Flash movie.
To keep away from this ensure that your object detail is set as a block level element, which can be executed with the subsequent CSS fashion rule:
<style type="text/css" media="screen">
item display:block;
</style>
Dreamweaver CS3 Interview Questions
Question 16. How To Pass Uris Or Html Code As A Value Using Flashvars?
Answer :
Special characters and the symbols = and & can not directly be used inside flashvars values (the latter due to the fact they're used to stack the flashvars themselves).
You can workaround this trouble via escaping those characters before passing them as flashvar values.
An instance:
encodeURIComponent("&exchange") will become %26trade
The values may be available on your swf already unencoded, so no unescaping is needed interior your swf.
Note that encodeURIComponent isn't to be had in all browsers, but is to be had in all of the common current variations. If you need full backwards compatibility, you may use break out() rather, but note that break out() does now not work well with double-byte characters (like Chinese).
You also can break out those characters manually by means of using:
%3-d in preference to =
%26 in preference to &
Question 17. How To Avoid Active Server Pages Error Asp 0139 When Using Static Publishing And Microsoft Iis?
Answer :
Microsoft IIS's ASP interpreter incorrectly would not allow a page with nested <object> tags, ensuing inside the following error message:
Active Server Pages blunders 'ASP 0139'
Nested Object
/yourWebpage.Html, line XX
An item tag cannot be positioned internal any other item tag.
You can keep away from this mistake via the use of one of the following workarounds (word: which workaround may be great will rely upon your particular situation):
Configure IIS no longer to serve .Htm and .Html documents as ASP
Use a server-aspect include
Create the object tags dynamically, the 'Update - The Dynamic Approach'
Web Developer Guide Interview Questions
Question 18. How To Prevent Internet Explorer From Showing An Error Message When Using External Interface And Swf That Is Inside A <form> Tag?
Answer :
This technote provides additional information and solutions.
It is desired to use the first solution that implemented to SWFObject 2 embedding looks like the subsequent:
function fixReference()
window["mySwfId"] = file.Bureaucracy[0]["mySwfId"];
swfobject.AddDomLoadEvent(fixReference);
Sound Interview Questions
Question 19. Can You Please Explain How To Fix A "line 56: Out Of Memory" Error, When Unloading A Page In Internet Explorer Using Earlier Versions Of Flash Player nine And Multiple Swfs Using Externalinterface?
Answer :
This difficulty become brought with the discharge of Flash Player 9, and is fixed in recent versions of Flash Player nine. You can restoration it for the sooner versions by using adding the following JavaScript code in the head of your (X)HTML web page.
<!--[if IE]>
<script type="text/javascript">
function fixOutOfMemoryError()
__flash_unloadHandler = feature() ;
__flash_savedUnloadHandler = characteristic() ;
window.AttachEvent("onbeforeunload", fixOutOfMemoryError);
</script>
<![endif]-->
Question 20. Do You Know Why Does Not Fscommand Work In Internet Explorer With Dynamic Publishing?
Answer :
A In order to make fscommand paintings in Internet Explorer Adobe recommends to add a block of VBScript to seize and forward the FSCommand calls to JavaScript. However VBScript would not work anymore while a Flash film is inserted using innerHTML or outerHTML, as SWFObject's dynamic publishing method does.
Fortunately you could also use JavaScript instead of VBScript to capture the fscommand calls. A small disadvantage is that it uses proprietary attributes (which, again, wrapped in conditional remarks will keep your code valid).
E.G. The following block of VBScript code:
<SCRIPT LANGUAGE=VBScript>
on errors resume next
Sub myCom_FSCommand(ByVal command, ByVal args)
name myCom_DoFSCommand(command, args)
stop sub
</SCRIPT>
Can be replaced with:
<!--[if IE]>
<script type="text/javascript" event="FSCommand(command,args)" for="myCom">
myCom_DoFSCommand(command, args);
</script>
<![endif]-->
Adobe Flex Interview Questions
Question 21. Tell Me How To Prevent Internet Explorer From Crashing And Showing An "operation Aborted" Error When A <base> Tag Is Defined?
Answer :
Including a remaining </base> tag will save you this worm in Internet Explorer being brought on. Because for HTML 4 compliant pages (a final base tag is forbidden below HTML four), you can use Internet Explorer conditional comments to keep your HTML legitimate and nevertheless encompass a remaining base tag for HTML four files:
<base href="http://www.Wisdomjobs.Com/"><!--[if IE]></base><![endif]-->
Question 22. Please Explain Why Does Swfobject.Getflashplayerversion() Sometimes Incorrectly Report The Installed Flash Player Version?
Answer :
In the beyond years there have been numerous occasions where a Flash Player did not disclose the proper version variety externally - as may be retrieved with JavaScript -, due to corrupt Flash Player Mac OS X installers, affecting Firefox, Opera and Safari on Mac OS X, and additionally all JavaScript detection scripts, consisting of SWFObject 2, SWFObject 1.5, UFO and the Adobe Flash Player Detection Kit.
Known erroneous variations are (primary.Minor.Release version):
nine.0.47 exposes 9.Zero.19
eight.Zero.24 exposes eight.Zero.23
9.Zero.One hundred fifteen exposes either 9.Zero.Forty seven or 9.Zero.64 (Note: simplest Adobe Express Install installers, affecting Firefox on Mac OS X only)
Question 23. Tell Me Why Do Not I See Flash Content In Internet Explorer On Windows While I Do Have The Required Minimal Flash Player Version Installed?
Answer :
When an install gets corrupted (very frequently as a result of corrupt installers) it is not possible to examine the Flash Player model variety externally the usage of scripting languages. When the usage of dynamic publishing this consequences inside the show of alternative content, with static publishing we let the item detail do its job (it comes to a decision whether or not to reveal Flash content or opportunity content material primarily based on its built-in MIME kind mechanism) which results within the display of Flash content material.
Adobe Flex Actionscript Interview Questions
Question 24. How To Create A Swf That Will Encompass one hundred% Of The Browser Window?
Answer :
The following technique is also called Full Browser Flash:
Set each the width and top of your SWF to 100% for your SWFObject definition
Include CSS to put off any default margins/padding and set the height of the html detail, the body detail and the complete chain of block level HTML factors that your SWF may be nested in to one hundred%, because Firefox (or: any Gecko primarily based browser) in standards compliant mode (or: using a valid DOCTYPE) translates chances in a completely strict manner (to be particular: the share of the peak of its discern field, which must be set explicitly).
Manage the scaling and alignment of your SWF and the location of your SWF's factors, within your ActionScript code, e.G.:
stage.ScaleMode = StageScaleMode.NO_SCALE;
stage.Align = StageAlign.TOP_LEFT;
level.AddEventListener(Event.RESIZE, resizeHandler);
feature resizeHandler(occasion:Event):void
// center stuff
Dreamweaver Interview Questions
Question 25. What Is Swffit?
Answer :
SWFFit (formerly called FitFlash) is a JavaScript library used to resize Flash movies in keeping with the browser window size, retaining it handy independent of the display decision.
SWFFit ordinarily configures the internet browser to show scroll bars when content exceeds the browser window size. It can also be used to dynamically resize the Flash movie size. It is used together with SWFObject.
Question 26. What Is Swfaddress?
Answer :
SWFAddress is a JavaScript and ActionScript library that lets in Flash websites to help deep linking, and may robotically integrate with SWFObject.
Flask Interview Questions
Question 27. Explain Swfobject Features?
Answer :
SWFObject additionally includes a few application features within its API to retrieve Flash Player associated facts, inclusive of checking whether or not a selected version of Flash Player is established, and some DHTML utilities to assist work with the DOM. Because of this, the most not unusual reasons Flash Website builders turn to outside JavaScript frameworks including jQuery or Prototype are glad internally, giving developers fewer motives to feature additional JavaScript libraries to their website.
The library can also be used to integrate Flash Player Express Install into the webpage, allowing users to put in the latest Flash Player without leaving the website online, although this requires a browser restart.
3-d Animation Interview Questions
Question 28. Explain Swfobject Usage?
Answer :
SWFObject provides a dependable technique of embedding Flash content material right into a web site through internally coping with the numerous practices that one ought to follow in order for distinct web browsers to display Flash content efficaciously, and setting apart them from the internet clothier.
The developer may additionally interface with the library in a standardized way, the minimum being a single line of JavaScript code. Therefore even green net designers without knowledge of the perfect HTML code to embed Flash content material, can easily insert Flash content into web pages, and feature them reliably paintings for the widest feasible target market (excepting people with JavaScript disabled).
Flash content material inserted using SWFObject will even work on devices that guide JavaScript execution (and Flash Player), along with the Wii, PlayStation 3 and Nokia N800, in contrast to the PlayStation Portable.
Question 29. What Is Swfobject?
Answer :
SWFObject (at the beginning FlashObject) is an open-source JavaScript library used to embed Adobe Flash content onto Web pages, that is furnished as one small JavaScript document.
The library also can discover the installed Adobe Flash Player plug-in in all important net browsers, on all foremost operating structures (OS), and might redirect the traveler to every other webpage or display trade HTML content if the mounted plug-in isn't always suitable.
Adobe After Effects Interview Questions
