Flash :: IE Displays Its Conditional Comments Error
Dec 2, 2011
I can find absolutely nothing when I search for an answer. I have a conditional comment in my html to only display a flash file when the browser is IE. And it works great, except that the conditional comment is displaying in my browser! [URL] to see the error (it only shows in IE). Could it be because I haven't declared the page as an html4 page? The only way I can get the comments to go away is if I use this syntax: <!--<![if lt IE10]><!-->my code<!--<![endif]--> . When I do this, of course my flash file shows underneath my alternate content on other browsers.
The counter displays sprites in place of number values. More experienced programmers have given me a clue. Why am I getting error # 1010. Secondly, what am I not seeing that's so obvious? I wish I went in to this with a better foundation in actionscript 3, but I'm reading and doing my best. WHAT I SEE
-dollar sign indicates a variable or array "$numbers" -import flash.utils.Dictionary; "indicates an associative string" -Error #1010: A term is undefined and has no properties -is the associative string is fooling me? "maybe I set no values, duh" -are the property of my symbols are set wrong?
I've hit a brick wall here. I have a Flash file that displays fine in IE. It also displays fine when ran as a SWF. However, in FireFox, it does not display my scroller. I developed the Scroller component dynamically... everything is drawn from scratch, no library movieClips, etc. I'm starting to think that could be the cause? I've tried many different things:
I've hit a brick wall here. I have a Flash file that displays fine in IE. It also displays fine when ran as a SWF. However, in FireFox, it does not display my scroller. I developed the Scroller component dynamically... everything is drawn from scratch, no library movieClips, etc. I'm starting to think that could be the cause? I've tried many different things: Changed the HTML code to bare bones embedding code.Recompiled in Flex.... same result!Tested on another computer... it worked fine! However, I tested on another computer with FireFox... same problem.
It's so weird.I seperated the Image Slide show component from the Scroller... the scroller had the same effect... didn't display in FF.Played around with WmodeChecked my code for addChild problems, visibilty, alpha properties... nothing out of the ordinary.Asked God.Drank some Gin.Took a break and came back to it.I've reseached Google and the most I could come up with is to compile using FP10. It is FP10. I'm using CS3 and FlashDevelop. When I right click on my Flash file, it does indeed display FP10. Same with Flex.
I have a movieclip that displays a slideshow. Starting a few days ago I get a error message from Flash Player 10 saying "TypeError: Error #2007: Parameter url must be non-null. at flash.display::Loader/_load() at flash.display::Loader/load() at slides/switchPhoto() at flash.utils::Timer/_timerDispatch() at flash.utils::Timer/tick()"
Here is the actionscript package for the error package{ import flash.display.MovieClip; import flash.display.Loader; import flash.display.LoaderInfo; import flash.events.*; [Code] .....
Scenario: Click on button and timeline animation plays (the animation is a panel that rotates from the back to the front) Error: Scene 1, Layer 'actions', Frame 1, Line 11 1061: Call to a possibly undefined method play through a reference with static type Function. What does this error mean and what code needs to be added to fix it?
Code: Select allimport flash.events.MouseEvent; bullet_btn.addEventListener(MouseEvent.CLICK, bullet); function bullet(event:MouseEvent) :void { spinbul_pt_1.play(); } function spinbul_pt_1(){ bul_pt_1_MC.play(); }
I'd like to create a rating and comments system to the video site I'm working on. Basically the user will rate the video (stars or thumbs up) from 1-5, have the new rating process and improve or lower the video rating automatically. For the comments the user will be able to write and send the comment and then either have it posted automatically with the option for the site moderator to erase any offensive comment or have it sent to a database for approval first and then post it by the site moderator. I assume I need a php form and action script code?
In Eclipse (and Flash/Flex Builder) you get the option with Ctrl+Shift+F to do a file search and look for a regular expression. Would be a real handy thing to know.
I want to find the word negate if it appears in a Flex/java comment like the following:
When use the full path name and the identifier of a movie clip, my conditional statement works fine. However, when I swap the identifier out with "this", it no longer works. This script is contained within the movie clip I am trying to reference. I have found that, "this" works fine by itself on the timeline. It just stops working when I place it within a conditional statement.
Here is my script: function functionOne() { randomX = 550*Math.random(); randomY = 400*Math.random(); } functionOneInterval = setInterval(functionOne, 1000); function functionTwo() { [Code] .....
The reason I am trying to use "this" instead of the identifier name is because the movie clip it is referencing will be duplicated. This script here generates a random destination point for an enemy spaceship and tells it to constantly move to the changing points. This script is contained within the enemy spaceship movieclip, and I am planning on duplicating several of them at once.
I have a Flex client that loads data from a server to display a chart. This data may change, so the client regularly repeats the request. Since the result may require some work to retrieve, I'm going to have the server detect if the result has changed, and issue a 304 status if it hasn't.I haven't seen any headers in the Flash Player's requests which would indicate that it's already handling conditional GETs. Also, the HTTPService API doesn't seem to provide anything, either. Does that mean, Flash can't do this, or how can I implement this myself?
With regards to cookies, which aren't supported in Flash, I have heard the suggestion to build my own HTTP client on top of the Socket class. This might solve this issue, too, but frankly, I'm really not keen on doing that.As an alternative, I could just cache the result page and send it again, but so far, the API tries to utilize semantics that are already built into HTTP, and I'd like to keep it that way.
I love looking through other people's codes and see how they style their comments, most people use a mix of * and ////, and of course it all depends on the language, but I have definitely seen some good ways to comment and some bad ways. A coded page can really come together with the right commenting structure and make it really easy to read for someone coming into a project without any knowledge.
I need my SWF banners to display in an IFRAME, and after a set amount of time, they need to animate and end up behind another SWF on the page.
Currently JPGs and GIFs do this just fine, but when the IFRAME contains a SWF, it displays on top of the other SWF, not behind it.
I've already tried the following:
-setting z-index on the SWF and IFRAME -setting wmode=transparent
I know the obvious solution here is to use object/embed code in the div, but for reasons beyond my control and too annoying to discuss here, this isn't an option. The SWFs must be placed using an IFRAME. This makes setting WMODE impossible, and when the IFRAME contains a swf, the browser ignores z-index.
I have tested the movie on ff (linux, mac, windows), ie, and safari.everything seemed to be fine. then one user tried to view it from his windows machine, and he had problems in both ff and ie.it was almost as if the flash movie was not transparent (the flash div overlays an html div.)and yes, i did set wmode to transparent.he is running xp, the newest flash, newest ff, and ie7. the other windows machines i've tested it on have the same.
I'm trying to learn AS3 the hard way (i.e. just barrelling on into it), and I'm a bit stuck on this form that I'm putting together. Aside from the normal headaches associated with form building in Flash, I've got a series of conditional contents that I need to work out.Basically, it's a no-brains-required error reporting form, and it's covering three sites, with several buildings, and a couple of thousand computers. What I want to do is to limit the amount of selectable machines available as more fields are filled out in this form: say I chose site 1, I only want machines that are actually on site one to be available. Would it make more sense for this to be done at the server end, or is there a way of getting the combo boxes to check to see whether conditions have been met prior to displaying contents?
You know them flash decompilers - can they read your comments you leave in your code?Also, is there anyway to remove the comments if they can -- and can you somehow remove all whitespace and compact it so the swf runs faster, better, and is a smaller file?
I'm creating a XML with AS3 and save it as file.The problem is, that i can't add this to the beginning of the XML:[code]The problem seems to be the Comments and the definition (<! and <? ).[code]
I'm having a bit of a hard time putting what I want into words, which is probably why programming it has got me a bit stumped.Basically what I want is a nagavatable guestbook where the names of the people who left comments is shown in a list, and clicking on the various names would display their comment in a dynamic text box. This whole thing started as an extention of the XML Guestbook using PHP tutorial.My idea, and the way I've been trying to go at this, is to have the names show as text (not buttons or a movie clip, if I can avoid it) in a text area with a scroll bar to allow for as many entries as possable. Clicking on a name would load the data within the <comment> tag into a dynamic text fieldHere's more or less what my XML file looks like
What im trying to do is to keep the background image aligned to the top left but never scale below a certain pixel height or width. Here is an example of what im going for.
I want to trigger an event when 4 buttons are being set to visible(originally set to ._visible=false at the beginning of the movie) say, the instance names of the buttons are "a","b","c",and "d", and their visibility is triggered by other events.When all of them are triggered/being set to visible, I want a movieclip to play (say, the name of the movieclip is "animation") I tried using the if statement and came up with the following code:
i have a question about code comments do they increase the size of the compiled .swf or are they completely ignored by the compliler the reason i ask is i have several lengthy functions written various ways and I have the functions i'm not currently using commented out......is it ok to leave these commented or should I make several class files ?
How do you add sample xml to asdoc function/class comments in Flex? They can obviously be added, but they wont show in the hover asdoc comments in Flash Builder 4. [code]...