ActionScript 2.0 :: MX Scrolling Works Only Once

May 26, 2009

I made a scrolling text box that I feed xml into. The only thing is when I scroll down or up I can only get it to work once.

[Code]...

I want it so that every time I that I press the button that I scrolls down.

View 6 Replies


Similar Posts:


XML Scrolling Thumbnail, Image Loader, & Buttons [halfway Works]?

Jul 2, 2009

Intro:I started a flash-based website a few years ago. Back in 2006 I was able to get a xml scrolling thumbnail, image loader to work without a glitch.For numerous reasons I had to put the project on hold until now. [one was that my 30 day trial of flash expired and only recently was I able to purchase the Adobe Web Suite CS4 as well as a new computer which could run the apps.]

Last Friday saw a bump in the road in the development of my site as two, rather straightforward task, turned into something short of a nightmare as I have been unable to get past these two, seemingly, relatively simple task.I have posted in 4 other flash forums the issues, in detail, that I am facing - and have quite a bit of interest/views in the topic as the numbers suggest - yet no response/answer as of yet. [Which confirms other messages I have seen which seem to state that working with buttons has become increasingly difficult with the newer version of flash - something Im a bit surprised with actually from Adobe. - I would have thought there would be a palette where you could set parameters...] 

Screenshot of Site/Timeline: Before getting into the two questions I have, I would like to post an image of the site as it looks whenever an swf file is saved out, as well as a piece of the timeline in the back for reference.As of now when the swf file is saved out you get exactly what you see above:

a: A scrolling thumbnail

b: ...which loads a large image when clicked on it - PEFECT...
 
BUT...1a: I need for the buttons to load in this action, not for it to just load on its own.[i.e., the silk_paintings gallery is what is open, so I need the "silk_paintings" button to call up this action]
 
note: Initially I had attacked this problem by taking out the actions layer you see above and applying it directly to the individual buttons with some crude MouseEvent Listener/Handerls... that did not work - at all.Im sure it may be "easier" to make an array out of it, but with my coding level it may be "easier" to apply it to the buttons.
 
