I am working on a rollover mapping like page for an instructional demo. Basically, the user rollovers clickable areas and a dynamic text box popups explaining what the link's utility is.
I have all the text dynamically set, there are styles for the text box (ie borders and padding) and then a drop shadow filter applied. However, upon viewing the SWF file the drop shadow does not seem to work consistently. OnRollOut it doesn't always do so and upon OnRollOver a different hotspot the dropshadow will duplicate. The duplicating of the dropshadow will either continue to do so or the OnRollOut will remove the dropshadow and reset the text box as it should.
I scripted a DropShadowFilter to render on my Movie Clip. The MC just consists of static text and its using the Tween class to move on the screen. Can't figure out why its not showing up. I'm using the same method on another movie clip that is just images, and works fine. Not generating any errors either.
Code: import flash.filters.*; var tds:DropShadowFilter = new DropShadowFilter(3,90,0x000000,40,3,3,1,3,false,false,false);
I'm working with a Sprite that has multiple children. I want to apply a DropShadow filter to the main sprite, but not it's children. Is there a way to exclude filter effects from children?[code]...
I'm running into an issue where, if the dynamic text field I create wraps and autoSizes to 2 lines or more, the last disappears (sometimes partially). However, this only happens when I apply a DropShadowFilter to it. If I don't apply the drop shadow filter, it renders correctly. Note that whether or not the text renders correctly, flash seems to know that the text has wrapped and autosized, as this is how i assign the Y position of the second text field below it. See code below:
When i put a dropshadowfilter on a dynamic textfield with html-content, the links (a href) stop working.The textfields rotate in flash 3D space so they have a transformmatrix applied to them. Could this be the reason? Anybody had problems with html-links and dropshadowfilter applied to the textfield? it makes no difference if you put the filter on the textfield itself or the movieclip container around it.
I have begun on a list: My reference is null!Stage is null! Convert this code from as 2 to as 3 for me! Crossdomain policies are in the way of my cool idea Dynamic property names I need to use stuff on the parent! I don't want my children to scale when I scale the parent! Classes vs instances. Mod note: I do not want this topic pinned, we will use a fresh topic once we have agreed to the content.
the script i wrote is working fine. but the script attached to the flash player which i have no control over is throwing a script error (im using IE8).how can i fix this? if i run it locally there is no error.
I have create a menu but when clicking on menu so that it shows, I get an error on the line because of the line "myMenu.show(null,null)". See function below:
private function createAndShowmyMenu():void { myMenu = Menu.createMenu(null, myMenuDataProvider, false); myMenu.labelField="@label"[code]........
sometimes I remove child and trace it afterwards and it outputs null although I havent yet set it to null, why is that? and do I need to set it to null also in that case?
I have the following piece of code(part of a much bigger program). I this code I am re-using a motion that has been previously used successfully. The trace stmts are used to identify the exact location of the error and the error conditions as best I can.[code]
When you cast null to an object using Object(null), the result is an object.When you cast undefined to an object using Object(undefined), the result is an object.But saying null as Object or undefined as Object remains null.Why is this? I can't find anything in the documentation about this.
The objects that result from these casts can have properties set on and read from them. It's as if the cast created information, or removed whatever special information the null and undefined values have. But there's no indication in the AS3 documentation that the null and undefined special types are actually objects.
I am trying to add an EventListener to a MC, but I am getting the 1009 error. My script is referencing a MC that does exist. I have verified that my code is typed correctly, and that my instance names are correct.I am creating a portfolio site. On the first frame I have my main navigation (well, it's actually not the first frame. I alpha-fade everything in so it's really the 6th or 7th, but I'm not sure how pertinent that is). The main navigation works fine (5 movie clips, fyi). Clicking them will move to a different frame, and the information and sub navigation for the frame will fade up. It is the sub navigation that I am having trouble with.[code]
As you can see, it doesn't even get to the function before it gets thrown off. I have verified that the instance names are correct. The script and the MC I am trying to add it too [I/]are[I/] in the same frame, which is what's stumping me. Normally you get 1009 when the object you're trying to reference is not there, but mine is!!Obviously there is something wrong with my EventListener. I am not sure what else do; there is a gap in my understanding of AS.
If I set an Object = null, does that remove all references to the Object's variables assuming there are no external references to said variables? Or do I have to manually set all said variables = null?
I've a question about variables in AS3 OOP. Do I have to set them to null or I it's not needed when I define them in beginning of the class? I just noticed someone doing so so I wasn't sure is it right or no.
private var _mcComponentHolder:MovieClip = null; private var _mcComponentHolder:MovieClip;
I'm testing out some different things right now and I'm trying to make a box, that, when one of two balls is dragged and dropped into it, causes the correct color text to display (i.e. redBall displays "RED", blueBall displays "BLUE" when dropped into box).I've gone through a few different ways of doing this, but now I"m trying to use dropTarget.I'm finding that when I drop it into the box using the code below, everything works fine, but if I drop is anywhere outside the box, I get an error stating "Cannot access a property or method of a null object reference."I'm assuming that I'm just wording this second dropTarget conditional statement (if (e.currentTarget .dropTarget == null)) incorrectly, but I'm not sure how to fix it.Here's the code of the dropping function I'm using:[code]....
I'm having a little difficulty when it comes to getting objects ready for garbage collection.
I have some dynamically created movieclips.
Within each clip, I have a combo box and a close button. When the user clicks the clsoe button, it runs a function that removes all the event listeners for the close button and combo box, and removes the parent clip from stage. I also want to make the parent clip null, and this is where I get an error. I'm not sure how to tell Flash "make the parent of the close button clip = null.[code]...
It's returning null the first time I click an image however subsequent attempts traces a value (I assume because it is set then, just not when the app loads). how to recognize it when the app loads?
i am getting the Parameter url must be non-null error while trying to pass the path of an XML file to an Shockwave flash object.The javascript code is as follows
<script type="text/javascript"> var so = new SWFObject("preview.swf", "", "100%", "100%", "9", "#ffffff"); so.addParam("allowFullScreen", "true");
movie clips have defined functions for rollOut, rollOver and Release. On Release rollover function is set to null (on.Rollover {bla, bla, bla movieclip.onRollOut = null}.Is there a way to re-enable this function?
I recently bumped into an issue in the Flash IDE that you may be able to shed some light on for me.As I drag a movieclip around the stage, an enterFrame event listener is fired.For each enterFrame that fires, a point is placed onto the stage, stored into an array and the event.updateAfterEvent() method is called.
var p:MyPoint = new MyPoint(x,y); parent.addChild(p); myArray.push(p);
An xml file contains multiple products each with their corresponding background image, foreground image, text and website. The LoadXML class loads this xml file and creates an array of each image, text and website. The Main class then loads each image from the array of background images in the method onBackgrLoad(). This is done through the use of a for loop which loops through the array of backgrounds (called hintergrund[]) and loads each one in turn. On tracing hintergrund[] I sucessfully receive a string of all the different background image paths. However when I examine the backgrRequest and backgrLoader they both contain null. The images therefore dont appear on stage but neither does an error message appear! The same thing happens for onImageLoad (this should load the foreground image) and onTextLoad.