ActionScript 3.0 :: Display List Referencing - Code No Longer Works And Get An Error?

Jul 16, 2009

I have a container movieclip called cont_mc then inside that I have a series of pins which are called pin1_mc then inside the pins I have a final movie clip the size of the pin head to act as the hit state.You can see what I talking about here: http:[url]... Before I had the pins in the container movie clip I was able to bump them to the top of the display list using this code in the on over function.this.setChildIndex(event.target.parent,this. numChildren-1); Now I have wrapped them in the container mc this code no longer works and I get an error, must be a child of the caller?How can I change this?

View 5 Replies


Similar Posts:


ActionScript 3.0 :: Changed Default Linkage To Merged Into Code - Firefox No Longer Works?

Sep 17, 2010

Changed AS3 defualt linkage to merged into code, and now my flash file will not load into firefox. It works fine in Chrome, but IE8 and firefox site at frame 1 of my movie, and no code is executed. Works perfectly in chrome. What do I do?the reason i changed to merged into code is because i made an imbeded preloader, and using preloader method as custom preloader loop and setting default linkage to Runtime Shared Library (RSL) borks the file.

View 13 Replies

Media Server :: 'Connection Error' Sample RTMP Video Used To Work, Now No Longer Works?

Sep 12, 2010

I had FMS 3.5 developer package installed on my server installed about a month ago. I used to be able to go to the /webroot/ page to see the sample RTMP video play and it worked great. Today, I go to view that page and find that it no longer plays. I get "Connection Error. Please preee Play to try again."

Pressing the play button does nothing, so I click the RTMP thumbnail and it reloads ony to give me that same error again. I can click the HTTP thumbnail and see the video play just fine. But, I want RTMP and after over an hour on the phone with my managed hosting tech, we can't find anything wrong.

Here's the thing: I haven't done anything, I have not changed anything, I have not manipulated the server software whatsoever. It just stopped working and gives me "Connection Error."

[Code]...

View 6 Replies

ActionScript 1/2 :: Loop Fails To Execute Code But List Of Commands Works - Baffled?

Jan 19, 2011

I've got 13 movieclips that all run a function (setNames) contained in a child object (namer) it contains. The function displays text in a dynamic text boxI've set them up with the instance names mark0 > mark12 so I can target them with a loop and array notation which is something I often use. But the loop sometimes doesn't work, however a list of 13 separate lines of code works fine. Am I overloading Flash with too much code commands at once, and is there a way around this?This doesn't work...

