Flash :: JS Conflict In IE For Mac
Dec 18, 2001
If you have a Mac check this out:[URL] Notice that in IE the Flash just disappears when you mouseover the rollover images. Also note that the rollovers swap very slow. There is a conflict here I just can't figure out.
View 1 Replies
Similar Posts:
Oct 14, 2009
I have two differnt flash elements on a new webpage we are working on. One is simply animated flames on a logo, the other is a burning image transition script I just bought.
[URL]
Why do the animated flames stop when the image transition occurs? How do I fix it?
View 1 Replies
Apr 25, 2011
I have an actionscript 3 based website that is loading font outlines dyncamically, from external font swfs, using a common technique.
...
var FontLibrary:Class = e.target.applicationDomain.getDefinition("font") as Class;
Font.registerFont(FontLibrary.fontClass);
Everything works fine until I attach assets from an swc containing text with the same font.At which point only the outlines from the swc are used. So for exampe, if the swc has a dyncamic TextField, containing the letters "abc" then only those letters will display in the website and not the entire alphabets that where previously loaded dyncamically from the font swf.
View 1 Replies
Jan 8, 2011
I have 2 controllers on my stage, one behaves like an analog controller (A) for left/right up/down etc, controlled with a TouchEvent. The firing controller (B) is bound to another TouchEvent.problem is TouchEvent seems to be much slower than using say MouseEvent.MOUSE_DOWN for controller (B) which results in a much faster firing mechanism. If I am using TouchEvent to control (A), and MouseEvent.MOUSE_DOWN on controller (B), (B) will not fire unless I release (A) meaning I cannot move and shoot at the same time which is frustrating, but I can use a MouseEvent for controller (A) and a TouchEvent for controller (B). how I can stop the conflict?
View 1 Replies
Jul 24, 2009
I got project, an accordion menu/tree menu, that just has 2 expanding parts. Very simple looking, but needs to look exactly like the image I was given.Not knowing much code, I luckily found an old sample of a real simple tree menu, since I didn't need any expensive components or plugins, nor did I want to deal with external XML files (can't code an XML worth a damn anyhow). But this old sample had everything in the fla, and did just what I needed it to. I attached it here, Menu_Old.zip.I took that exact same setup from the sample, and exact same code to make my current menu.At first, it did work fine, but the text looked really rough (I had to use images), but it definitely looked off. Looks fine in the fla, but when viewing the swf, the images are crap, some rollover states don't even line up.Then upon further inspection, I noticed that the profile of the original sample that I also built off of was an old Flash MX file. Profile said it was flash player 6, and actionscript 1.0. I'm guessing maybe player 6 just had crap antialiasing?Using flash CS3 (but saving these as flash 8), I was able to change the profile on the sample menu to flash 9 (& even actionscript 2.0) and it still works and looks fine, even after saving with the new profile.However, with my new menu that uses all that same code, when I use anything higher than flash player 6, my text look perfect again, but I lose all functionality!This doesn't make sense! And the guy needs this menu like yesterday! The way the text/images look in flash player 6 mode in unacceptable.
I am using flash cs3 and cs4 (same results on both).I put this post in this section because the code and original file are flash 8 or older stuff, plus in cs3, I did save these as flash 8 files.I both modified the original sample fla itself to the new menu to see if that might fix the problem, but it didn't.Nor did starting it over from scratch, despite again using the same old code.My new menu just isn't expanding, other than when profile is player 6 where it looks awful.You can see for yourself, if you change the current menu profile from player 6 to anything newer, the text looks great, but it will likely lose functionality like it does for me. Do the same with the old sample menu, you can even use the player 10 profile in cs4 and it still works.
View 2 Replies
Jun 16, 2010
I have wrote a function like ,
private function addSelectedFunc():void
{
/**
[code].....
View 1 Replies
Jan 5, 2012
I am a COMPLETE newb at actionscript. I have been experimenting with variables; I've made some assumptions based on programming with other languages.When I search for errors,it says my script is fine, but when I publish preview, it plays and then gives me errors.I keep getting error 1152: A conflict exists with inherited definition flash.displayisplayObject.x in namespace public. and1152: A conflict exists with inherited definition flash.displayisplayObject.y in namespace public.
Here is my script for frame1
stop();
import flash.events.MouseEvent;
var x:int;
var y:int;
[code]....
View 2 Replies
Feb 22, 2010
This appeared as I was trying to use a mouseEvent to move an object.I placed the variables for mouseX and mouseY in the public class. I did the same for direction X and Y but there was no error message for those.
View 1 Replies
Mar 6, 2009
I have an image that grows on mouseover and shrinks on mouseout, and I'm using the following script for the events:
[code]...
The problem is that while the image is growing or shrinking,if the mouse is on the exact border it simultaneously gets stuck on both the mouseover and mouseout fuctions, resulting in seizure-inducing loop. Is there any way to ensure that a function completes once it's started, or some other way to avoid the simultaneous over/out condition?
View 3 Replies
May 5, 2004
How can I change the following so it won't conflict with sounds inserted manually in keyframes. Currently when this function is active, the loop sound works but the other sounds don't play..
Code:
soundTrack = new Sound();
soundTrack.attachSound("loop");
[code].....
View 14 Replies
Nov 30, 2005
Im wanting to make a Movieclip budge when my mouse tries to go over it.Sort of a scattering effect.Say on my stage I have a movieclip, which contains a picture of a square.When my cursor goes near Square movieclip, it scatters, and reveals some text which is on the stage
View 2 Replies
Mar 30, 2010
I'm creating an application with an animated kid figure. All the kid symbols sit in a kidLibrary.Fla file, Each of these symbols have a class named "Kid" linked to it on its Properties >Base Class. This Kid class is responsible for setting the right color and hair type for each kid symbol instance. Every time i need to include one of these kid symbols i drag it to the current .fla file I'm working on. If I place only one kid symbol in the library of the file I'm working on, everything works fine!
Now here is the problem: When i place more than one kid symbol in the library, and then drag it to the stage, then one of the symbols works fine while the other one doesn't seem to access all the properties of the Kid base-class. The result is that only one symbol act perfect while the other one(s) not.
[Code].....
View 5 Replies
Sep 8, 2010
I'm an artist, not a developer, but I work with various media. I am so~so with AS3 and JS and a total noob with PHP and databases.Anyway, I am writing a Class based on keyboard events and I am finding that if the keys are hit too fast the triggered events don't complete.I'll explain further:I have a picture broken into parts (a red background here, a blue stroke there, and so on). Each one of these elements is a Library Object, and they are all set to alpha=0, and each one in turn, is tied to a key on the keyboard. When the key is struck, the picture element goes to alpha=1, plays a sound, and starts tweening back towards alpha=0.
Code:
public class TypedImageV4 extends MovieClip {
public function TypedImageV4() {
[code].....
View 8 Replies
Sep 21, 2010
An unashamedly naive question, I'm afraid, from someone trying to get to grips with as3 classes... I have a movie clip (a car) on the stage that's linked, through the 'Class' field in the symbol properties dialogue box, to a class which allows it to move. This works fine, until I attempt to set up collision detection for a movieclip representing the track, by importing a CollisionDetection class; then, the car movement class does not appear to be imported at all. Neither does it appear to work when I include any import statement on the main movie's timeline.
View 2 Replies
Apr 9, 2005
I set up an advanced class system so i don't have to use MC to simulate walls, all i use isthe x,y,width and height. Well anyway since i don't need MC anymore I was wondering if there is a way to attach Graphics instead of MC cause a Graphics file size is relatively small than that of a graphic, I think. If anyone could tell me thats true and show me a way to attach graphics that would be nice. I haven't tried it yet but maybe if I exported the graphic from the library imihgt be able to call its name, but it doesn't have an instance name so im stuck.
View 2 Replies
Aug 8, 2009
What i'm trying to do is make a drag able square and use a different cursor that I made to do so. It worked fine until I added the code for the cursor.[code]...
View 1 Replies
Aug 14, 2010
the first code (which I put into a frame) is somehow in conflict with my document class.I get these error messages:
1046: Type was not found or was not a compile-time constant: URLRequest
1180: Call to a possible undefined method URLRequest.
1180: Call to a possibly undefined method navigateToURL
But when I only use that code and unlink the document class it works. So there must be somehow a conflict between the two, but I have no idea how to integrate this code into my document class -I already tried it but the error messages keep coming, probably I didn't do it right.
code in frame:
Actionscript Code:
btn_contact.addEventListener(MouseEvent.CLICK, contactClickHandler);function contactClickHandler(event:MouseEvent):void { var url:URLRequest = new URLRequest("../Subpages/SubpageContact.html"); navigateToURL(url, "_top");}
[CODE]....
View 1 Replies
Feb 1, 2010
I have a flash project that when published with the "Transparent Windowless" Window Mode setting under File, Publish Settings, under the HTML tab... the following Action Script 3 code causes the link to be blocked by the IE 7 and 8 pop-up blocker when I use the "_blank" target and embed the flash movie on my page in Dotnetnuke, however if I use the "_self" target the link opens fine in the same window. If I publish the Flash project using the "Window" Window Mode the link opens in a new window with the "_blank" target without a problem. I need the Transparent setting because I have a menu bar on my page the drops down over the Flash and the menu goes behind the Flash movie unless it is published using the transparent setting.
[Code]...
View 2 Replies
Apr 15, 2010
I have a hitTest on an enterFrame event that adds a movieClip.I then want the movie clip to be on a timer that changes it to another movieClip.As you can imagine, there is a conflict because the hitTest always finds the original Mc an so over-rides the timer.I know this is a logic problem but I cant seem to figure it out.I am pretty sure I am thinking about this the wrong way.here is some of the code:
//this is the hitTest
this.addEventListener(Event.ENTER_FRAME,leftPillarHit);
function leftPillarHit(ev:Event):void {
[code].....
View 1 Replies
Jul 8, 2011
I got this website at work which I've just updated.It was working pretty well, yesterday I showed it to a friend.And it was working perfectly. This morning, I hear sound but all i get is a black screen.It works on every other browser (chrome, firefox, SeaMonkey, etc.) but in Internet Explorer, black screened.If anyone can,I need a quick solution, my bosses are freaking out and that is kindda out of my league as for "trouble shoot".Why something that was working not even 12 hours go goes awry on me today?
View 2 Replies
Aug 8, 2011
Following on from an answer I gave here: AS 3 | Cloning Png image data
I knew that to get a transparent BitmapData Object it was necessary to specify a background color of black, but until I was called out on it I never bothered to check why. Having checked, I wonder if there is a reason I don't see for what seems like conflicting default arguments to the BitmapData constructor? First, here is the constructor as defined in the documentation:
public function BitmapData(width:int, height:int, transparent:Boolean = true, fillColor:uint = 0xFFFFFFFF)
the default value for transparency is true.Now consider what the docs say about the transparent parameter:
transparent:Boolean (default = true) — Specifies whether the bitmap image supports per-pixel transparency. The default value is true (transparent). To create a fully transparent bitmap, set the value of the transparent parameter to true and the value of the fillColor parameter to 0x00000000 (or to 0). Setting the transparent property to false can result in minor improvements in rendering performance.
It seems to say that this parameter is useless unless you set the fill color to black. So why then is the default fillColor value 0xFFFFFFFF?If a developer wants the performance gain of no alpha channel, it must be explicitly specified:
var bmd:BitmapData = new BitmapData(width,height,false);
And if a transparent BitmapData is required, that too must be explicitly specified:
var bmd:BitmapData = new BitmapData(width,height,true,0x000000);
So at no point can we rely on the shortest constructor form, without accepting a performance hit, and I can't understand why.Surely either the fillColor should default to black:
var bmd:BitmapData = new BitmapData(width,height); // transparent BitmapData
or transparency should default to false:
var bmd:BitmapData = new BitmapData(width,height); // faster, no-alpha BitmapData
View 1 Replies
Jul 7, 2009
Scenario:swf B compiles with class Vo in it and displays it's values swf A compiles with a revised version of Vo in it and loads swf B
Result:
swf B shows swf A's revised Vo class properties and not the version it got compiled with even though nobody told swf B to change it's Vo properties.
Has anyone encountered these kinds of situations? How is everyone dealing with this?
[EDIT] Since the forums still seem to be broke, you can grab my sample files here. Compile B.fla and then change class Vo version property and you'll see when you compile A that B display's the new Vo version. Link to Files
View 4 Replies
Dec 9, 2009
I have a video, it's 3:11 but it will only play until 2:41 then it will stop...... but when I fast forward to 2:42 or 2:43 it will play till the end..... how do I fix this file so it will work..... what do I do.
View 2 Replies
Jan 19, 2004
I used this tutorial[URL] and everything worked great but i also wanted other images to load in a different loadbox at the same time. (Using the same button) Not being in expert in action script, i duplicated the code, changed all the variable names accordingly but i had a problem. The 2 scripts don't seem to work together. One loads the images properly and the other doen't. If i take 1 off, the other works and vice-versa. I am sure i changed all the variable names but they still conflict somehow.
Code:
this.pathToPics = "images/";
rray = ["journeys0.jpg", "journeys1.jpg", "journeys2.jpg"];
this.fadeSpeed = 10;
this.pIndex = 0;
[code].....
View 2 Replies
Sep 25, 2009
when I write my own classes do I need to take care of the reserved keywords, or this doesnt matter?I usually do try to make my own names but sometimes I just cant think of anythinglike say I want to write my own URLLoader class:Code:public class URLLoader extends EventDispatcher {will this be a problem?
View 2 Replies
Nov 17, 2009
I have one swf (let's call this 'A') that loads in an external swf via my own pre-loading class. We'll call this 'B'.s both swfs are written by myself, the structure follows the same one I always use, ie. a DocClass named 'Main'. When B is loaded in, the DocClass's clash - ie. B calls A's DocClass. a) Is this normal behaviour?b) Will this conflict occur for any other variables/functions that share a name?
View 3 Replies
Apr 26, 2008
I can't reference a dynamic text field inside a button, sends an error.... so... How can I do a work around on this? I need...
a) to set a variable to a string value based on button clicked.
b) the button to represent embedded text (I am using a custom font).
Simple trick, or link? Or is there a way I am not finding to reference a dynamic text field within a button?
View 9 Replies
Aug 11, 2011
I want change the HBox's style when click any object inside this HBox. I set handle for click event of HBox, and then I found it very difficult to select item in the combobox in this HBox.When I click the combobox, it drops down its item list, and HBox style changed, then combobox drop up very quickly, I have no time to select an item in the Combobox.Here is my codes, is there any way to avoid this problem?
<mx:Repeater id="itemRepeater">
<mx:HBox id="itemHBox" styleName="active" click="onItemClick(event);">
<mx:ComboBox id="cb1" dataProvider="{dp}" close="closeHandler(event);"/>
[code].....
View 1 Replies
Sep 22, 2009
I am working on a Flash movie that has interspersed FLV movies that play. A detect script listens for when the movie is completed and returns to play the main timeline.These FLV videos occupy one frame at a time. Then the presentation continues. Then another FLV...etc like that.The movie controls work fine until I pass the first video frame. Then the stop/play/mute volume slider stop working.I want to resolve the conflict. Or blank keyframe the movie script to "hop" over these movie frames. But then I get duplicate script errors because I cannot "unload" the scripts to add them back after the blank keyframe.Anyway, I cannot see what is conflicting. The detect script is only 2 lines. Here are the two scripts:
1. Detect script in movie frame[code
2. Main Movie timeline controller script:[code]
View 0 Replies
Aug 20, 2007
It's a simple site with five sections, each one containing an XML slideshow that was created with modified code from the Photo Slideshow Using XML and Flash tut.The in-progress site is temporarily hosted here: http:[url]....everything works fine on the initial load. But if you navigate to one of the other sections (which are not yet complete), then try to get back to the first page (clicking on Home is supposed to work), all that is shown is a black box (used on the site to transition from one section to another).
As you can also see, this problem does not occur when navigating back and forth between sections 2-5.I think I have the problem isolated to a conflict between the _alpha controls on the blackFader and picture_SEC1...
Code:
stop();
//define and set current section variable
var w:Number = 1;[code].....
View 3 Replies