1b: How I currently see it, I would take the xml-list and duplicate it for the number of galleries I have.[I would then re-name the xml-list to reflect the name of the galleries they are to represent, i.e. "silk_paintings"][also, I would have to rename the folders to "thumbnails1,2,3, etc., & "images 1,2,3, etc"
 
From there I would duplicate the actions and paste it into the buttons, changing the xml-list name to that of "silk_paintings", etc., as well as write in the MouseEvent listener Handler to make it work. [ah, ha, but what is that magic phrase, I have tried to implement various code from other tutorials, and all in vein.]
 
At this point I would be tickled pink just to get this to basic function to work.However, once the buttons are working and calling up the xml, etc., then I need the buttons to stay on the semi-transparent blue color it is whenever in the 'hit' state. [note: NOT pictured above.]With the way the buttons are currently set up, and with wanting to use scripting to get them to interact with the thumbnail gallery, it will have to be some miraculous code to tell that button what color to stay as whenever its clicked, and of course it going back to white when another button is clicked.
 
Conclusion:Since this is an Adobe Forum I would like to make a few additional statements in hopes that the developers, etc. may take heed.Adobes products are not cheap, and when I went to purchase the websuite I went in as a designer needing a program as not to need to program.I understand the flexibility that coding gives, but something as simple as linking buttons should not be in the realms of rocket science.

stop();
fscommand(allowscale, false);//keep SWF display at 100%

var x:XML = new XML ();//Define XML Object[code]....

View 31 Replies

Actionscript 2 :: Clickable Links In A Scrolling HTML Enabled Dynamic Textfield In Flash Movie - Works In Flash Pro Not In Browser?

Dec 13, 2010

I have developed a rolling credits style movieclip in Flash using Actionscript 2. Text is loaded from an XML file and parsed into a dynamic textfield. This text includes hyperlinks to webpages defined by a url node in the xml so Flash can add the appropriate a href to the dynamic text field and make the link clickable.

In my first attempts to do this the textfield stayed still and all the links worked fine both testing locally and when I run it in a browser on my website.Then I wanted to make things move ... which I achieved easily enough and tested locally (from within Flash Professional) and the links remained clickable, a browser window opened and the webpage i was expecting to see opened... great

However, when I export the swf, upload it and run it from my website suddenly the links are not working. So I tried to test the movie in a browser from Flash Pro - same problem, it must be something to do with Flash Player and the moving dynamic textfield.

a couple of observations - the cursor will change to a hand icon when over the links as you would expect, and if I right click on the link and click open in a new window the link works ok, just not when I left click. If I stop the scrolling then the links become clickable again, it is only when the textfield is moving... actually its not technically scrolling, im moving the whole textfield.

View 1 Replies

ActionScript 3.0 :: Movie Clip ROLL_OVER Only Works Once But MOUSE_OUT Works Infinitely

Apr 11, 2011

I have a movie clip (with instance name rectangle_mc) on the stage. Within this movie clip there are two separation animations on the timeline. The ROLL_OVER animation starts on frame "over" and the MOUSE_OUT animation starts on frame "off." If I roll over the movie clip, the initial animation plays, and when I mouse out the other animation plays to restore it to it's initial state. However, once the rollover animation has played once, it will not play again when I roll over it again, but for some reason the MOUSE_OUT plays every time.

[Code]...

View 1 Replies

Flex :: Scrolling Interval In A Spark List With Tilelayout Oversized While Using Mouse Wheel After Scrolling With Mouseclick

Aug 27, 2010

I have a spark List with an item renderer and a tile layout. If I scroll by clicking with the mouse on the scroll bar and trying to scroll with the mouse wheel after that, there is a problem: The interval of the scrolling is oversized, instead of scrolling one item down (or up) the List scrolls 4 items down (or up).

[Code]...

View 1 Replies

Flex :: Event When The Scroller Starts Scrolling Or Ending Scrolling In 4.0?

Feb 10, 2011

are there any events that the scroller will dispatch when being scrolled?

View 1 Replies

ActionScript 2.0 :: Scrolling Mc Not Stop When The Movie Clip It's Scrolling Ends

Jan 11, 2010

Im making a scrollable mc. Easiest thing in the world.... but the damn scoller just will not stop when the movie clip it's scrolling ends. It stops....eventully... but not close enough. What actionscript do I need to use and where do I put it?

View 1 Replies

ActionScript 1/2 :: Vertical Scrolling Menu / Seamless Scrolling?

Nov 13, 2009

I have created a vertical menu that scrolls through menu items in a movie clip.There is a big white gap when the movie clip runs out, and it snaps back to the beginning.I would like it to scroll seamlessly, having the end join up with the beginning again without any space.I would like it to scroll to one end of the list and STOP, and scroll back the other way and STOP - without any white space.URL...

View 1 Replies

ActionScript 3.0 :: Textfield With Easing On Scrolling And Mousewheel Scrolling?

Mar 26, 2012

How do I do a easing effect on scrolling and mousewheel scrolling in a Textfield?

Something like this [URL]

View 1 Replies

ActionScript 3.0 :: Scrolling Flash Pane On Scrolling WebPage?

Jul 1, 2008

This is a repost, but I've still not figured out a solution. I have a Flash movie that appears on a webpage. The Flash contains scrolling content ( scrollpane, text field, whatever).

The containing webpage is tall, and therefore also has scrollbars. My Problem: When users try to use the MouseWheel to scroll through my Flash scrolling data, the browser page scrolls as well. It's very annoying.

I would like to be able to have the MouseWheel scroll my Flash scrolling content when it's over the flash, but scroll the webpage when it's not over the Flash.

Does anybody know a way to supress wheel-based browser page-scrolling while my mouse is over a Flash movie??? Is there a way to eat/stop propagation, whatever, of the wheel event in the brwoser, either from Flash or from Javascript?

View 7 Replies

ActionScript 2.0 :: Scrolling Thumbnails - Not Scrolling - Involves Xml

May 4, 2007

I have been working on a site that will display a portfolio for a friend of mine who is a photographer. I want to have thumbnails that can be scrolled on the bottom of the page, and an area where the thumbnail is presented when selected. I have the thumbnails appearing. I have them loading, however, I can't get them to scroll when the mouse moves to the left or right of the row of images. he file can be viewed at...[URL] Here is the code I used for the slideshow:

[Code]...

View 4 Replies

ActionScript 3.0 :: Works On Mac Not PC In IE9

Oct 19, 2011

I have some AS3 code that reads multiple xml files.On a Mac it runs fine.On a PC it runs in firefox and chrome, but not in IE9.It loads and hangs. The code is rather complex, so I'd rather avoid posting it.I'm just wondering if people have had this happen to them, and what the issue was so I can get some ideas of where to start looking?

View 2 Replies

Event Only Works Once?

May 22, 2009

The problem is that the buttons only work once, after that the event listener isn'ttriggered (I think) I have no removeEventListener in my code for those events so I'm totally lost as to why is this happening.

stop();var correr:Boolean = true;Globals.vars.videoP = CM_player;SnowManInst.addEventListener(MouseEvent.MOUSE_DOWN, mudarVideo_SM);bananaKingInst.addEventListener(MouseEvent.MOUSE_DOWN,

[code].....

View 1 Replies

ActionScript 3.0 :: AS3 Works On Mac But Not Pc

Nov 10, 2010

I've been working on a flash animation with some actionscript 3, which basically is the main.swf that calls upon 5 other swf and txt files that I am embedding into a web template. It all works fine on my mac but when I test on a pc I am able to call upon the other swfs and it pops up but the close button does not work. I assume that it has something to do with my actionscript with the children swf. But just in case I will show both.[code]

View 2 Replies

Flash 10 :: Works In FP 9 But Not In 10?

Jul 7, 2011

This should work! I cant figure out why it doesn't. Fortunatley I discovered that it worked perfectly in Flash Player 9. But I guess it must run on FP 10, snice I was thinking to implement this in an AIR for Android application. On the stage I got a button with the instance name of: submit. In the library I have a MovieClip with the linkage of: radioButton. This MovieClip is just to frames with different grafics. It is supposed to work like a checkbox or a radiobutton.

[Code]...

View 2 Replies

IDE :: SWF Works Only On Firefox

Aug 21, 2009

I finished my website and uploaded to internet. And when I showed friends that use IE7, Chrome or any other browser besides Firefox it failed to work. The SWF gets stuck at the preloader at a certain percentage but the animation of the preloader still runs. Here is the link (try to watch from different browsers): [URL]

View 2 Replies

Flash8 :: XML Works, But Not In HTML

Jan 27, 2010

I have created a program that pulls large amounts of data from an XML file. The program works absolutely perfect if I test it in Flash or open it in IE. The problem I have run into is that when I put the program into a webpage using the following code (neither one works), it no longer connects to the XML file. Am I missing something in the code?

PHP Code:

<object width="880" height="800">
<param name="complete_bikes" value="flash/complete_bikes.swf" />
<embed src="flash/complete_bikes.swf" width="880" height="800">
</embed>

[Code]....

View 3 Replies

ActionScript 3.0 :: Evt.target.name Only Works Once?

Jul 8, 2010

I have a simple event listener which calls a functions which first uses a switch case statement to determine what evt.target was pressed by name so I can assign info there--presently I just have trace statements--the problem is that it only works once and then I just get instance29 and the switch case evaluates to the default.

Code:
lifering1.addEventListener(MouseEvent.MOUSE_OVER, playSplash,false,0,true);
function playSplash(evt:MouseEvent):void
{

[Code].....

View 21 Replies

ActionScript 3.0 :: TimerEvent Only Works Once?

Dec 3, 2010

I can only run a timer.start(); command once, the second time it will only run once instead of the value of 10 repeat.

Code:
var addTenPointsTimer:Timer=new Timer(500, 10);
var currentScore = 0;
score.text = "0";

[code]........

I want to be able to have the score add the ten points one at a time rather than all at once. It works fine the first time ten points are added, but the second, third, fourth, etc time it only adds one point then stops. How can I get the timer to work more than once?

View 3 Replies

Swf Works In Flash App But Not Online?

Sep 18, 2009

In The Flash Application, my gallery is working as it is meant to. Yet, when I upload the swf to the live site, the first image, text and movie of my gallery works but it refuses to scroll to the next item in my XML.
 
I have given it an absolute path to that server which works in Flash but not when it is online.

View 2 Replies

Roll Over Hit Button Works Only Sometimes

Feb 13, 2010

OKay, I have a drop down menu. Around the menu I have a button surrounding the outside, so when I roll away from the drop down menu and roll over the outline button, it is coded with action script to make the drop down menu fade away.

View 6 Replies

Professional :: 60 Day Trial Only Works Once?

Jun 26, 2010

I downloaded a 60 day trial of Flash Pro. I ran it once and it said that it was the last time I would be able to use it.
 
When I run it now I get a serial-number screen.

View 1 Replies

ActionScript 3.0 :: How XML Class Works

Aug 7, 2010

I have two questions about how the XML class in AS3 works.First, does the XML class care about the initial processing instruction when created from a string like this?:[code]Second, how can I add that procession instruction to an XML object that I am working with so that toXMLString() returns a string that looks like the above XML? (So that it includes the processing instruction.)

View 2 Replies

Professional :: SWF Works In Firefox Not In IE

Sep 30, 2010

Trying to recode map program to utilise modest map rather than original hand made map routines. Finished up yesterday and had squashed bugs pretty much(annoying flicker issue but that didn't appear on another web browser I figure it's flash/browser related issue). Then I realised I need to try this in IE as well. And it doesn't work. Map loads up so modest map code is working. What is NOT working is everything else. It's supposed to track locations and draw arrows to their positions.

It doesn't go to where it's supposed to initially. No arrows are drawn. No control buttons from HTML side work. Nothing. Zip. I have suspicion it could be the ExternalInterface which works differently on firefox and IE. Could that be reason? If so how does one go detecting what browser I am using and how does one need to take that into account? Or is there something else that's different between IE and firefox I need to take into account?

IE itself only gives rather mystified error message.
Message: Unspecified error(my translation since original is in Finnish)
Line: 49
Column: 5
Code 0:
[URL]
Funny thing is both php file and output html file is 37 lines long...

View 1 Replies

ActionScript 1/2 :: 2.0 Can Works On Android AIR ?

Oct 15, 2010

I would like to build an Android application with my game coded in ActionScript 2.0.The AS2 game is loaded by an AS3 loader and I build an APK with Flash CS5.The loader is displayed correctly but the AS2 doesn't work.

View 1 Replies

Professional :: Button Only Works Once?

Nov 25, 2010

Play animation and after clicking the button once it no longer works. The button takes you to the frame labeled "shake". I want it to continue to take you to "shake" each time it is pressed but its not.I've got a button inside of a movie clip - actually its inside of 2. The first MC runs through and stops on the stop(); frame and than you click the button that sends the play head to the frame labeled "shake" which plays the next MC with the same button inside of it. I have put the button's action on its own layer on the first frame. The length of that buttons timeline starting from the first action keyframe is the length of the time of the other 2 MC's.

The Code
mcButton.shakeButton.addEventListener(MouseEvent.CLICK, onClick);
function onClick(event:MouseEvent):void{

[code]....

View 5 Replies

ActionScript 1/2 :: Swf That's Embedded In Another Swf Only Works On First Run

Apr 10, 2011

If you go here and click on the animation link the skin at the bottom of the video is visible then fades away. If you navigate away from animation then come back the skin isn't there. I don't know why. Here's the code for the animation swf with the parts I think are relivern in bold:

[Code]...

View 1 Replies

Flex :: How Does Focus Works

Feb 17, 2011

I try to figure out how does focus mechanism work in Flex. Here comes the example of what I mean:Let's assume that we have a simple web application, which contains custom component that extends Canvas and implements mx.managers.IFocusManagerComponent. This component overrides focusInHandler and focusOutHandler methods and shows some feedback on how they are called (thinner or thicker border). This custom component also contains some Text.[code]

If you click once on a violet canvas it receives focus (focusInHandler is called), then if you click again the focus is lost (focusOutHandler called) - why?Of you click on a Text the Canvas receives focus (focusInHandler called) and keeps it when being clicked wherever on the area (focusOutHandler nevet called) - why?

View 1 Replies

Line Of Sight Works In 2d?

Mar 30, 2011

how the line of sight works in 2d? Which will be really help full for my 2d experiments. The experiment am working is a simple 2d simulation. Player move in the world from one place to other , my world exactly looks like this. I did the character movement successfully from one way point to other (A to G) , my goal is - when the character passes each point it has to perform some search in that area before it leaves to next point. To achieve I felt way point is better solution , can anyone help me on this.

Edit :

As soon as the player enters a room/checkpoint I will take user to next scene like this where the pickups are place some where on the canvas and my player have to collect them all and leave the area - Back to Map scene.

View 2 Replies

Actionscript 3 :: XMLSocket Works In WIN EXE But Not On SWF?

Nov 22, 2011

I'm trying to make a socket client in FlashAS3 for my socket server written in nodejs. I also have a mobile app client that communicates with it.

In AS3 I wrote some test code that works perfectly when I publish and run Windows EXE file but when publishing to SWF and opening in browsers it does not connect to server. Even all that "imports" do not help. The Code:

[Code]...

View 2 Replies







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