for(i = 0; i<13; i++) {
//sets names
this["mark"+i].namer.setNames();

[code]......

View 4 Replies

Actionscript 3 :: Substituting Lengthy Display List Paths In Code?

Sep 14, 2010

i would like to make my code easier to read by replacing long paths with variables, or something similar. in my code, i can target an instance many times, but the instance can have a lengthy path deep within the display list. for example: myButton instance could be located at myButtonsPanel.section2.redArea.myButton, or something like that. is it possible to substitue this long path as a variable or constant? something like: var myPath = myButtonsPanel.section2.redArea; therefore, calling the instance would be: myPath.myButton;

View 1 Replies

ActionScript 3.0 :: Unknown Error Optimizing Byte Code / Nothing Works!

Feb 24, 2011

I'm getting this error all of a sudden when I try to compile my flash file."5005: Unknown error optimizing byte code."url...Which seems to work for most people, but I am still getting this error. I'm also getting this message in the output window:"ReferenceError: Error #1065: Variable ComponentShim is not defined."It started happening after I created a new .as file that is about 43kb (holds data for a game level).Running Flash CS5 in Mac OSX Snow Leopard.

View 2 Replies

Actionscript 3.0 :: Any Value StartDrag No Longer Works?

Aug 3, 2009

I just ran into something pretty interesting, if i attach a sprite and then call startDrag it works great, however.if i set the sprite to say a rotationY of 20 or any value the startDrag no longer works? any solutions to this?

View 6 Replies

Professional :: Publishing A Projector No Longer Works?

Feb 19, 2010

I've been developing a fairly simple presentation in CS4, AS3, OSX, which runs as a standalone projector.Everything was working for a while, but now for no apparent reason, any file I publish as a projector starts the Flash Player app, but the projector does not appear or play.Older versions that I had already published will play correctly, but if I re-publish them they do not work any more.

View 2 Replies

ActionScript 3.0 :: AddEventListener In A Function No Longer Works

Apr 23, 2011

Should that be avoided due to local scope factor? function resizeDisplay() below no longer works

[Code]...

View 4 Replies

ActionScript 3.0 :: Event Listener Removal - Button No Longer Works

May 31, 2009

Whenever I remove an event listener to a button then that button no longer works. Does it cause memory leaks to not remove these listeners.....come to think of it I have about 30 eventListeners that I cannot remove otherwise the application ceases to function correctly. Is my application a memory black hole? How should i proceed with garbage collection?

View 3 Replies

ActionScript 1/2 :: Button No Longer Works When Inside A Movie Clip?

Nov 11, 2009

I have a button in a Flash project I've made. It's used to jump to another place on the root timeline, labelled "Why". It used to work perfectly.I have now placed the button inside a movie clip (it has to be in an animated sequence), but now it no longer works. It appears to work fine, the rollover state works and all. But when clicked it does nothing.The code I use to work the buttons goes on the main timeline, the code for this button is:mc_anim_backdrops_menu.btn_subsection1.onRelease = function() { gotoAndStop("Why"); _global.swfloaded = "";}Why does it no longer work? and what can I do to fix it?The question is posted here over at Experts Exchange URL...what we've tried there is tracing the problem. The code seems to be pointing to the right place, but none of the actual function works.. as you'll be able to see if you open up the attached file (and change it's extension from .txt to .fla to get it working)

View 3 Replies

ActionScript 3.0 :: Browser Cache Ignore No Longer Works After Windows Update

Nov 14, 2008

Just thought I'd share that after the windows update I did this week, the browser cache blocking trick described in many places where you put ?r=<randomnumber> at the end of a URL no longer works. Not exactly sure what happened, but it now causes a URL not found error, at least for me when I'm loading local files off my disk.

This thread talks about the cache blocking trick:

[URL]

View 1 Replies

Flash :: IDE - Gallery - When Click Next And Then Go Back The GetURL Function No Longer Works

Mar 5, 2010

I have a flash gallery in side my movie I have a next button and a prev button that works just fine. The issue I am having is when you click next and then go back the getURL function no longer works. It might be easier to view the issue. here is the link [URL]

View 1 Replies

Flash :: Error: Error #1502: A Script Has Executed For Longer Than The Default Timeout Period Of 15 Seconds?

Feb 3, 2010

I got this error and I am not sure what it's about. The last thing I remember doing is adding a clearInterval() method to clear some setTimeOut() intervals varibles. besides that I am not sure what it could be. Not asking for a solution. But if anyone know's any possibilities of what it could trigger that error, maybe that

View 2 Replies

ActionScript 3.0 :: Atom Feeds No Longer Parsing Using Me Old .rss Code

Dec 1, 2008

We changed atoms in our newspaper this Monday, but the new .atom feeds no longer parsing using me old .rss code.

View 2 Replies

Flex :: When Add A Valid Statement To Code It Will No Longer Compile

Nov 22, 2011

I am having a problem with my build. When I add a valid statement to the code it will no longer complie and it fails with errors from an unrelated file.I experience these issues building with ant or building with mxmlc on the command line.Adding a valid statement to an myLittleBox.mxml will cause this error.All the errors are in ViewerMain.mxml.This file is not the main mxml file but it is referenced from the main mxml file.Before changing myLittleBox.mxml ViewerMain.mxml had no compile errors.There are no errors related to myLittleBox.mxml myLittleBox. mxml has no references to ViewerMain and only uses spark components ViewerMain.mxml has no direct references to myLittleBox.mxml. Its children's children's children would have a reference to myLittleBox.mxml.The valid statement added to myLittleBox.mxml could be many things (they all break it) including a comment.[code]

I noticed that the Model was using a constant in Viewer 1.This was causing all of Viewer 1 to be built when Viewer 2 is built.I moved the constant from Viewer 1 to the the Model (where it really should have been anyways) and my project built successfully since Viewer 1 and Viewer 2 were not being built at the same time.It makes sense that this would resolve the issue however this is just resolving a symptom of the issue.I am still very curious what was causing the the compiler to fail on ViewerMain.mxml when I add a comment to myLittleBox.mxml.I guess that it will remain a mystery for now.

View 1 Replies

ActionScript 3.0 :: Radio Button Code That Once Worked, No Longer Working?

Jul 21, 2010

I had a forum up a few months ago, and got help getting radio buttons to work with a continue button, causing the movie to gotoAndStop at a particular frame. (This is all being done on the main timeline).Everything was working fine, now, I keep trying to do it again, but regardless of which button I click, it only goes to frame 2 where the Novice radio button is supposed to go.I think the problem is in the line of code that reads:varframeNumber=2+Number(noviceButton.group.selectedData)I know it is set to only go to the novice area, but my understanding was that since these were radio buttons, any button clicked would work, and I only needed to type in one of the unique instance names

Here is the code:
stop();
continueButton.enabled=false

[code].....

View 14 Replies

ActionScript 3.0 :: Copy And Pasted Code, First Code Works, Second Doesn't?

Jun 9, 2011

I've literally been staring at this for 7 hours. I'm missing something.I have two movie clips on the stage. The instance name of the first is puzzleAK. The instance name of the second is pieceAK.The first is linked to a custom class called GeoPuzzle. The second is linked to a custom class called GeoPiece.The code compiles but throws an error (as explained).The code in the main timeline:

puzzleAK.fullName = "Alaska";puzzleAK.abbrev = "AK";puzzleAK.isLocked = false;trace ("made it through puzzle definitions: " + puzzleAK.fullName + " " + puzzleAK.abbrev + " " + puzzleAK.isLocked);

[code].....

View 7 Replies

ActionScript 2.0 :: Referencing Arrays - Create A Dynamic List

Nov 13, 2004

I posted this a few days ago and am still stuck. I have read a myriad of tutorials on arrays, and still cannot fathom out where I am going wrong. I have commented the code. The story is as follows: I want to be able to create a dynamic list. In the library I have exported for .as a movie clip given the name "nav"

[Code]...

View 4 Replies

Flash - Sorting Display Objects By Their Display List Depth

Aug 5, 2011

I have a list containing display objects from throughout the application (insertion order). I want to process the list either top-down (parent, child) or bottom up (child, parent). The only requirement is that either a parent is processed before any child or vice versa a child before its parent. What is a good approach? This question is not about sorting a list. It's about retrieving the depth of a particular display object.

Example
Display list:
A (root)
B1
C1
C2
D1
B2
......

My list:
list = [E1, F4, A, B2, B1, C3, ..., N9, N8]

Bottom-up:
N9, N8, F4, E1, C3, B2, B1, A

Top-down:
A, B2, B1, C3, E1, F4, N9, N8
Does not matter if N9 before N8 or N8 before N9. Important is that any N is before M (first run) or any M before its children N* (second run).

View 2 Replies

ActionScript 3.0 :: Test If A Display Object Has Been Added To Display List

Mar 6, 2008

Is there any way to test if a display object has been added to the display list?

View 9 Replies

Flex :: SWF No Longer Work - Error 2048 / 2046 Or 2032

May 23, 2010

I'm pretty new to Flex. Basically, anything I try to build with mxmlc fails to run now, giving me the above three errors depending on what I do. It was working 30 minutes ago, I've been spending that time trying to figure out what has changed. I redownloaded the Flex SDK, cleared my assetcache, have cleared Firefox's cache. (I'm using Linux.) Even if I compile with -static-link-runtime-shared-libraries=false, since it seems like #2048 is a RSL problem, it still refuses to run.

Another strange thing, if I keep
<policy-file-url>[URL]>
<rsl-url>textLayout_1.0.0.595.swz</rsl-url>

In my flex-config file, then firebug tells me that my swf file is trying to access a copy of that in the app's folder, giving error 2032. And if I stick the one I have in frameworks/rsls/ then it gives me error 2046. I don't know how it could not be properly signed, unless Adobe magically changed a signature and didn't update their flex SDK.

View 4 Replies

Actionscript 3 :: Test If A Display Object Is On The Display List Or Not?

Mar 4, 2011

What's a simple way to detect if a display object is currently on the display list?

View 1 Replies

Flex :: Identify All The Display Objects In The Display List?

Jun 28, 2011

How do I identify all the display objects in the display list in ActionScript, bellow the one that I have clicked? All the other objects are shadowed by the first one. What if other objects have visible parameter as hidden?

View 1 Replies

ActionScript 3.0 :: Index A MovieClip To Always Display At Top Of Display List?

Jul 8, 2011

I was wondering if there is a shortcut so i can always set a MovieClip to display at the tippy top of the display list?

Also i understand that WebViewLayer will always display above the display list.

View 1 Replies

ActionScript 3.0 :: Display Object Cannot Be In The Display List More Than Once?

Feb 9, 2009

It's my understanding that a display object cannot be in the display list more that once.So if I add something to the stage shouldn't a second addition of the same object replace the first? for instance:

[code]...

there should now only be one "myDisplayObject" on the stage.

View 3 Replies

Professional :: Error 1502: A Script Has Executed For Longer Than The Default Timeout Period Of X Seconds?

Nov 28, 2010

I have a swf that i cant change (i dont own the code and its copyrighted). In some cases, Im getting error 1502, after 30 seconds executing the file.Is there a way to change or disable the default timeout period? Remember that i can´t edit the .fla

View 3 Replies

ActionScript 3.0 :: Error #1502: A Script Has Executed For Longer Than The Default Timeout Period Of 15 Seconds

Sep 15, 2011

I have implemented a basic login screen and its working ok except that it's giving me this error and is taking long to execute:
 
Error: Error #1502: A script has executed for longer than the default timeout period of 15 seconds.    at login_screen/Checklogininfo()[login_screen::frame1:34]
 
Script is the following:
 
login_error_lbl.visible = false;login_ok_btn.addEventListener (MouseEvent.CLICK,Checklogininfo);
function Checklogininfo (event:MouseEvent):void{    while ((User_name_txtbox.text != "xx") || (Password_txtbox.text != "y")){      login_error_lbl.visible = true;         /////////////////////////////////////////this part of the "while" is taking very long to execute        User_name_txtbox.text = "";        Password_txtbox.text = "";
}    this.visible = false;}

View 8 Replies

Actionscript 3 :: Flex 3 Referencing Old Files, Will Not Compile Updates To Code

Feb 28, 2012

I am using Flex Builder 3, working on a PC. Everything was working as expected throughout my first day of code updates, but on day 2 Flex started behaving badly.The problem started when I removed a component, and then got an error that it couldn't find the specified component in some accompanying AS3 code. No problem, I updated the reference so it wouldn't look for the old missing component (a form item). When I compiled the project in debugger to check my work, it failed when it got to that part, and gave an error that it couldn't find the component I'd removed. However, my code had fixed the problem, and the error was referencing a line of code that wasn't there any more. I proceeded to change the file around greatly, and even resorted to creating a new file, changing the name of it, and then recompiling it. I did a clean compile as well, rebooted my machine, restarted Flex, but every time it gives an error referencing the bit of code that isn't even there any more. It's as if it's loading a cached project each time (both in debugger and run mode).

For reference, here's the error I'm getting: ReferenceError: Error #1069: Property Winter Cost not found on views.PopupUsage and there is no default value.Well, the file "PopupUsage.mxml" doesn't even exist any more and is not referenced in my project at all, but it's still being referenced by Flex when I compile the files.What can I do to make Flex move on and look at my code?

View 1 Replies

ActionScript 3.0 :: SoundManager - Pausing Sound By Referencing Code In Separate File?

May 22, 2009

I wanted to have this Zombie Penguin enemy use a walk sound (it would be odd if he moved and was silent) but because it is initializing the whole world, simply coding the sound into his animation state won't work because it will play the sound for every existing Zombie Penguin in the world, not just the one on the screen.

Now I've tried to get around this problem by using a SoundManager class [URL] to load and play/pause the sound when necessary. I've got this working by placing a movieclip above the world and hittesting everything and when it finds a Zombie Penguin activates the SFX. If it finds the enemy and you leave the room or kill the enemy (basically any way it is removed from the screen) it will pause the sound (not stop) and then unpause if you go back/find another instance of that enemy.

The problem is, though, that if I STUN the enemy (not kill it) it plays it's dizzy animation (which consists of hit sitting down with stars spinning around it's head) the walking SFX continues to play as the enemy is still on the screen.Now in the Zombie Penguins .as file it has a boolean that for being stunned or not (bStunned), and a function (public function getZPStun():Boolean -- returns bStunned). this bStunned boolean is set to a default of false.I figure that I just have to reference that somewhere in the following code, but I'm not sure where. The Zombie Penguin's .as is ZPEnemy, so I'm calling it like so:

ZPEnemy.getInstance().getZPStun()

I've tried calling it as part of an if statement a in a number of placesin hopes that calling it will relate the current state of the bStunned boolean, but I can't seem to get it to work.

Code:

var bNotPenguin = true;
for(var i = 0; i<this.numChildren; i++) //** Sound Manager Coding (May 15)
{

[code]....

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved