Button "Over" State Not Working Within Visible MovieClip
Hi Folks,
My button states aren't working right, and I'm pulling my hair out:
http://www.miklas.org/test/test.htm
The desired behavior is under the "Design..." button--notice how when you mouseover the "Our Philosophy" link it turns blue? Why isn't this happening for the "What We Can Do For You" and "Our Process" buttons in the other movieclips?
The document is structured as follows:
MovieClip 1: Design: Your Silent Salesperson
---Text
---Images
---Button: Our Philosophy
MovieClip 2: Who Owns Your Brand
---Text
---Images
---Button: What We Can Do For You
MovieClip 3: What's Your Brand's Persona
---Text
---Images:
---Button: Our Process
DETAILED EXPLANATION:
I have three separate movie clips with a bunch of objects. Using AS3, I tween their alpha value from 0 to 1 to make them visible depending on a user mouseover. As part of each movieclip I have a button. It is text with an underline; made to look like a hyperlink. When the user mouses over the text, I want it to change color from orange to blue. This works on the first movieclip, but doesn't on the second and third! What's weird is that if I cut-and-paste the button from the second or third movieclip to the first, the over state works fine. If I set Control -> Enable Simple Buttons, the over state works fine. But when I export it to .swf, it doesn't work!?
tyvm!
OK I finally got it! My layers were indeed out of whack--the entire problem was solved by the"setChildIndex" function.
Basically, when the user mouses over the buttons, I fade in the new clip, and set the depth above the other movie clips. Here's the code:
buttons_movieClip.whyDesign_button.addEventListener(
MouseEvent.MOUSE_OVER,
function(evt:MouseEvent):void
if (active != whyDesign_movieClip)
fade(whyDesign_movieClip);
setChildIndex(whyDesign_movieClip,3);
setChildIndex(whoOwns_movieClip,2);
setChildIndex(persona_movieClip,1);
There is a black background at depth 0. The following forum post helped a lot:
http://www.smithmediafusion.com/blog/?p=435
tyvm!
Similar Messages
-
On load button "over" does not work until mouse moved
hello,
i have a flash menu that loads from another page. when it
loads, the users mouse pointer is over one of the buttons. (because
they just clicked on a button on the past page in that same
location). the button on the new page does not realize that the
pointer is over it until the user moves the mouse slightly, then it
switches to the "over" state. is there a way of letting flash know
that the mouse is over the button, even though the mouse has not
moved yet?
thanks!yes, it is a button component. is there a way of letting the
button know that the mouse is indeed over it, even though the mouse
has not yet moved? this is a problem on IE, but works fine in
Safari.
thanks -
Hi, I made a few buttons for my .fla and all the states are working but the hit state.
So just to see what the problem was I made a new button, which is only text at each stage, so for up i wrote up, down down etc,
all the states work but hit, what gives???
hit is after someone clicks it it should be at the hit state correct?Nope. Hit is the shape that will trigger a rollover/click area.
Normally the hit state is determined by the artwork in the up state and then the over state once you've rolled over, but sometimes you need to override that with an area different area. That is the hit state. But you don't need to put anything there.
Test it out. Make a circle on the other states and then put a larger square in the hit. Then check out how it works. -
Link to frame in button rollover state not working..
Hi guys,
What I use: Flash CS5 & Actionscript 3
So I had my buttons working just fine and linking to a frame. But after adding a rollover state in which my button has grown in size it no longer links.
Does anyone know how to get my buttons linking in their rollover state?var someObject:MovieClip; // this is declared - only
var someObjectMovieClip = new MovieClip(); // this is declared and instantiated
Make sure your code uses aghains and not instancename like your code shows.
I don't think you understand the third and fifth items I listed either. The third is saying that the code is not in the same frame as the item it is trying to target. The fifth has to do with objects in consecutive frames, not linking.
If you followed what I mentioned in the last sentence you should have a line number indicated in the error message that will tell you which line is causing the problem. Whatever line that is, the object doesn't exist as far as the code sees it. So if it was the line...
instancename.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_28);
I can guarantee you that there is no object named instancename in the frame where you have that code since it is the only object targeted in that line of code. -
On change of statement not working within loop
Hi all,
I am using on change of statement within a loop of an internal table. I am refreshing and clearing the header of internal table every time the program enters the loop. But the program is not executing the code within the on change of statement every first time the program enters the loop.
Please help me to solve this issue
Thanks,
RajanHi,
Please check the following code. On change is working correctly.
You have to sort the internal table on the basis of field you have use further for 'ON CHANGE OF'.
TYPES : BEGIN OF y_itab ,
number type i ,
END OF y_itab.
DATA: itab TYPE STANDARD TABLE OF y_itab.
data : e_itab LIKE LINE OF itab.
e_itab-number = '112'.
append e_itab to itab.
e_itab-number = '112'.
append e_itab to itab.
e_itab-number = '110'.
append e_itab to itab.
e_itab-number = '110'.
append e_itab to itab.
e_itab-number = '111'.
append e_itab to itab.
e_itab-number = '111'.
append e_itab to itab.
e_itab-number = '3'.
append e_itab to itab.
LOOP AT itab INTO e_itab.
on change of e_itab-number.
write :/ e_itab-number .
endon.
ENDLOOP.
Only on the first occurence of number,
code inside 'ON CHANGE OF' .... 'ENDON' will be executed. -
Case tatement not working within a cursor
I am having a problem getting the case statement to work within a cursor in a store procedure in our 2008 r2 environment. Below is the cursor that I'm referring too. Any suggestions would be greatly appreciated.
SET NOCOUNT ON;
DECLARE @part_id as int, @WAREHOUSE_ID AS varchar(80), @SAFETY_STOCK_QTY AS int;
DECLARE parts_cursor CURSOR FOR
select part_id ,WAREHOUSE_ID, coalesce(SAFETY_STOCK_QTY,0) from PART_WAREHOUSE where Part_ID in (SELECT distinct #FLINES03.Part from #FLINES03)
OPEN parts_cursor
FETCH NEXT FROM parts_cursor
INTO @part_id, @WAREHOUSE_ID, @SAFETY_STOCK_QTY
WHILE @@FETCH_STATUS = 0
BEGIN
CASE @WAREHOUSE_ID
WHEN 'AAA' THEN UPDATE #FLINES03 SET WHS1_SS_QTY = @SAFETY_STOCK_QTY WHERE #FLINES03.PART = @part_id AND #FLINES03.WHS1 = @WAREHOUSE_ID
WHEN 'BBB'THEN UPDATE #FLINES03 SET WHS2_SS_QTY = @SAFETY_STOCK_QTY WHERE #FLINES03.PART = @part_id AND #FLINES03.WHS2 = @WAREHOUSE_ID
WHEN 'CCC' THEN UPDATE #FLINES03 SET WHS3_SS_QTY = @SAFETY_STOCK_QTY WHERE #FLINES03.PART = @part_id AND #FLINES03.WHS3 = @WAREHOUSE_ID
END
FETCH NEXT FROM parts_cursor INTO @part_id, @WAREHOUSE_ID, @SAFETY_STOCK_QTY
END
CLOSE parts_cursor
DEALLOCATE parts_cursorCASE is an expression, not a statement. It means you can not execute code. You need to change your code to IF statements, e.g.
IF @WAREHOUSE_ID = 'AAA'
UPDATE ....
IF
UPDATE ...
Also, what is the purpose of using cursor? Can you provide the whole picture of what you're trying to achieve?
For every expert, there is an equal and opposite expert. - Becker's Law
My blog
My TechNet articles -
How to retain the button over state while scrolling over a Pop-up Menu
Are there updated instruction for Fireworks 8?
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_15926&sliceId=1I just wouldn't use those menus at all - there are much
better ways. Have
you considered them?
Check the uberlink and MacFly tutorials at PVII -
http://www.projectseven.com/
and the Navbar tutorial/articles at Thierry's place
http://tjkdesign.com/articles/dropdown/
Or this one (more recent article):
http://tjkdesign.com/articles/Pure_CSS_Dropdown_Menus.asp
Or to get it done fast, go here -
http://www.projectseven.com/tutorials/navigation/auto_hide/index.htm
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"turpya" <[email protected]> wrote in
message
news:f2ilfs$7gr$[email protected]..
> Hi,
>
> I am trying to work out how to retain button over state
while scrolling
> over a
> pop-up menu. By default the button changes back to mouse
out state, when
> scrolling over menu items for that button.
>
> I have tried to follow the advice in the below technote
(see link below),
> but
> it seems the instructions are incorrect.
>
> I am using Fireworks 8 - it appears the instructions are
for a prior
> version.
> I cannot find function fwLoadMenus() mentioned in Step 3
(number 6.).
>
> Has anyone accomplished this in Fireworks 8, that could
provide me with
> instructions?
>
> Thanks in advance,
>
> turpya.
>
>
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_15926
> -
Retain button over state with Pop-up Menu
Hi,
I am trying to work out how to retain button over state while
scrolling over a pop-up menu. By default the button changes back to
mouse out state, when scrolling over menu items for that button.
I have tried to follow the advice in the below technote (see
link below), but it seems the instructions are incorrect.
I am using Fireworks 8 - it appears the instructions are for
a prior version. I cannot find function fwLoadMenus() mentioned in
Step 3 (number 6.).
Has anyone accomplished this in Fireworks 8, that could
provide me with instructions?
Thanks in advance,
turpya.
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_15926I just wouldn't use those menus at all - there are much
better ways. Have
you considered them?
Check the uberlink and MacFly tutorials at PVII -
http://www.projectseven.com/
and the Navbar tutorial/articles at Thierry's place
http://tjkdesign.com/articles/dropdown/
Or this one (more recent article):
http://tjkdesign.com/articles/Pure_CSS_Dropdown_Menus.asp
Or to get it done fast, go here -
http://www.projectseven.com/tutorials/navigation/auto_hide/index.htm
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"turpya" <[email protected]> wrote in
message
news:f2ilfs$7gr$[email protected]..
> Hi,
>
> I am trying to work out how to retain button over state
while scrolling
> over a
> pop-up menu. By default the button changes back to mouse
out state, when
> scrolling over menu items for that button.
>
> I have tried to follow the advice in the below technote
(see link below),
> but
> it seems the instructions are incorrect.
>
> I am using Fireworks 8 - it appears the instructions are
for a prior
> version.
> I cannot find function fwLoadMenus() mentioned in Step 3
(number 6.).
>
> Has anyone accomplished this in Fireworks 8, that could
provide me with
> instructions?
>
> Thanks in advance,
>
> turpya.
>
>
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_15926
> -
my speaker is not working properly in 4s if i use headphone its working now my volume increase decrease button is also not working properly how can i solve it pl help me my warranty finished
Hello. I sent my WRT1900AC V1 to Linksys four days ago (Monday) via UPS with a RMA. Linksys paid the shipping and everything. The router is still in route, and it should arrive to their offices tomorrow. Once they receive the WRT1900 AC V1, they are going to send me an EA8500 as a replacement. But I have been reading the comments about the EA8500 here in the forum and it seems to have the same problems. I guess the firmware is extremely flawed in both routers (maybe it is almost the same code?). Anyway, I will try the EA8500 and I hope it works. I bought a temporary router from Walmart and I paid $35 for it. It is a Belink N600 DB. I can't believe that a $35 router is working a lot, lot, lot better than my previous $250 WRT1900AC router. Unbelievable. If the EA8500 doesn't work, I'm going to try and get my money back from Linksys, or contact The Consumerist or someone to get my money back and get a Nighthawk instead.
-
this is what my iphone 4 shows. iv tried switching off again and again, closing apps by double tapping the home button but still not working. please help.
is there any other method to download ios 6.1.2.
my phone is not being recognized by itunes on my new windows 8. neither its working on touch copy.
kindly help.
thankswell in thatcase, i need another help .
thanks for your instant reply.
i have currently bought a new laptop (windows 8) and my iphone is not being recognized by itunes.
because i have no backup on my previous laptop, i downloaded touchcopy but even touch copy is not recognizing my iphone. -
Upgraded to os7 and done my updates on the apps as they appear.. Any function to do with the iBook store is not working or visible. The purchase at the end of a sample book doesn't work either. Anyone have a solution?
Upgraded to os7 and done my updates on the apps as they appear.. Any function to do with the iBook store is not working or visible. The purchase at the end of a sample book doesn't work either. Anyone have a solution?
-
Spotlight not working within program. Please HELP!
Spotlight not working within programs. Cannot not locate files on network volumes.
For example: if I am using Photoshop or MultiAd Creator Pro, and want to open a file, I will do File>Open and use spotlight in the "Open" dialog, and it doesn't ever find anything? I can see the files but if I search it fails to locate. Same thing happens if I try to "Place Graphic" In MultiAd and other programs. It appears to be a universal issue regardless of program.
I tried re-indexing spot light via the system preferences (privacy, drag in volume, remove volume). I also tried re-indexing via terminal.
I tried mounting the volumes via afp, smb, cifs and nothing works!!
This issue is handicapping production.
Anyone??
Thank you in advance RRSpotlight alternatives.
EasyFind – Spotlight Replacement
Find Any File -
Applet work well in appletviewer but do not work within browser
hi, i created an applet that works well in appletviewer,but it does not work within a firefox browser, it issue a message: java.security.AccessControlException: access denied (java.io.FilePermission imgDir/vsam.jpg read). What can i do to solve this issue please ?
sign the applet, use doprivileged and trust the applet when you open it.
Use htmlconverter in jdk/bin folder to convert you applet so it uses
object tag instead of applet so IE won't try to run it with msjvm.
Signing applets:
http://forum.java.sun.com/thread.jsp?forum=63&thread=524815
second post and reply 18 for the java class file using doprivileged
Still problems?
A Full trace might help us out:
http://forum.java.sun.com/thread.jspa?threadID=656028 -
Why isn't my back button in Safari not working? I am constantly resetting Safari.
Why isn't my back button in Safari not working? I am constantly resetting Safari.
Cheryl...
Go to ~/Library/Caches/com.apple.Safari
Move the Cache.db (or ApplicationCache.db) file from the com.apple. Safari folder to the Trash.
Restart your Mac. Launch Safari. Try the back button.
~ (Tilde) character represents the Home folder. -
What to do now when my iPad won't turn on after I turn it off. It shows only the apple logo. I am sure it has above 70% charge as when I sync my iPad it shows necessary detail in iTunes. I have tried, HOME & POWER button, but did not work.
First try a Reset ( No Data will be Lost )
Press and hold the Sleep/Wake button and the Home button at the same time for at least Ten seconds... (But can take Longer)... until the Apple logo appears. Release the Buttons
If no joy... Try a Restore...
1: Connect the device to Your computer and open iTunes.
2: If the device appears in iTunes, select and click Restore on the Summary pane.
Restoring > http://support.apple.com/kb/HT1414
Make sure you have the Current Version of iTunes Installed on your computer
iTunes free download from www.itunes.com/download
3: If Unable to Restore, try using the Steps in this article to force the device into Recovery Mode.
Note on Recovery Mode.
You may need to try this More than Once... Be sure to Follow ALL the Steps...
After you have Recovered your Device...
Re-Sync your Content or Restore from the most Recent Backup...
Restore from Backup > http://support.apple.com/kb/ht1766
Maybe you are looking for
-
Settle Production Variances to COPA- Cost elements and Value fields
Dear All, I know this question has been discussed in the past, but I have one specific doubt regarding this topic.: When assigning cost elements to variance categories in t-code KEI1, how do we figure out what combination of cost elements (in the top
-
Web Gallery Slide Shows: Music and Captions an option?
The title sums up the question. Can web gallery slide shows (on my .Mac account) be made to look and sound like the slide shows i'm running in iphoto - with captions and audio?
-
I'm trying to use Mail Merge to fill in an Adobe PDF form with information from an Excel spreadsheet. I'm reading some stuff that says Adobe Acrobat Professional has such a tool. Does the Acrobat Standard have this capability? Is there a free downlo
-
Where can I buy a new ATT sim card?
I just got a new iPad 3G in Mexico and would like to buy an ATT sim card to use it in the USA to avoid roaming charges while in the US. Can I buy an ATT sim card? where? Regards, JGarcia
-
Percentage Display in Query Desingner
Hello, following scenario makes me crazy: Column A = 10 Column C = 20 Column E = 70 Column G = 100 as overall result. Result should be: Column B = 10% Column D = 20 % Column F = 70% It shows always X. The result should be row by row. I tried percenta