View Hit Spots From Multiple Buttons
Nov 6, 2009
is there a way to view all of the hit spots with in the project at the same time? I have multiple hit spots attached to various buttons and it would be ideal to view them all at the same time to ensure I am not overlapping.
View 8 Replies
Similar Posts:
Aug 17, 2006
Anyway i want to try load multiple movieclips using a for loop and displaying them in different spots.
Code:
for(i = 1; i < 5; i++){
createEmptyMovieClip(["target"+i] , i);
[Code]....
First of all , how can i change that "stub1.swf" to change its value like stub1.swf, stub2.swf stub3.swf etc. Also, it doesnt seem to create multiple movieclips; it only makes the one.
View 2 Replies
Aug 30, 2011
I'm developing a Flex/AIR application that's growing big, and some of the components need to be seen from different points of view (i.e Admin, Staff, User, Guest). I've seen myself placing code in those components to handle what the user can and can't see. But it's becoming unmanageable as the code and the roles grow bigger. I was wondering what's the best way to implement multiple views inside the components while keeping them as reusable as possible.
What I'm doing right now:
<mx:HBox width="100%" horizontalAlign="right" visible="{_view == TS_VIEW || _view == PRJ_VIEW}"
includeInLayout="{_view == TS_VIEW || _view == PRJ_VIEW}">
<mx:Button label="Agregar" click="button1_clickHandler(event)"
enabled="{_state != ADDING_STATE && !_loading && _canAdd}"/>
</mx:HBox>
View 2 Replies
Feb 22, 2011
i want to have the same movieclip showing up multiple times at different locations on the screen. i don't want to create multiple instances just cuz it seems less "efficient", so it'd be neat if there's a way to do this.essentially what i'm trying to do is have a the user see the same movieclip but with different things on top of the movieclips, and if the user does something to do the movieclip in one location (ie: click to change a tile in the movieclip), i want that to take effect in all locations.i could just add event listeners to each tile in all the movieclip to have the same effect independent of which movieclip you click the tile in, but i'm hoping i can avoid this.
View 1 Replies
May 26, 2010
I have a flex application in which I have a TabNavigator with multiple tabs and a datagrid in each of those tabs. I have bound s single array of data to each grid.
What I want to do is to bind each grid with a particular set of data in that array i.e. to distribute array contents among grids based on data type. For example items starting with letter A could be displayed in first grid, B in second, starting with C in third and so on. Hence you can say alphabetically distribute the data on different grids. The problem is that the data will be added randomly by the user.
To make one data array for each grid is not an option (due to design restrictions).
View 2 Replies
May 27, 2011
I have an application that takes the user through a set of steps, configuring a product, say about 10+ screens. With options to go back, skip to a certain point etc. I need to fade between these steps, and also have language switches available at any point.
I was thinking of using an MVC style pattern, having a master view that accepts a 'next view' and fades it in, removing the old.
It feels bloated to have 10+ separate view classes, using similar components for this task, so was wondering what other approaches there are that I should look into? or one that is suited for this kind of application
View 2 Replies
Jun 15, 2009
Here is the set-up.
I have a scene where there are 10 artist names. Each artist name is a button with a rollover image. The first artist name has an uploadMovie command in the timeline to show an image immediatly when the user opens the page.
_root.attachMovie("anne_01", "screen",1);_root.screen._x =417.9;_root.screen._y =135.7;
How do I unload that movieclip when the user scrolls over the nine remaining buttons? I know it is an unload command but I am not sure what the code should be or where I should put it. I have tried to put an unload command on the other buttons but I had no luck~
View 3 Replies
Jun 7, 2011
I've used JRab's example here [URL]... to add a header menu to my app. What I'm having trouble with is executing my functions from the header mennu. For example, my firstView is appHome.mxml. It instantiates a Canvas object that has an erase(). There is a button in appHope.mxml that executes the erase() on the Canvas instance. I'm trying move the Erase button out of my appHome.mxml and into my headerMenu.mxml but don't know how to execute the erase() on the Canvas instance. The first thing I thought to try was click="{appHome.myCanvas.erase()}" but obviously that didn't work.
I asked a similar question yesterday here: Flex executing a function on another view and I accepted the answer before I tried it. The problem is that the headermenu.mxml is not a child of appHome.mxml. They are both children of the main app.mxml. Secondly, the object that has the erase() is in a separate .as class I instantiate in appHome.mxml.
View 1 Replies
Dec 16, 2008
how one would go about adding hot spots (hyper links) in video - as it is playing; be able to click on certain items and be taken to that landing page etc...
View 3 Replies
Sep 21, 2010
I have a problem when making flash applications with more than one frame that has symbols placed on it in that I can't declare all of the event listeners for the objects at the same time and I have found that even if I put them all on the first frame, add the event listeners, then click through to the next frame then the buttons won't work on that frame.
Does anyone have any idea how I could solve this? I did consider myself a fairly competent AS3 programmer until I realised I had no idea how to handle this sort of thing. Solved: I initialised the clips from my external class and then addChild'd and removeChild'd them as I needed to and placed their x and y on addChilding.
View 2 Replies
Jan 13, 2005
Im trying to make a furniture dragging utility on these floor plans and i'm kind of stuck. I will have more than one piece of furniture (if u look in the library there is more) that i want to drag instances of from spots on the right onto the floor plan. the problem i'm having is that my dragging functions arent working/duplicating the clips properly. after the clips has been dragged on to the floor plan (duplicated and dragged there), it needs to still be draggable so if they decide to move it they can drag the duplicated instance anywhere they want it. the right side is like a "key" lets say, of available furniture and by clicking and dragging one out it puts it on the floor plan but the default instance still stays on the right.
i will also be adding a rotate function later for the dragged out furniture, i can figure stuff out later where is houdl be putting the rotation code.
[URL]
View 7 Replies
Jan 13, 2005
Im trying to make a furniture dragging utility on these floor plans and i'm kind of stuck. I will have more than one piece of furniture (if u look in the library there is more) that i want to drag instances of from spots on the right onto the floor plan. the problem i'm having is that my dragging functions arent working/duplicating the clips properly. after the clips has been dragged on to the floor plan (duplicated and dragged there), it needs to still be draggable so if they decide to move it they can drag the duplicated instance anywhere they want it. the right side is like a "key" lets say, of available furniture and by clicking and dragging one out it puts it on the floor plan but the default instance still stays on the right.
View 7 Replies
Aug 12, 2009
i have an if statement, an object will go to a new frame if multiple buttons are pressed
PHP Code:[code].....
now i want it so that if one condition is met the mc will goto frame 2, if 2 conditions are met, frame 3 and if 3 conditions are met, frame 4.i know i could do this with a lot of if statements but i have a lot of movie clips to use this code on, so is there any way to write an if statement that will trigger different options if multiple conditions are met?
View 4 Replies
Aug 28, 2011
I have a flash movie with 3 buttons I am trying to link relativley to pages within my site, I have one working fine but can't get the others to link and when I try it makes the one that is working, work no more..
Below's the code I am using for the one that is working;
import flash.events.MouseEvent;var getIndex:URLRequest = new URLRequest("../index.html");
//---Enter Button---\
[Code]....
View 5 Replies
Nov 24, 2009
I am using Flash CS4 with ActionScript 3 and I am fairly new at it. I am struggling with two things.
1. How can I start a movie clip while scrolling over a button? I know how to start a movie clip when a button is clicked.
2. How can I use multiple movie clips for seperate buttons?
[URL]
View 3 Replies
Dec 13, 2011
I have a map that I want to make in Flash with mouseover effect. Example map is here [URL] What I need?
1) When mouse is over the location pin it must show infobox. Yes similar what Google Places does. but with mouse over effect, not on Click. I was using Adobe Flash 5.0's default code snippets and got stuck after this code bolow... I'm new to Flash, sorry but learn very fast/
[Code]...
View 2 Replies
Feb 15, 2009
I am trying to add a single MovieClip in two different spots on my stage. I've added the first by using addChild but I have no idea about how I would also add the second. Basically, it's a button that the user interacts with using a keypress, but in two different spots.
View 3 Replies
Jul 28, 2011
I have a problem with my hittest
for(var i in _root.ferry.perimeter) {
var point = new Object();
point.x = _root.ferry.perimeter[i]._x;
[code]....
the problem is that the hit becomes true when the object isn't hitting anything for instance if the object was moving across the screen the hit randomly becomes true.I have another hitest in the same project which works fine.
View 0 Replies
Jan 5, 2010
I have a map with a list of items to the side. I want the list to work as buttons and highlight both the button and the particular image on the map... and when you click you link to a certain location.I also want to be able to MouseOver the map, have both the image on the map and the corresponding 'button' from the list highlight - but when you click, you go to a different location than if you would have clicked from the list.I have it set up - but something is conflicting. Here is how I have my code set:
Code:
BUTTON_ONE.onEnterFrame = function(){
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.nextFrame();[code].......
View 1 Replies
Feb 4, 2010
I am creating a stand alone DVD to be used with Flash player. I am wanting to add different videos that play with different buttons. The following is the code I have for the video to play when the corresponding button is clicked..... My problem is how do I get that video to "leave" and stop playing when another button is pushed to play a different video.
Educators_btn.addEventListener(MouseEvent.CLICK,clickEducators);
function clickEducators(evtObj:MouseEvent)
{
gotoAndStop("OE")
[code]....
View 2 Replies
Mar 25, 2005
I've done the fading grid tutorial at: [URL], but I was wondering if someone knew how to make the grid fade in diagonally from the left or right top corners (or bottom corners too) like this site [URL]. I also have another question with the fading grid, does anyone know how to make the grid fade in from random spots on the movie clip instead of the left to right, up to down, etc. way?? I'd really like to see that effect happen, if possible.
View 9 Replies
Feb 12, 2004
I thought this bit of code was pretty interesting - it is used to set up my "light organ" movie (see my previous post) to arrange the spots in a pattern resembling the seeds on a sunflower.
It's one of the few times where I've actually needed to use PI, E, and Phi (the golden ratio) in the same algorithm. So many magic numbers, so little time.
[Code]...
View 3 Replies
Mar 4, 2004
i was jus doin that fading grid tutorial for fun and i was wondering what i would have to change to have the grip fade in, in random spots. like instead of having it fade in like left to right or up and down. but to have it fade in through random spots.
View 1 Replies
Aug 3, 2010
I'm about to have to write a web page/app that will serve the agenda for circa 100 people on a page. One line per person, one column per day with 3 clickable zones in each cell. In HTML, the page is way complex for the browser to load quick and there is no possibility to click on a border between 2 cells to for example split an event that spreads among several cells. So I search an not too overkilling technology to render this kind of view. I begun with a PHP generated HTML page but the number of elements in the page make the mouse move jerky.
Moving to JAVA would give me better performances regarding the reuse of the generator of the view but it will still be an HTML page. So, here is my question: do you think that going forward with JAVA and its graphical capability is the simple solution or is Flash a better option for this part of a Web App? I'm afraid of the code I'll have to write in JAVA to handle the GUI presentation as well as the events generated by the 1000's cells plus borders of the page. In Flash, the graphical part seems simpler even if the actions handling is still huge.
View 2 Replies
Aug 15, 2011
I'm currently using RobotLegs with the Presentation Model pattern to develop a Flex 4 project. I understand that all business logic related to a View resides in the Presentation Model associated with that view, however, I am confused when it comes to View specific logic.For example, I have an indicator that needs to be positioned relatively to list items depending on which list item is selected. Is it acceptable in the Presentation pattern to put the logic that will position the indicator in the View and simply have that logic run in reaction to a selectedIndex property changing in the presentation model?The reason I am considering this is that since the Presentation Model does not have a reference to the view it is difficult to come up with an ideal solution for manipulating view components.
View 1 Replies
Mar 18, 2010
I am wondering how to make a 360º view bubble, like they use for Google Street View, but have no idea how to go at accomplishing this task... i have the string of photos that i attached in photoshop(so that if you connected the left to the right it would be a full 360º view).
View 1 Replies
Mar 8, 2011
I need a small help on Flex Line Chart. I am using FlashBuilder 4 and doing a simple application in flex. I am displaying a graph with 10 random values and based on the values i am trying to change the itemrenderer values like CandlestickItemRenderer and BoxItemRenderer. Now my requirement was, if the values are > 10 i want to show my chart with CandlestickItemRenderer else i want to show the remaining spots as BoxItemRenderer. I am failing to do this. Either i am getting all the shapes as BoxItemRenderer or CandlestickItemRenderer. i am sending the code as a text file along with this.
View 4 Replies
Nov 25, 2010
I am using Flash CS4 AS3.. When I open my browser "Internet Explorer 7" it opens normal. But When I open a link using the following Flash code it opens half in length and half in width. I need to click on "Maximise" button to view in full. How to solve the problem? It is our Intranet link.
PM3.addEventListener(MouseEvent.CLICK,PM3ClickHandler);
function PM3ClickHandler(event:MouseEvent):void { navigateToURL (new URLRequest ("http://engineering/history/thisyear/ceomessage.htm"));
}
I tried modifying the line as well. It also doesnt work.
navigateToURL(new URLRequest ("http://engineering/history/thisyear/ceomessage.htm"), "_blank");
View 3 Replies
Jun 13, 2010
I have one .mxml file (the Application) with a ViewStack (with 4 views) and a ControlBard, obviously I can change the views with it, but what I want to do is: in view #1 I have an image which I want to convert to a "hyperlink", so when I click it I go to View #2, is this doable? Also I would like to pass somehow some data (like a String) to that View #2 (lets say the it's a user avatar I click so I want to go to the second view which will show me his profile, that's why I need his name/id).
View 1 Replies
Sep 28, 2011
My problem is that when I try to pass an object from the navigator.pushView(view, dataobject), I can't figure out how to access the dataobject from actionscript. I can access {dataobject.property} from MXML easily, but I want to set a variable in the new view to the passed dataobjects property.
View 1 Replies