I am busy converting my online digital portfolio from AS2 to AS3. I have made a new .fla and placed within it only the elements that relate to my question, to greatly simplify things so it is easy to see what I want to do.Lets say I have 3 movieclip buttons, which do three things when hovered over :
1. play a shine animation
2. move slightly
3. cause a tooltip description to appear / fade in, somewhere else on screen.
When mouse moves off, the above 3 things revert to normal and the description fades out.These buttons serve to show a description of the relevant project in my projects folder (project1.html, peoject2.html and project3.html, for demonstration purposes), and to link to them when clicked. The point is that I am trying to do this dynamically, so I have one movieclip(called descriptions) that contains all the descriptions each on its own frame, and use something like
//pseudocode
when button 1 is hovered over, descriptions.goToAndStop(1);
It is difficult for me to explain - but if you just run my swf and also take a quick look at my code (its not a lot) you will know exactly what I am trying to do.
In summary: Basically if you run my swf, you will see 3 buttons. When you hover over each, they are all saying Description 1, but I want button 1 to show description 1 and button 2 to show description 2 etc.Key items / code to look at inside the .fla are :
1. the first frame on the main timeline, actionscript layer - the code
2. the descriptionsHolder movieclip on the descriptions layer
3. the projectDescriptions movieclip inside the descriptionsHolder movieclip
4. the dynamic button (double click any of the buttons) - this is the idea I want for the descriptions too, its a reusable button that has the label 'button1' on all 3 buttons but with some code - the labels change at runtime to button1, button2 and button3.
5. the code inside the dynamic button movieclip on frame 1, actionscript layer.
6. note the buttonLabel movieclip inside the button movieclip, same thing I want done for the descriptions.
6. Also to please note, my code for linking each button to a project (not working)- that I also want to be a reusable function, for assigning a variable to contain the link for the dynamic button, depending on which instance of it is clicked -> go to either project1.html, project2,html or project3.html. I am trying to 'think like a programmer' and use modular, dynamic stuff, but it seems I am having trouble assigning variables or individual frames at runtime to multiple instances of the same dynamic movieclip.
I am trying to adapt Ruben Sweringa's Flex-based interactive mindmap [URL] and I've got most of it sussed out. I'm just having a little difficulty with the tooltips and I was hoping someone/some people might be willing to help me out or offer some guidance on these three things:
1) How and where do I set hideDelay to Infinity so the tooltips don't disappear? I think that because Ruben's model uses FXCToolTip and FXCHTMLToolTip to extend ToolTip and ToolTipManager, if I try to modify ToolTipManager.hideDelay in the mxml, the value is ignored.
2) Is there a way to enable HTML formatting in the tool tips? FXCHTMLToolTip looks like it's supposed to read this code, but whenever I add such coding, Flex says "Error: XML is invalid" and the whole mindmap fails.
I'm trying to prevent a custom tooltip from disappearing. I've tried three runs at this, borrowing from the usual suspects: Peter Dehann, MonkeyPatch and others. As you can see from the code below I'd like to stay within the tool tip paradigm and not go to popups.
way to persist a tooltip? The intent here is to have a component which can be cut and paste from.
I was able to get the links working as they should but i can find no way to get the hover effect (not even the doopingTextArea class) I have content coming in through XML (a list of words and link)... I'm trying to create a menu where when you rollover the word the entire background area of that menu item changes color. Just like a CSS menu that creates a hover state that fills the entire background area of that item. Since the content is dynamic, it would need to have a scrollbar that expands/contracts etc.
I am trying to have a link on a web page open up a flash video that appears to hover over the html. I have read web pages explaining parts of this but I cannot get it all to work together.
I am using swfobject to embed the flash object into the web page. I think I need to use javascript to handle the event of clicking on the button and then use z-index to have it appear to hover. Ideally the flash would center itself in the middle of the browser
I have a button that I use universally to show a hover state, so that the user knows the item is clickable. The hover state is a simple black stroke. Because the buttons with the timeline are of different sizes, I stretch the button to encapsulate the entire area I want to be linked. However, the stoke of the hover state is stretched too, so it's get thicker the bigger I make it. Is there any way to ensure the stroke is always the same weight?
i have a flash form and i have a calender and want to make the calender appear on hover of the button - the problem is i did not make the calender I only have the SWF file so i have to do a load event and then make the output on the calender go into the "date" section of the contact form.
I have flash which contains the map of the United States. Each state is a separate button. When each state is in hover mode, it changes the look/size of that state and adds names of the cities in white on the particular state.I would actually like to add 2 things to this flash.
1) When the state is hovered over, not only will the state change, but the cities belonging to that state (in the list to the right, will highlight)
2) I would like the city names in the list, when hovered over to highlight and to activate the hover mode of that particular state. In addition, that cityName button in the list and the state button should be able to direct to a URL upon hit.
I currently have each state as a button with each state's hover mode changes.I will be changing the cityNames into buttons (they are currently MCs).Once I change the CityNames into Buttons, then modify their hover modes to look like a highlight, then I know to do the following for the URL direct:[code]One of these will go on each text cityname button. But how do I tell the button to also activate the NewYorkState_btn into hover mode?I will also need each State image button to automatically arrange to the front when they are hovered so that they will not be overlapped by other states.Also, What do I do to get each state to hover and simultaneously highlight the appropriate CityName button(s) in the list?I have included an image below (FLashMapHover.jpg) so that it is a bit more clear what I am trying to do.
anyone who takes the time to read and answer this post. I'm having an issue on a file that I'm working on at work. The basis of the project is that its an image of a map, with windmills on certain cities. When you rollover the windmill various things happen. The turbine starts to spin, information about the project in that city shows up in dynamic text boxes, etc.
Anyway, I have one movie clip for the windmill with actionscript (that makes the things mentioned above happen) on the actual symbol, so I do not have to create different movieclips for each city. However, due the way this works, when your mouse touches one of the blades of the windmill turbines, the turbine spinning animation stutters. This happens because when the turbine moves it causes your mouse to rollOut of and rollOn to the windmill rapidly.
It seems that I need to create a hit state for the windmill that is smaller than the bounding box for the entire movieclip. I'm unsure how to do this since the on(rollOver) and on(rollOut) states of the movieclip prevent me from being able to place that type of actionscript on the actual hit state (which would be inside of the movieclip). I could easily just take the actionscript on the main movieclip symbol and put it on JUST the hit state inside, however, I would need 60 different movieclips of the windmill for each city if I did it this way.
Is there any way that I can define a hit state that is smaller than the bounding box of my movieclip button, so that I do not have to create 60 different movieclips? I forgot to mention: Unfortunately since I'm doing this for a client at work, I can not post my file up anywhere to show. So if you need any more information or I was not specific enough please let me know. Also, I can post my code if need be.
I am creating a project and I want the user when they hover over my button to have a song play, when the user leaves the over state, the song stops, I can't seem to get it to work. Here is what I am doing, I have my button, inside the button on the over state I nest a Movie Clip, inside of that I bring in the song, in the properties I set it to "Start" and "Repeat x 0".
When I load the SWF it automatically plays.I've tried adding some AS3 to it but I can't seem to get it to work. like "stop();" which did nothing.I did some googling and found "SoundMixer.stopAll();" which does stop the song from loading on start.
I have this code about navigation using movieclip buttons. I just made the currently selected button disabled when it is in the current page but I just cant figure out on how to maintain it in its hover state (It keeps on returning to its normal state).
Here's the code I've written on the first frame on the main timeline(scene1), I have 4 buttons namely mcButton1, mcButton2, mcButton3, mcButton4 and 4 labeled frames, page1, page2, page3 and page4.:
var page:String; var btnArray:Array = [mcButton1, mcButton2, mcButton3, mcButton4];var pageArray:Array = ["page1", "page2", "page3", "page4"];
I have created a sliding rollover panel so that a user can hover over an invisible button to reveal the panel itself. The panel itself is under a movie clip which basically motion tweens the panel to slide in and out effectively. Then there is the panel_mc inside the movie clip which contains an img. The one panel can slide out but for some reason cannot slide back, even when you rollover the button(popUp_btn)!!!! The compiler errors does not even display this error!!!
Here is the code for the main AS timeline in the site: stop(); panel_mc_arrangement.panelInner_mc_arrangement.popUp_btn.addEventListener(MouseEvent.ROLL_OVER,rollFarrange); function rollFarrange(event:MouseEvent):void{ if(panel_mc_arrangement.currentFrame <<2){ panel_mc_arrangement.play(); }else{ panel_mc_arrangement.gotoAndPlay(20); }}
I would like to display an items description when you "roll over" the item with the mouse (you know how a little box pops up under the mouse icon). Is there a way to do this?
I want to find a relatively easy solution for deep dynamic linking within flash. There are plenty of tutorials out there, so please don't jump to the conclusion that I haven't done a search. What I am looking for is a tutorial that should theoretically be easy to follow for someone who is a non-coder.
on my stage are 5 buttons, each with the name of a product. i want to be able to hover over each product and see a Description of the product with a "learn more" link at the bottom of the description. the problem is that i want the Descriptions for each product to appear in the exact same place.
if the hit area of each button covers only the button itself, you can't click the "learn more" link because it disappears when you move off the buttonif the hit area of each button covers the Description area, the hit areas overlap each other. this causes the Description to always show the same thing (i think it is the Description of the last button i added) if you are hovering over anything besides an actual button.
This might be straight forward, but I would like to know how could one link dynamic text boxes so that the information would flow? In a way, the information would flow from:
(XML) Input A into BOXA00, BOXA01, BOXA02, BOXA03, etc. (XML) Input B into BOXB00, BOXB01, BOXB02, BOXB03, etc. (XML) Input C into BOXC00, BOXC01, BOXC02, , BOXC03, etc.
I have a Flex app I built. It uses the BrowserManager class to listen for changes in the # part of the URL. When a change is made to the hash my application updates accordingly so you can link directly to a state of the application. Also inside my programming when a user clicks something, all I do is use the BrowserManager to update the # and then my listener will apply the correct changes once its finished. I believe this is the best practice way to doing this in Flex.
I have some issues though. When using the Back button in FF or IE, it gets "stuck". for example if the hash is like #state4 clicking the back button will take you to #state3 then #state2 but sometimes get stuck where you can be on #state3 click the back button, see it flicker to #state2 real quick then change back to #state3 preventing you from going back any further in your history.
If you compile a Flash project into a .swf file and that project refers to another .swf file, is it linked statically or dynamically? That is, is the second .swf file contained physically in the first .swf file or does the first .swf file refer to the second at run-time?
I do have a mc with a dynamic text box in it, this dynamic text box is linked to an texternal text file where I have the text I wanted to be shown in my mc when I publish the movie.
When you see the text in the movie I want to be able to use part of the text as a button to redirect the timeline to another scene and exact frame. For the moment I try everything I could but no luck.
This is the script I have in the text file for the monent and is redirecting to frame 11 in the same mc.
I have the button tracing "this.digit" which is the number assigned to each button, can't make it link to the content. Do i need to "push" the number to an array...or similar?
Yesterday I spotted what seemed to be a minor issue with having a linked image in a dynamic textField. Basically, this doesn't work as expected: HTML Code: myField.htmlText = "<a href="[URL]"><img src="image1.jpg" /></a>"; You get the hand cursor when you mouse over the image, but clicking does nothing, unless you inadvertantly click an invisible 1px border around the image.
I've tried: Loading an external image (<img src="images/image.jpg" />) Loading a bitmap in the library (img src="myImage" />) Loading a movieclip from the library (img src="myMC" />)Using textField.getImageReference: myField.htmlText = "<a href="[URL]"><img src="image1.jpg" id="myImage" /></a>"; var imageButton:DisplayObject = myField.getImageReference("myImage"); imageButton.buttonMode = true;
But absolutely nothing works. All of the data being loaded is from a database, and I've got a couple of lengthy methods in mind that I could use to dynamically attach movieclips with link references, but it involves edits to MySQL, the XML output and a couple of PHP files, as well as the AS.
After a creating a new test file from scratch, it seems that the real culprit is when you embed a font into the textfield. I initially tested a new textfield with absolutely no formatting and the linked image worked perfectly. As soon as I added a font to the library and embedded that into my textfield, the link stopped working.
I have a dynamic textfield which i fill with HTML-text from an XML-file. This exceeds one page, and I would like to print it on several pages. How can I do this, when I use printjob.start it only prints one page...? And is it possible to track a word that is clicked? (to use as a link to other pages..)
What I would like to do is add a paragraph of text describing each photo in a different text field. Im not really sure how I would do this. I assume I would add another txt field in flash and set it to dynamic. I would then give it an instance name. Im not sure how I would implement it into the xml or AS though. I know its quite simple but ive been trying for awhile now.
ActionScript Code: function loadXML(loaded) { if (loaded) { xmlNode = this.firstChild;
I used this code, from "Creating Websites for Dummies" to create a video playlist. The only problem is that it (the book) doesnt show how to load descriptions for the video thumbnails (saying the title etc...of the video). I cant work out how to attach a dynamic text field to each thumbnail that reads its description from an xml file, can anyone give me some pointers or explain how this is done? I've been stuck on this for a few days now and i cant work it out..
in the code below 'main' refers to an attribute in teh xml file.
Code:
ar nc:NetConnection = new NetConnection(); nc.connect(null); var ns:NetStream = new NetStream(nc);
im currently making a quiz with different questions and im trying to link the questions dynamix text to a xml or txt file heres an example for one question:
on my answer timeline i have for the buttons (one frame per question):
I have used the Scrolling Dynamic Text Tutorial and it works great. I have a url in the file that I want people to click on to launch within the movie. My problem is I can not figure out the code to do this.
Action Script code loadText = new loadVars(); loadText.load("league.txt");