When I embed a swf it does not function the way it does when not embeded. I don�t no what the problem could be. Here are the links and source code below. The scroll bar on the bottom does not function and the 360 click and drag of the photos does not work.
Code: //******************* Scroll Functions for Large Images ******************************* var maxSpeed:uint=50;
I am writing a large elearning course using flash.As a break for the student, I want to include a breakout game on one frame. I tried loading the game (game01.swf) into an MC container. The game loaded but did not function correctly.Then, using the Timeline Select All Frames, Timeline Copy, and Timeline Paste functions, I copy/pasted the game layers into an inserted MC symbol. Then I pasted the MC symbol onto the desired course frame. The game still did not run correctly.
I have a simple loop that duplicates a movieclip. I have 2 frames within this mc and I am trying to play frame 2 when mouse roll over. I am trying to add a mouse_over listener and keep receiving an error: brief account of my code is:
Code: for (var i:Number=0; i<10; i++) { var item:NewItem = new NewItem(); item.name = "item" + i;
when I try and rollover the item I receive:
TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::Stage@36ccd089 to flash.display.MovieClip.at forloopas3_fla::MainTimeline/controlOver()
I'm developing a site that has different pages on different frames. My buttons work correctly, and go to the correct frame, however, if I press it twice, it jumps to another frame. I have the actions to stop at each frame and this is the code I am using for the navigation.
I have a series of MC's (ultimately about 55) which I'm performing some actions on when a user hovers over the MC.
Code: var items:Array = [ UnitedStates, Brazil,
[Code].....
All my variables and paths test correctly; but, when I test the swf, if I hover over _level0.item_0, _level0.item_2 is the MC that received the actions. As I add more MC's, it's always the last MC that receives the behavior. To clarify though, the _visibility and _alpha values do set themselves for all of the MC's. It's just when a user hovers over _0 and _1 that nothing happens to the clip being hovered and _2 receives the order to execute the tween.
I'm creating my first website. I've managed to create a homepage. On the homepage is a enter site button, which once it is pressed starts thetimeline... I have an actions/labels layer which I am writing my code in. On frame number 'one' is my code below.
stop (); enter_site_btn.addEventListener (MouseEvent.CLICK, buttonClicked) function buttonClicked (event:MouseEvent): void
The reset button on this file doesn't work. In fact I was puzzled about why it had disappeared and it is there but the wrong size (see large navy blue shape in the lower right hand corner of the stage?) When you click this shape you get this error:
ArgumentError: Error #1063: Argument count mismatch on AddATree2/onReset(). Expected 0, got 1.Not sure what that means because I can't find any arguments in this function.This should work so that the text and polygons disappear when the reset button is clicked so you can do this again.Here is the code and the fla is attached. (There are three files inline: Reset.as Tree.as and AddATree.as. See attached .fla AddATreePrototype.fla)
First off, I am new Second off, I hate action script it's a pain in the ass. Here's what im dealing with: Im making an info point computer program in flash cs3. After making several pages I am forced to make a navigation button to jump to the first frame(home).
At the home page you will be sent to several different pages (these links work just perfect. To create a home button i've made an button with the same code
Code: home_now.addEventListener(MouseEvent.CLICK,homeClick); function homeClick(event:MouseEvent):void{ gotoAndStop(1); } Unfortunate this does not work, while the links at the home page do work.
I've tried several things to fix it, but it won't do: - Send to tagged frame "home" instead of frame "1". - Change the instance name - Putt the actionscript in the exact same frame.
Weirdly enough the home button does work on the keyframe where it is placed, even though I pushed the frame over all the other pages it wont jump to home.
I'm working on an image viewer that contains 14 projects, each being their own external swf.I am determined to get a functioning invisible next button that takes you to the next image in the current project or to the next project if you are on the last frame in that project.The current code works well enough starting at any project and clicking until you get to the next. When the next project comes up it stops working.
next_btn.addEventListener(MouseEvent.CLICK, loadnext); function loadnext(evt:MouseEvent):void { if(firstswf != null) {[code]...
I have a movieclip in a scene that i want to target with the actionscript in the first frame. The movie clip is called up_btn and im trying to target a label called "over" within it.
I'm creating a project with a number of different sections. I've created a index menu with invisible buttons on that takes you to the different sections. This works fine. In each section I wonted a means to get back to this index, so created a index button that is present throughout each section. I've put the event handler in the actions layer on the same frame that the button instance is on (frame 15).
Note the button at the top called portfolio, on mouseover this button should loop through the "mouseover" label section, and when the user takes the mouse off of it it should continue to play through what it has started, and stop at the begining of the mouseover labelhen the user clicks on the button it should play through the "trans" label (only once) and begin to loop at the label section "current" when the user goes to another section, for example, clicks another button besides portfolio, the animation should stop on the label "visited" my code for it to loop looks like this (on the invisible button over the movie clip)
on (rollOver) { portfolioBtn_mc.gotoAndPlay("mouseover"); }
Note the button at the top called portfolio, on mouseover this button should loop through the "mouseover" label section, and when the user takes the mouse off of it it should continue to play through what it has started, and stop at the begining of the mouseover labelwhen the user clicks on the button it should play through the "trans" label (only once) and begin to loop at the label section "current" when the user goes to another section, for example, clicks another button besides portfolio, the animation should stop on the label "visited" my code for it to loop looks like this (on the invisible button over the movie clip)
on (rollOver) { portfolioBtn_mc.gotoAndPlay("mouseover"); }
I want to stop the sound loop from one button by clicking new button. Does anyone know the code that would stop one button's sound from looping by just clicking another button (for another sound)?So you have these buttons:button 1 button 2 button 3 button 4and after clicking "button 1" a sound loops. when i click "button 2" i want the sound from "button 1' to stop.
I am using Flash CS4 and AS3. Can anyone advise me why my links work perfectly well when I use "Test Movie" - and yet don´t function when posted on-line via Dreamweaver 4?
I've got the following code, I am trying to appendText to the same text Field (instance name = info). Problem is it seems to be ignoring the if statements and just outputs the last else string only.
I tried to create a simple progress bar by adding the ProgressBar component to my library, renaming it to "progressBar" and giving it an instance name of "progressBar" as well as adding the following code to my main class:
My XML isn't exactly doing what I want. It's putting a lot of 'undefined' entries in my Flash file and it's not updating correctly and I don't know why it's doing that.Top square is add entry to XML, button square returns to the 'room'.
This is my Script:
ActionScript Code: package { //Import Stuff public class AddQuestionMenu extends MovieClip
I built this site about a year ago for a photographer. I am on a Mac, and she just recently started complaining that the site doesnt work on her PC. She says that after the home page, and page that she goes to gives her an error message? I dont have a PC to look at. Could it be something with IE7 and my Flash detection script? URL...
Code: var cityArray:Array = new Array(); cityArray[0] = "southland"; cityArray[1] = "otago"; cityArray[2] = "westland";
[code]....
What have I done wrong? I'm trying to give each mc it's own number based on the name position in the array etc etc - It returns 18 for all of them when I click them one at a time.
I am having an issue in getting flash to call my PHP script and then get the variables back into flash once the PHP script has queried a mysql database. I have tried to chop things in the php script down to their bare essentials. I am new to AS3 so I am having some trouble integrating the two. I know that my DB info and querying works so it must be something with passing data between flash and PHP.
I have a TLF Read-Only Textbox. I have given the text box an instance name and attached a MOUSE_OVER and MOUSE_OUT listener to it.
On mouse over: Displays a value with the .text property. On mouse out: Sets the .text property to ""
The textbox functions correcty as I move the mouse onto the textbox area; a value is displayed. However, if I hover the mouse over the actual value, the mouse over and mouse out listeners get activated repeatedly in sequence. Is this a bug with AS3/cs5? Is there a way around this?
I had the buttoms working but as soon as i converted them into movie clips to spice them up they don't seem to excecute the button anymore, im using the code from voetsjoba tutorial transitions between external swf's
I have a flash file with a MC "wmc" which contains the following script to randomize labels on load as well as for next and prev buttons to function. I used the prev/next btn scipt in a previous file but for some reason the buttons are no longer functioning in this one. I must be missing something elementary. The actual file is available via the following link (see the "workmc" MovieClip in layer "wimages"):URL...[code]
I am making my website by loading each of the external pages in to the main swf file. I've used a tutorial and it manages to load all of the correct pages when the corresponding button is pressed, however I can tell that the Unload isn't working because each page has audio and I can hear them playing over the top of each other when I navigate through the pages.
Here's the code.
Code: var Xpos:Number = 0; var Ypos:Number = 102; var pageSWF:MovieClip;
I have created flash buttons for one of my websites but they do not work properly. Unless there is a (www) in the URL the buttons do not work. For example,If my address reads [url]...the buttons do not send you to the page when you click on them. However, if you go to [url]... the buttons when clicked send you to the pages.I have set all the links to [url]... but that does not stop a user to navigate to the site using [url].... instead of [url]....
new to this and need a very basic push in the right direction.I have FMS 3.5 installed on my server and I am ready to begin testing with it.My website has a page with descriptions of videos and links to those videos.When a link is selected, I want a new page to open and the video to play in the FMS player.I have absolutely no idea how to go about this. I need some meaty information here. I read tom Green's tutorials, and although I found that they were informative, they are also quite general.