ActionScript 3.0 :: Blue Line Pointing To Dot Incorrect
Feb 25, 2012
Code:
button.addEventListener(MouseEvent.CLICK, myButtonAction1);
function myButtonAction1(e:MouseEvent):void {
for (var i:uint = 0; i < 9; i++){
var ray:RaySpark = new RaySpark(i*15)
addChild(ray);
[Code] .....
The blue lines should each be pointing at a circle, what did i do wrong?
View 1 Replies
Similar Posts:
Mar 15, 2009
[URL] If you look at the file above, you'll see a bunch of boxes. If you hover over the right edge of a box, it will glow green, if you then click and drag from that edge, what should happen is a blue line should extend from the box to the mouse. However, it doesn't. Furthermore, the endpoint of the blue line (which should be the mouse) is somehow related to the numbered box on the right in the middle. If you drag that box around, you'll see the behavior I mentioned above change. Here's the bit of code that draws that line:
[Code]...
View 2 Replies
Nov 6, 2009
I am stuck. I keep getting the same error I have been stuck on this for hours. here's my error: 1136: Incorrect number of arguments. Expected 0. here's my code: the error is supposedly on line 24 which is: volSlider = new VolumeSlider(this, volume_mc);
[Code]...
View 3 Replies
Oct 21, 2010
Does anyone know how I would load up a flex application and on load the application would open on a different tab within the application. The only thing I can think of is sending a parameter into the application to tell it where to go, but how does the app load that tab then?
View 1 Replies
Apr 7, 2008
I've developed a quick video player that pre-loads, auto-plays and then finishes with a frame at the end that allows the user to play the video again, but a recent discovery is that the video reloads as a user browses through a few fields on the site (represent via string at the end of the URL).
What I'd like is that if you arive at index.aspx it starts the video at the preloader, but if you then move onto index.aspx?ID=1234 it goes straight to the scene with the replay function. The AS I'm using at the moment in the first scene is:
if (_url == "http://www.mydomain.com/index.aspx") {
gotoAndPlay("Preloader", 1)
} else {
gotoAndPlay("Replay", 1)
}
but I'm getting nothing from it.
View 3 Replies
May 13, 2008
I have two domains pointing to the same swf. So I have domain "A" and "B" where my swf (site) is hosted at "A". Domain "B" loads site "A".
The swf loads some vars from a DB, when seeing site directly at domain "A" I have no problems, but when seeing with domain "B", my site just freezes....giving an error at the Browser and I have to close. This is for FF and IE.
At first I thought this was cross domain policies, so I have put at my swf the following code:
Code:
System.security.allowDomain("B")
View 7 Replies
Jan 25, 2009
I have a scroll component that I use to scroll through a long movie clip that loads a list of 3 text fields from an XML file (each item is called Li and some of the fields include a unique bID (b1, b2, b3 etc) pN, Da etc. on XML load I use a loop to populate the movie clip with the primary information fields creating a list of each <Li> Item in the list by showing the first three fields in that item. Now I would like to add a button to each item that allows the user to see the complete information in that list item. This button should either generate a new movie clip (or make a current one visible) and populate that new movie clip with information taken from said list item. What I don't seem to be able to figure out is how does AS3 handle this, how do I either generate or add a button that will know that if this button is clicked it should get the information from the corect XML list item.
View 2 Replies
Sep 16, 2010
I am working on our new website and have purchased an animated flash template. I have very limited experience of Flash and use Dreamweaver as my every day web tool.
I have modified most of the template but have a frustration with some animated buttons pointing to the same page even though I think i have programmed CS5 to point it to different pages. In the middle of each page is 3 boxes which have 3 Read me buttons... each should point to a different page.
[URL]
It has absolutely got me beaten. I have copied the buttons and their animations, renamed all elements of the button but something is clearly linking them together.
View 3 Replies
Oct 29, 2009
I have a quick newbie question (I just switched to AS3) : I have two clips in the library that are exactly the same in structure, just that the design changes. Two different characters lets say. Now, I'd like to apply a class to them, and that class is going to be 100% the same for both, how can i do to have the two clips pointing to the same class...? For the moment what I did is save my class with another name, but I guess it's a bit lame...
View 5 Replies
Aug 2, 2010
i have an mp3 player that works well but when i click on the loader bar, plays from that clicked part, time is also updated, but the scrubber is way to far from the that clicked part of the loader.how can i make the scrubber points exaclty to part when a user seek from the loader bar?
View 6 Replies
Aug 30, 2004
if you are loading an external swf to a target or container or what have you, can point it to a particuar frame or scene in that swf?
View 5 Replies
Jan 25, 2009
I have a scroll component that I use to scroll through a long movie clip that loads a list of 3 text fields from an XML file (each item is called Li and some of the fields include a unique bID (b1, b2, b3 etc) pN, Da etc. on XML load I use a loop to populate the movie clip with the primary information fields creating a list of each <Li> Item in the list by showing the first three fields in that item. Now I would like to add a button to each item that allows the user to see the complete information in that list item. This button should either generate a new movie clip (or make a current one visible) and populate that new movie clip with information taken from said list item. What I don't seem to be able to figure out is how does AS3 handle this, how do I either generate or add a button that will know that if this button is clicked it should get the information from the corect XML list item. I hope this makes sense?
View 2 Replies
Aug 30, 2004
i was curious, (cause this would help me a lot) > if you are loading an external swf to a target or container or what have you, can point it to a particuar frame or scene in that swf?
View 5 Replies
May 16, 2005
I have a dropdown menu that I'm learning to use from a tutorial. It's just a little over my head and am wondering if someone could help me. Here's my situation:
1) The menu has the title, DESTINATIONS. Submenu dropdown are a list of CONTINENTS. Rolling over CONTINENTS show COUNTRIES. This works.
2) Clicking on a Country should:
A) load an external swf into an empty movie clip :: Works!
B) go to the COUNTRY specific frame within that loaded movie clip. :: Doesn't work!
Here is a sample code from this menu, where it defines the fields that populate the menu:
var menu_0 = ['Destinations',['Africa#destinations1.swf|Rwanda#destinations1.swf |Uganda#destinations1.swf|Kenya#destinations1.swf| Madagascar#destinations1.swf|Botswana#destinations 1.swf',
'Asia#destinations1.swf|Japan#destinations1.swf|In diat#destinations1.swf']]
Could someone help me figure out how to direct the link in the menu in a specific frame in an externally loaded swf? I can do this on a 'normal' button using placeFrame, but because I'm unfamiliar with how this particular menu is made, I don't know how to implement what I know.
View 5 Replies
Dec 30, 2009
I have used the simple script below on several Flash animations to restart the movie by clicking on the last frame. It works fine, but does not show the interactive cursor (the pointing hand). How can I alter the code below so that the browser shows the hand when the visitor moves the cursor over the paused movie?
stage.addEventListener(MouseEvent.CLICK, function(){ gotoAndPlay(1); });
View 5 Replies
Sep 12, 2007
I'm trying to make a real simple flash menu, and I am using the "Squirrel Finder"-tutorial as a base. Problem is, when I trace my variables desc and swfURL they are correct, and the numbers on the buttons work fine as well, only when I click on the buttons all of them point to the last post in my XML, i.e., buttons 1,2,3,4,5 all point to swf 5.
Code:
function skapaMeny(menu_xml) {
var proj:Array = menu_xml.firstChild.firstChild.childNodes;
for (var i=0; i<proj.length; i++) {
var desc = proj[i].firstChild.childNodes;
var swfURL = proj[i].firstChild.nextSibling.childNodes;
[Code] .....
View 2 Replies
Dec 17, 2009
i have an xml file and i want my code in flash to read it line by line but its only showing the first line out of 5 lines.Below is the code:
var NigeriaNumber:Number;
var stateName:String;
var year:String;
[code].....
View 0 Replies
May 1, 2002
Way to stop the pointing hand cursor from appearing when the mouse rolls over a Flash button?
View 13 Replies
Sep 29, 2009
This is ridiculous. All I have is a blue box tweening across the screen, nothing else, and it is having all these intermittent distortion *blips* in the box as it tweens. Only 1% of my cpu is in use! Below is a link with a zip that has both the fla and swf. Could someone download it and tell me if it blips on your computer too? why I don't seem to be able to get a simple tween to work without getting distortion??
[URL]
View 3 Replies
May 17, 2009
How can I make this blue effect of lines? like in diablo 3 site
View 1 Replies
Jun 13, 2009
How would I create a blue html hyperlink in AS 3.0?
View 1 Replies
Nov 9, 2009
I need a blue box with "man" typed into it made into a MC. (can do that bit).Which when I move it around on a startDrag command needs to change to "woman" in a pink box when it encounters a hitTest with other stationary words on the stage.I obviously need to stopDrag when the mouse is released.Is this about an MC inside another MC?
View 14 Replies
Mar 27, 2010
I am a newbie with Flash CS4 and via a tutorial of Lynda.com I am trying to make my first website. With the exercise files of Lynda I had no problem, but with my own .psd file I am getting error 1061 after I tried to make a mouseEvent.I noticed that in the actions script the word "eventListener" stays black instead of changing into blue.
This is the action script:
Actionscript Code:
stop();//handle events for buttons...about.addEventlistener(MouseEvent.CLICK, clickSection);function clickSection(evtObj:MouseEvent){//trace shows what's happening... in the output window trace("The about button was clicked!")}
See attached screenshots for more info.
View 11 Replies
Mar 17, 2012
A blue box surrounds each individual line I make with the paintbrush. I'm on the final stages of an animation. I'm currently using Flash CS5.5. The problem with these blue boxes is that it treats it like a seperate drawing disabling me from filling the the object in with paint bucket, however it does appear on the drawing it self. As a side note I've noticed it has labeled it has a drawing object, where as the other ones are considered shapes.. Is there a way to deactivate each thing as a drawing object
View 3 Replies
Sep 19, 2009
I want to know how to highlight any image blue, but just the image, not the square its in if you know what i mean.
View 2 Replies
Jan 27, 2009
i am interested in putting some blue screen filming into Flash to interact with theanimations on screen, i was wondering how to start going about this
View 1 Replies
Feb 20, 2009
I would like to link the red squares to the blue square in 3D with CS4 only (please no papervision or sandy...)I'm very closed to the solution but I still have a wrong z (visible when you move the mouse to a corner for instance)
[code]....
The main function is drawLines()
View 1 Replies
Mar 27, 2010
I am trying to make my first website. With the exercise files of Lynda I had no problem, but with my own .psd file I am getting error 1061 after I tried to make a mouseEvent. I noticed that in the actions script the word "eventListener" stays black instead of changing into blue. See attached screenshots for more info.
View 1 Replies
Mar 25, 2011
I'm the developer of ShellShock Live, a free online artillery game: [URL]
Everything has been running smoothly, but every once in a while for a period of 4 hours or so, hundreds of "VerifyError: Error #1026" will show up in my error log. Then, they will stop.
I looked into VerifyError and found that "The VerifyError class represents an error that occurs when a malformed or corrupted SWF file is encountered." The SWF on Newgrounds is just small loader SWF that loads the full game SWF from another site, so there must be a problem there. I'm stumped, because the game will run fine for days, and then just start getting these errors out of the blue, after no changes to either SWF.
View 1 Replies
Apr 24, 2005
How would i program this preloader. I want it to be all red rectangles and as it loads i want it to fade in the blue as it loads to 100%.
View 1 Replies