ActionScript 3.0 :: Grr Infinite For Loops?

Mar 29, 2009

Shouldn't flash detect these before running the script and crashing and having to force quit and restart (and flash startup takes a while)? Like just give an error: infinite for loop or something? And this happened to me a bunch when working with for loops within for loops, when I accidentally used the same variable for both loops, so of course it never ended and crashed flash.

View 2 Replies


Similar Posts:


ActionScript 2.0 :: Sliding/Infinite Menu - It Cuts Off A Bit When Going Infinite?

Nov 12, 2002

onClipEvent (load)
{
xcenter=377;
speed=1/10;[code].....

i did the tutorial but something is wrong cuz when i created my own little sliding thingy and i put my mouse so it slides left or right on the right side it cuts off a bit when going infinite.I think its something to do with the positioning of my menu because its not on x=0 its on x=120.8 and i was trying to work out how to fix it but i'm stuck...and when i move the menu to x=0 it works nicely.

View 15 Replies

XML :: Loading File With Possible Infinite Tags In AS3

May 16, 2010

Basically, I have a XML file similar to:

<Main><Event><Name>Blah</Name>
<Event><Name>Blah2</Name><Event>
<Name>Blah3</Name>
...
</Event></Event></Event></Main>

Yeah, to some extent it's poor design. But the idea I'm going for is that any Event has the potential to compromise of other Events and this idea kinda loops. How to do this?

View 2 Replies

Flex :: Replace Infinite Loop?

Jun 18, 2010

I want to access a webservice:getMonitorData() , on creationcomplete and returns an array, in an infinite loop so that the getIndex0.text is updated each time.Flex is not able to handle an infinite loop and gives a timeout error 1502. If I run the for loop until i<2000 or so it works fine.How can replace the loop so that my webservice is accessed continiously and the result is shown in getIndex0.text.This is how my application looks like:

<?xml version="1.0" encoding="utf-8"?>
<s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"

[code]....

View 4 Replies

ActionScript 3.0 :: Infinite Tsunami Accordion?

Jan 27, 2010

I posted on Kirupa Yesterday trying to get help with a project. I've had no response because the help I need is admittedly a pain in the behind. I'm at the end of my thether here so I thought I try posting here also. I'm in the process of trying to make an "infinite scrolling tsunami accordian". Sounds sweet right.

Its supposed to grow as items are moused over along with accordion functionality. also it is supposed to wrap around the items. Ive gotten very close but I have some problems that I've hit a wall on. I've never seen a 3 in one menu like this and it'd be really cool to get it going.

So far I have the tsunami effect and the wrapping around. The only problem is that when you click on an item, instead of the items below it animating to the bottom bound of the menu and then appearing at the top when they go too far theres a big *** pause and then they just jump to wrap around position.

The accordion aspect is there too but I can't figure out how to handle the spacing when an item is expanded. I've attached a zip file containing the project in the hope that somebody might have the time to try and me flesh this out . The class in question is named infiniteTsunamiAccord.

View 0 Replies

ActionScript 3.0 :: Infinite Ray Intersect Line

Mar 3, 2011

I need to determine if a ray from a point (point and angle or vector) which goes to infinity intersects a line segment (two points), and if so, what direction it crosses (left or right.)I've been searching around on google but haven't had any success implementing the math solutions.I'm trying to do is implement the winding fill rule described here to determine if a path is clockwise or counterclockwise.

View 2 Replies

ActionScript 2.0 :: [MX] Infinite Menu As A Loaded Swf?

Oct 9, 2004

Im using the infinite menu code from the tut.

The AS in the tut works fine in a stand-alone swf, but if you load it into another swf it wont work properly cuz it uses values like _ymouse<18

Those absolute values are not correct once the swf is loaded into a different sized movie.

What would you guys say is the best way to convert the code so that it would work when loaded?

If thought of changing every value to a target such as _root.MCinMAINmovie.CONTAINERmcFORinfiniteMENU._xm ouse>218 but this seems rather tedious... and it makes it hard to build code for something that needs to be a loaded swf and test it say before you have you main swf built.

Heres the code for the infinite menu

Code:
onClipEvent (load) {
xcenter = _root._width/2;
speed = 1/10;

[Code]....

View 3 Replies

ActionScript 2.0 :: Mouseover On Infinite Menu

Nov 10, 2004

i've created av "infinite menu" a menu that moves in a direction depending on the position of the mouse. I need a little help to make it stop whenever the mouse aint over the menu.[code]This is just a beta version so the grapics aren't correct.

View 4 Replies

ActionScript 2.0 :: Infinite Menu With/without Using OnClipEvent?

Jul 2, 2005

Code:
//this is one of the code pieces I've been trying
scroll_menu.onEnterFrame = function() {
var speed=.5/100;
var xcenter=400;

[code]....

View 1 Replies

ActionScript 2.0 :: Infinite Scroller Not Wrapping Around?

Sep 20, 2006

I've got a infinite scroller (adjusted one of scotty's) and it's not wrapping around i.e there's a gap in the images, the last image kinda blinks at a certain point.I've attached the files, it's probably something quite simple but i cant see it.Here's the script:

Code:
spacing = 0;
containerMC._alpha = 100;

[code]......

View 14 Replies

IDE :: GetURL In Old Infinite Menu FLA Not Working

Feb 7, 2007

I've got the very old infinite menu posted on Kirupa's site. I haven't done anything but switch it to a vertical menu, but the problem is that I put a button in the menu, the 2nd grey box, with a getURL that just goes to google. Problem is, it won't load the url. I had wanted to put buttons in this menu to get new URLs or do things it flash, but it won't respond.

View 2 Replies

ActionScript 2.0 :: Looping Frames 6 Through 7 Infinite?

Dec 23, 2007

I have a movie clip named "services_mc" it has 7 frames inside of it. When the movie clip gets to frame 7 I want it to go to frame 6 and play (and repeat this infinite).

I thought all I would have to do is put this in frame 7:

gotoAndPlay(6);

but it stops on frame 7.

View 3 Replies

ActionScript 2.0 :: Ball To Rotate Infinite?

Aug 6, 2008

I have a movieclip with the instance name "Ball".

I want the ball to rotate infinite, what code do i need for this?

View 2 Replies

IDE :: Make Infinite Moving List?

Mar 11, 2009

I have an MC that is a giant text box that contains 20 different items laid out vertically, like this for example:

A
B
C
D
E
etc

I want to make the list infinitely moveable/draggable on its y position, meaning the user can drag this list up and down but the list never ends.....In other words when the user drags to the last item in the list, the list, the list starts over again. And the same works in the reverse; if the user is dragging up and gets to the first item, the last item pops up after and then goes in reverse. In other words no ending. Think The Price Is Right Wheel or the alram clock on the iPhone or iPod touch.

View 1 Replies

ActionScript 3.0 :: Infinite Tiled Background?

Sep 1, 2009

I am creating a space game in AS3. In order to show movement while keeping your space ship in the center of the screen I would like to move the background (in the opposite direction that the space ship is moving). I would like the background to tile so that if you ever reach the end of one background image it will place another one right next to it seamlessly. I have worked out the code to move the tiles to the right place at the right time, however whenever the tile is repositioned due to the ship reaching the edge, there is a brief period of lag.

View 4 Replies

ActionScript 2.0 :: (MX) Pausing The 'infinite Menu'?

Mar 8, 2004

Alright, this is my problem; i need to find a way to pause and start again from that same position the 'infinite menu' found here on kirupa friend of mine attempted to and gave me some code to fiddle with. I did fiddle with it, but problem was, the code was for Flash MX 2004. So it didnt work on my MX. Here is the existing code i have, but doesn't function (i.e. works fine when control>Test Movie, but doesnt work when actual .swf from folder is opened)

cmdPause.onRelease = function() {
if (_root.Paused == true) {
text = "pause";

[code]....

View 10 Replies

ActionScript 2.0 :: Infinite Scrolling MC With Easing?

Aug 19, 2004

I'm having trouble with a scrolling portfolio type of movie that I've created. It contains a movieclip with thumbnails on it and a left and right button that scroll the thumbnails back and forth. It uses easing to move to each position. It also disables the buttons while the movieclip is scrolling to prevent throwing the movie off alignment. What I'm trying to accomplish is to give the scrolling feature endless scrollability. I have duplicated the slidebar to reposition whichever one necessary to be next in line as the user scrolls through. My code seems to be working but not very well. Sometimes I see one of the slidebars shoot accross the screen to it's correct position, sometimes you have to wait a couple seconds for it to move over. It's acting very quirky. I'll post the .

View 1 Replies

ActionScript 2.0 :: Infinite FlashLevel Navigation?

Jan 31, 2005

looked at the flashlevel navigation that's in the Best Of Kirupa section... totally dig it.I'm wondering though... is there a way to have it, once you get to the end of the last listing in the XML file, inside flash, to have it loop back to the first one? so that pretty much it'll just keep scrolling?

View 1 Replies

ActionScript 2.0 :: Infinite Scrolling MC With Easing

Aug 19, 2004

I'm having trouble with a scrolling portfolio type of movie that I've created. It contains a movieclip with thumbnails on it and a left and right button that scroll the thumbnails back and forth. It uses easing to move to each position. It also disables the buttons while the movieclip is scrolling to prevent throwing the movie off alignment. What I'm trying to accomplish is to give the scrolling feature endless scrollability. I have duplicated the slidebar to reposition whichever one necessary to be next in line as the user scrolls through. My code seems to be working but not very well. Sometimes I see one of the slidebars shoot accross the screen to it's correct position, sometimes you have to wait a couple seconds for it to move over.

View 1 Replies

ActionScript 2.0 :: Boundary For Infinite Menu?

Sep 14, 2004

All i need to do is put a boundry for the infinite menu to stop at for the left and rightThis is my code from the tut:

[AS]
onClipEvent (load)
{

[code]....

View 5 Replies

ActionScript 2.0 :: Infinite Menu As A Loaded Swf?

Oct 9, 2004

The AS in the tut works fine in a stand-alone swf, but if you load it into another swf it wont work properly cuz it uses values like _ymouse<18Those absolute values are not correct once the swf is loaded into a different sized movie.What would you guys say is the best way to convert the code so that it would work when loaded?If thought of changing everyvalue to a target such as _root.MCinMAINmovie.CONTAINERmcFORinfiniteMENU._xm ouse>218but this seems rather tedious... and it makes it hard to build code for something that needs to be a loaded swf and test it say before you have you main swf built.is there a better or easier way to do this?Heres the code for the infinite menu

Code:
onClipEvent (load) {
xcenter = _root._width/2;

[code].....

View 3 Replies

ActionScript 2.0 :: Infinite Picture Menu?

Jan 11, 2005

I am trying to make a infinite menu of thumbnails called dynamically. I need two things: I need the menu to move forward (infinitly and at a constant rate ex: speed = 5) while the user presses and holds the forward button and backwards (infinitly and at a constant rate ex: speed = 5) while the user presses and holds the backwards button. Secondly, I need randomly sized pictures (ex. 640 x 480) to load in there respective box (20 in all, each with a varible P(number)) and be scaled to the size of the box with the pictures proportions intact. Attached is what i've come up with so far and i've used the pic box currently in the middle of the project to experiment with.

View 1 Replies

ActionScript 2.0 :: Deactivating The Infinite Menu?

Dec 19, 2003

I followed the infinite menu tut and it worked perefectly, how ever I'm trying to make a professional looking website and I don't want the scrolling to be obnoxious to the viewer (and I know jack crap about AS).

Is there a way I could get it to either work when the mouse is just on top of the .swf or to get it to work when the mouse is in proximity (within ~100px either way) of the .swf? Also, I'd like for the menu to reset and stay at x=0 y=0 when the it's not active..

Code:
onClipEvent (load)
{
xcenter=360;
speed=1/200;

[code]...

That's what I have from the tut for the movie obj.

View 1 Replies

ActionScript 2.0 :: XML Portfolio Infinite Menu?

Mar 13, 2005

I've tried applying Ilyas' infinite menu to the Senocular's XML portfolio. However, the movement looks bad--you can see where the thumbs stop and begin. I was wondering how this could be fixed??

Also, would it be possible that when you click on a thumbnail, a PDF file is launched? How could I do this from the XML file? I'm trying to create a continuous scrolling horizontal menu. The menu would contain pictures of news articles and when you click on the picture, you could read the article in the PDF!

Since each article is pretty long, like news clippings, I don't think having this info in a flash pop-up box would work?

View 14 Replies

ActionScript 2.0 :: Infinite Loop Function ERROR

Jul 24, 2009

"256 levels of recursion were exceeded in one action list.This is probably an infinite loop.Further execution of actions has been disabled in this movie."Why do I get this error (above) when I use the code (below)? Why isn't this acceptable? [I use function similar to this in Javascript with no problem.][code]

View 9 Replies

ActionScript 3.0 :: Infinite Moveable/Draggable List?

Mar 12, 2009

I have an MC that is a giant text box that contains 20different items laid out vertically, like this for example:ABCDEetcI want to make the list infinitely moveable/draggabl on itsy position, meaning the user can drag this list up and down but thelist never ends.....In other words when the user drags to the lastitem in the list, the list, the list starts over again. And thesame works in the reverse; if the user is dragging up and gets tothe first item, the last item pops up after and then goes inreverse. In other words no ending. Think The Price Is Right Wheelor the alram clock on the iPhone or iPod touch.

View 1 Replies

ActionScript 3.0 :: Infinite Slide Show Loop?

Apr 1, 2011

created an infinitely looping series of photos that scrolls from right to left. The animation was created with 6 photos and was animated using AS 3.Is there substitute coding using AS 2 in place of my AS 3 coding?Or is it more complicated and does it depend on how the photos were set up in my document, how the photos and groups of photos were converted to symbols etc??here is my current AS 3 code that works.

var centerX:Number = stage.stageWidth / 2;
var galleryWidth:Number = infiniteGallery.width;
var speed:Number = 0;
addEventListener(Event.ENTER_FRAME, moveGallery);

[code]...

View 5 Replies

Professional :: Infinite Scroll Mouse Over Link?

Aug 15, 2011

i am create AS3 infinite scroll bar. i want to put mouseover  hyperlink to every picture.

View 2 Replies

Flash :: Jquery - Infinite Scroll Breaks

Apr 14, 2012

I am nearly finished creating the tumbler theme below. The theme uses the infinite scroll plugin and this works fine for posts that don't contain flash (photo, text, ...). Video and audio posts use flash and when the infinite scroll kicks in loading more posts it doesn't load in the flash posts. [URL]

View 2 Replies

Flash :: Infinite Tweening Hue Loop With Tweener?

Jan 6, 2010

I'm trying to infinitely loop a bitmap all the way through the colour spectrum using AS3, Tweener and its ColorShortcuts class. This doesn't loop back to the function "tween1":

function tween1():void {
Tweener.addTween(image, { _hue: 180, time:5, onComplete:tween2 } );
}
function tween2():void {
Tweener.addTween(image, { _hue: -180, time:5, onComplete:tween1 } );
}

View 1 Replies







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