Sticky And Malfunctioning Buttons - Works Not All The Time
Apr 18, 2010I have these navigation buttons (code below) and only some of them work and not all the time.
[Code].....
I have these navigation buttons (code below) and only some of them work and not all the time.
[Code].....
/* _parent._parent._parent._parent.rackImage.loadMovie("test.jpg", rackImage_mc) */ works fine the FIRST time, but not the second time.
is it deleting the variable /* var rackImage */?
function rackBtn (item) {
_parent[item+"_mc"].onRollOver = function () {
[code].....
im working on a zoom/pan gallery and i have a problem that i can't solve.URL...the pan buttons are not working but the zoom and reset buttons works. im working on movie the image using the mouse now, if you will hold the image and move it it will drag it on stage.the image is a loader the loads and image and placed on screen.there is a mask on top of it and a frame that indicates the size of the gallery.when the user pan the image loader content i want it to stop as soon as it gets to the gallery frame,but i cant seem to find the best way to do it.so basicly when the image is in 100% i dont want the user to be able to drag it but after you zoom the user will be able to drag it but only to the edge of the frame so there wont be any white spaces.i tried a lot of different ways to do it but all of them are complicated and not working the way that i want them to work.
View 2 RepliesI'm looking to make my MC's (acting as buttons) more sticky.What I mean by 'sticky' is to enable Rollover effect to hold if the user tries to click on the link within what is revealed onRollover (in my example it's 'sub-inline text link')Currently. The hit area of the MC's do not allow me to mouse over those links within. I can't simply enlarge the hit areas of the MCs because they will ultimately be tightly spaced from one another.
View 4 Repliesim making a flash upload thingy for my site, it has options to set the expiry time of the file, each time has a button which needs to be made from an array (which comes forma php script, not really relevent)... here is my code..
ActionScript Code:
if (vars.options == undefined){[code]....
i know the x values are too small but they should still all appear on the stage right ?, only the final item in the array appears...i think i might be replacing the previous one with the new one.
The following script works 70% of the time. I don't have a clue as to why.
In a child MC for a button
Code:
_root.msgReveal(thisLocation+".Remove", true, false, true, "msgHide", false, thisLocation+".Remove");
Root
[Code]....
I need to do a horizontal menu with a sticky element.It looks like that :[URL] If the mouse is rolled over the menu item, then the yellow thingy slides above the section name with easing. I have seen it somewhere on the internet, but couldn't find how to do it on the forums.
View 2 RepliesI have a function that draws a rectangle on the screen (see createInfoPanel())While drawing rectangle, I am adding 2 text fields on it.But as you may guess, it is adding those immediately. I want to delay adding these text fields, then I want to remove these panels after a while. The problem is, when I set an interval or timer, they won't work after I using once (I had to stop them by clearing/removing, it didn't set them again).Since my panel is being created each time image changes, I need them to work every time image changes.
So, I have 2 questions:1- How can I re-set interval each time my createInfoPanel() function works? It won't work anymore after setting and claring once. 2- You can see infoPanel.addChild(titleField); line in addInfoPanel() function. How can I work a smooth animation here? I mean, text appears slowly?
[Code]....
Here's the code I'm using to call the preloader and call the movie. I got this basic code (now modified for this example) from a nice person on this forum. I put it into different frames that a user's click would activate - and therefore download the jpg into that frame.That works after the user clicks into each frame. BUT ON THE FIRST FRAME, it doesn't work. The code just like this below DOES download the movie, but doesn't launch the preloader.
stop();
_level0.containerMC.loadMovie("HTTP://www.yoururlhere.com/yourimage.jpg");
/* movie loads */
[code].....
I have a box ("bg_box") that I resize and move up and down using the tween class based on what button you select. Once it is resized the text ("textBox") for that box fades on. It works fine on all the other buttons except for one! I added in a scrollpane with a strip of photos ("gross_scroll") on the button that doesn't seem to want to work. It is just a basic _alpha tween so I am not sure why that would cause a problem.
The weirdest thing is that it only has an issue the first time the button is clicked. It skips the tween and just jumps right to the size and position it should be. Once you click on another button and click on the troublemaker again, it works just fine.
Here is my code:
Code:
easeType = mx.transitions.easing.Strong.easeOut;
var box_start = bg_box._yscale;
var box_end = 100;
[Code]....
I know the event "show" works for View stack i.e. I can use this event (capture it and do some processing) to know whenever my view stack child gets displayed in screen. But when I am trying to use the same event for a child of a state it doesn't work (i.e. breakpoint set at its event handler never gets hit). Similary, creationComplete only works when the screen is visited for the first time.
View 1 RepliesI have a function that draws a rectangle on the screen (see createInfoPanel())
While drawing rectangle, I am adding 2 text fields on it. But as you may guess, it is adding those immediately. I want to delay adding these text fields, then I want to remove these panels after a while. The problem is, when I set an interval or timer, they won't work after I using once (I had to stop them by clearing/removing, it didn't set them again). Since my panel is being created each time image changes, I need them to work every time image changes. So, I have 2 questions:
1- How can I re-set interval each time my createInfoPanel() function works? It won't work anymore after setting and claring once.
2- You can see infoPanel.addChild(titleField); line in addInfoPanel() function. How can I work a smooth animation here? I mean, text appears slowly?
[Code]...
I have a repeater that populates a component, called 'project'. The project components are given an ID of 'wholeProject'. In all of my functions up until now, I was able to determine how many project components were made by doing the following:
wholeProject.length;
I used this in for loops, for each loops, and for changing the item settings within a project, i.e. something like this:
wholeProject[i].studentName = "Billy Bob";
However, I'm creating a new function that does not seem to like this wholeProject.length reference. I'm using it within the same level as all the others (i.e. the parent level). So far, my function is simply this:
public function getStudentYears():void
{
Alert.show(String(wholeProject.length));
}
when the application loads, the alert message simply does not appear. If I change the alert to something like this:
Alert.show("This is just a test.");
it works just fine. But for some reason, the wholeProject.length doesn't work in this function whereas it does in all my other ones.
I wrote earlier about this InterpolateColor class that I have just written... now I am wondering about why I seem to only be able to use it on one object at a time and not on two objects at the same time.I want to use it to increase the brightness on my background image, while at the same time decrease the brightness on my navigation link text. It works on either one if done alone but when they are done at the same time, only one executes.
My InterpolateColor class:
ActionScript Code:
package com.bee.utils
{
import fl.motion.Color;
[code]....
The code in my controller class:
ActionScript Code:
InterpolateColor.tweenBrightness( background, .8 );
InterpolateColor.tweenBrightness( footer.navControls, -1 );
I'm making a Flash game where the player throws balls of mud at objects in the sky. I'm using Box2D to model the physics. I don't want the ball to bounce off of objects (apply a normal force); instead I want it to impart its momentum on the object it is striking (like a movie-style shotgun blast).
View 1 RepliesI am new at flash CS4. (Upgraded to Flash CS 5 but this gives other problems in the meantime I continue with CS4)I have created webpage. Within the web page I have created Motion Tween with Motion editor and once previewed, it works fine. Going back to the stage and previewing the result shows the initial position of the Motion tween but it doesn't move and behave the way it shoud. What's missing? Where am I going wrong?
View 9 RepliesI have the code that works for one button to find a cue point but how can I make this work for several buttons and their respective cue points?[code]
View 3 RepliesI've got several buttons in a tween (graphic) and a few movieclips in two of the buttons. They all have the same code
[Code]....
but this code works only on buttons, not on movieclips.
I have the code that works for one button to find a cue point but how can I make this work for several buttons and their respective cue points?
seek-btn2" to find cue 2(named "lou2")
import fl.video.*;
// Video component instance namevar flvControl:FLVPlayback = display;var flvSource:String =
[code].....
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]....
I am using a magnifying glass effect in flash, but because my content and rollover buttons sit "inside" the magnifying glass, so they appear magnified, the rollovers dont work when you mouse over them because technically you aren't mousing over them, if that makes sense.
View 13 Repliesi used kirupa's [URL].. tutorial to create a movie with buttons that load external movies and works seamlessly.
my problem is that i want to do the same thing on the external movies that are loaded so to be able to load new external movies on top of them. it does not work and i know its because of the _root script that gets messed up when a new movie is loaded. it has to become _parent or smthing but i can't seem to be able to make it work..
Working on a website that has an image of a sticky note which will change text somewhat frequently (every month or so) as new "todo" items are created on it. Font I'm currently using is not Web Safe and the text is slightly angled to match the skew of the sticky note as well. Now I'm a pragmatist, and in situations like this I would normally cede defeat and opt for something more CSS/HTML practical. But no more! I'm falling a bit behind on what's going on with HTML5, CSS3, PNG graphics, Flash (ugh), and/or any other rich visuals. I'm decent with PHP/CSS/JS (jquery), have dabbled in Flash/actionscript too. My question is: what tools/method should I be looking at here? EDIT: I've switched to Comic Sans MS/Cursive -- pragmatism is fighting back furiously.
View 4 RepliesI am trying to make an interactive flash application that works by detecting mouse overs and clicks on various buttons/movie clips and then moves to the appropriate part of the time line. But I am having an issue when I use more than one addEventListener in any one frame. I have attached the code for one such frame below. When I comment out the addEventListner and the other code relating to the followBall function this works fine and directs the user to frame Inlet_Valve_Open_Frame but now only the followBall function is working and when i try to click on the Inlet_Valve_Button movie clip nothing happens.
I have never read all the help files on the adobe flash CS3 as i don't have time and i have built this code up based on examples i have found online. I wanted to include my fla file but it's to big 6Mb. But i have attached the swf so you have an idea what i am doing.
Code: Select allstop();
//1.
stage.addEventListener(MouseEvent.MOUSE_MOVE,followBall);
[code]....
I have an mc called "square", which is a square. It is placed in a grid, and follows the movement of the mouse. However, it stays in that square of the grid until the _x or _y of the mouse is half or more than halfway into the next grid square, so there's sort of a "sticky" effect.
View 4 RepliesI have an mc called "square", which is a square. It is placed in a grid, and follows the movement of the mouse. However, it stays in that square of the grid until the _x or _y of the mouse is half or more than halfway into the next grid square, so there's sort of a "sticky" effect.
View 4 RepliesI am new to Flash and am having an issue with a project I'm working on. I have buttons that are in frame 1-150. I wrote the code in frame 1, but expanded the box to frame 150 so they will work. However latter in the project I want to be able to gotoAndStop frame 150, but when I do the buttons no longer work. I changed it to gotoAndStop frame 1 and they work. Can you not link to buttons in the middle of the "timeline".
View 1 RepliesI have to make this analog clock for a university assignment and despite some really good efforts last night and tonight I just can't work out how to get it fully working. There is both a digital and analog clock; the digital clock works fine, but the analog clock just starts from a random time whenever I play the test movie. I am supposed to use the date object, not the timer object. And I am also supposed to add a sound every minute - I have added the sound to the minutes layer and selected but I don't know where to go from there. I seem to be able to find lots of example code for the timer object but not the date.
this.addEventListener("enterFrame",clockHandler); false, 0, true;
function clockHandler(e:Event)
{[code].....
I have set up my buttons so that are each a movieclip with 'over' and 'out' states/frame labels. They exist on the main timeline. The actionscript controlling them is situated in a frame on the main timeline and the frame holding that actionscript is on the same point within the main timeline where the buttons are introduced. I am using actionscript 3.
The buttons have been set up so that they navigate to another frame on the same main timeline and on that frame is a movie. The movie dimensions are smaller than the main stage so the buttons are still accessible when each movie is played. The problem is my buttons are only working once - by that I mean they go to the correct place when clicked the first time, but when they are clicked again they navigate elsewhere. Here's the code I used for the buttons...
[Code]...
I'm trying to make a multiplication game, with
123456789 as buttons on the left side
123456789 as buttons on the right side
my goal is to select 4 on the left and 7 on the right, and in the middle to see the result 28. but I don't know how to make 2 buttons to stay selected
if I press 4 on the left, it gets selected properly, and the effects show OK but if I press 7 on right, then 4 deselects, and I'd like 4 and 7 to stand out as selected buttons in the same time