2nd Click Sets It Off The Page
can anyone tell me why my map goes off page when click a second time. If you click once the map zooms in and you can navigate but when you click it a second time it randomly goes off page or goes a little off page. How do I keep it from showing the maps edges?
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 10-25-2005, 05:22 AM
View Complete Forum Thread with Replies
Sponsored Links:
On(release) Mouse Click Sets Variable But On(keyPress) Doesn't - How Come?
Hello.
I have a button with this action attached to it:
Quote:
on (release, keyPress "t") {
unloadMovieNum(1);
loadMovieNum("selector.swf", 1);
RestaurantSelectorCheckLoaded.gotoAndPlay(2);
}
The movie clip called "RestaurantSelectorCheckLoaded" is a blank mc with the following three frames:
frame 1:
Quote:
stop();
frame 2:
Quote:
play();
frame 3:
Quote:
if(_level1.getBytesLoaded() == _level1.getBytesTotal())
{
_level1.selector = "restaurant";
stop();
}
else
{
gotoAndPlay(2);
}
Here is my dilemma:
For some reason unknown to me if I use the mouse to click the button the "selector" variable that I set in _level1 through the above mc is set correctly but if I press the "t" key instead of clicking the button, the variable is not set, ever!
How is this possible?
Is that a flash bug or something?
View Replies !
View Related
Writing A Variable That Sets Doors To Open And Close Upon The Click Of A Button
Ok so i'm working on a project that has a number of doors. Once you click on a door I have a movie clip that allows each door to slide open. Now my quandary is that I would like to have an active door close upon either a click on itself or another button attached to a different door movie. I have about 10 doors. I'm not sure if i described this very well, please ask feel free to ask me questions if I didn't explain this well enough.
Please please please help me!! I'm stuck!
View Replies !
View Related
[CS3] Actionscript 2 - Button That Sets The Current Page As A Homepage.
Hello,
I stumbled upon a problem, I have a movieclip inside a swf, on which I would like to apply some actionscript 2 code to show me a dialog box where it asks me if I want to set the current page as the homepage for that browser, when I click the button.
I found the code I was looking, but it's html+javascript:
Code:
<a href="#" onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.mylink.com ');" style="font-size:12px;color:#ffffff;font-family:verdana;">asd</a>
Is there a way I can insert this html+javacript onto the movieclip I have inside my flash?
I can also live with converting the code to something that flash understands.
I found some code for javascript inside actionscript is there something similar to this that can help me do what I want?
Code:
on (press) {
getURL("javascript:history.go(-1);");
}
In short, I want to click the button and display a dialog box that asks me if I want to set the current page as a homepage.
Thanks,
N.
View Replies !
View Related
Flash - When Click On Contact Page-profile Page Animates Off, Contact Animate On
In order to make my question more clear --I will use a website
as an example of what I am trying to do.
I know how to switch to different frames on a timeline (movie) as a user clicks a button.
Example, User clicks on the contact button, and the movie
then goes to to contact information section of the movie, etc, etc.---no animation (just plan on (release) { goandstop("");...easy
My Goal:
What I want to do is exactly what this Aurora Tires Website. has
As Viewers click to go to a new page, animation occurs on the previous page before the user is taken to the new page.
Example, as the user is on 'passenger truck tires', and then clicks the link for 'light truck tires, 'passenger truck tires' does an animation (scrolls up) before
going to 'passenger truck tires' page.
I think this is a cool effect and would love top have it on a demo site that I am making.
I would really appreciate help
Thanks
http://www.withabee.com/newAurora4.html
Jeff
View Replies !
View Related
Making 3 Sets Of Non-repeating #'s And Non-repeating #'s Within The Sets
Hey guys,
How would you go in making 3 sets of non-repeating #'s. Every time I click an MC, there's a number associated with it and should be removed from the following set.
Like this:
1st set: 6#s, 0-11
2nd set: 5#'s, (0-11)-1stMcClicked
3rd set: 4#'s, (0-11)-(1stMcClicked && 2ndMcClicked)
I'm using Senoculars function:
ActionScript Code:
function RandomNumbers(c) {
var r, p, i = c, n = new Array(c);
while (i--) {
n[i] = i;
}
while (c--) {
r = random(c);
p = n[c];
n[c] = n[r];
n[r] = p;
}
return n;
}
randomNumbers = RandomNumbers(11)
And getting 6 #'s from a choice of 12, like so:
ActionScript Code:
randomNumbers.splice(6);
The tricky part is to tweak Senoculars function, frankly because I don't understand it, and add exceptions.
Then, I tried something different:
ActionScript Code:
//Cred. to Senocular
function RandomNumbers(c) {
var r, p, i = c, n = new Array(c);
while (i--) {
n[i] = i;
}
while (c--) {
r = random(c);
p = n[c];
n[c] = n[r];
n[r] = p;
}
return n;
}
///Remove specific value from an array---***
function remItem(arr, item) {
tempArray = [];
for (i=arr.length-1; i>=0; i--) {
if (arr[i] != item) {
tempArray.push(arr[i]);
}
}
tempArray.reverse();
arr = tempArray;
return (arr);
}
var set1Array:Array = new Array();
var set2Array:Array = new Array();
var set3Array:Array = new Array();
var tempArray:Array = new Array();
var setArray:Array = new Array(set1Array, set2Array, set3Array);
var ammountToStart:Number = 5;
var totalChoices:Number = 11;
var currentSet:Number = 1;
function makeRandomSets(currentSET, ammountToStartWith) {
switch (currentSET) {
case 1 :
tempArray = RandomNumbers(totalChoices);
set1Array = tempArray.splice(5);
trace(set1Array);
tempArray = [];
break;
case 2 :
tempArray = RandomNumbers(totalChoices);
for (i=0; i<set1Array.length; i++) {
if (set1Array[i] == tempArray[i]) {
tempArray = remItem(tempArray, set1Array[i]);
}
}
tempArray.splice(5);
set2Array = tempArray;
trace(set2Array);
tempArray = [];
break;
case 3 :
tempArray = RandomNumbers(totalChoices);
for (i=0; i<set2Array.length; i++) {
if (set2Array[i] == tempArray[i]) {
tempArray = remItem(tempArray, tempArray[i]);
}
}
tempArray.splice(4);
set3Array = tempArray;
trace(set3Array);
break;
default :
trace("****ing error");
}
}
makeRandomSets(currentSet,ammountToStart);
and on a button:
ActionScript Code:
on (release) {
_root.ammountToStart--;
_root.currentSet++;
makeRandomSets(_root.currentSet,_root.ammountToStart);
}
Example trace:
Code:
3,0,9,1,8,6
9,10,0,2,6
7,6,10,9
As you can see, numbers repeat...
I know that my function isn't going to work, it's testing values consequentially. ([0] & [0], [1] & [1], etc etc...)
So?
Anyone...?
Ideas?
View Replies !
View Related
Change A Page With A Click?
is there any way that a web page can be updated by using a simple form
button?
for example: say that a school wants to post that their school is closed for the day, but they aren't very web savvy. so all they have to do is go to a page and click the 'school is closed' form button and it updates the home page somehow?
any help?
View Replies !
View Related
Scroll As Page-per-click
Lets say I have some dynamic text that I attach to a textfield that is 2 text-lines in height. When I click once, the 2nd paragraph will return, but on the 2nd click I will only get the last word (3 pages as it were):
---
Some text for
the first page
and some text
for the second
page
---
I've tried the following, but the .scroll doesn't behave as I expect it to:
---
contentsHeight = contents._height;
on (release){
contents.scroll = (contents.scroll - contentsHeight); //up
}
on (release){
contents.scroll = (contents.scroll + contentsHeight); //down
}
---
Anybody know how to go about this without scrolling an text object/MC, using actionscript 1 or 2?
View Replies !
View Related
Double Click Necessary Before Page Comes Up
please go to
master.accelhost.com
See the three buttons that are flash. This is my problem. You have to double click the first time for it to go to the page. Or click one of the buttons and then the next click no matter which on you click takes you to the designated page. Why won't it go on the first click. Here is the actionscript for How it works...
on (press) {
getURL("http://master.accelhost.com/index.php?contentID=1008");
}
I am using Flash MX
View Replies !
View Related
Click On The Swf To Go To # Section In The Page
Any1 got any idea?
I do have an SWF file (in the main html page) with 6 time frames. Each frame has 3 images. On the other hand I do have a second html page that is nothing but the main title and 18 sections. Every section describes one the SWF’s images.
What I am looking for is whenever I click on one of the images of the SWF file; I want to go to the specific section that describes the image I have just clicked on.
Thanks alot
View Replies !
View Related
Right Click / Settings Going To New Web Page
Something weird has started happening on my machine and I'm hoping someone can point me to a solution.
In a Flash Comm Server video Chat application, when you right click and select Settings to set your cam/mic etc. My machine is now rerouting to one of my bookmarks, specifically a Bank of America website. It doesn't open the settings menu any longer. Anyone else seen this?
View Replies !
View Related
Click And Page Moves
Ultrashock,
Ok Im looking for info on how to make the webpages where Im assuming there is a HUGE mc on the main stage and if you click a button it takes you to a certain X Y point in the MC.. Im not sure what this is called in flash terms so If anyone has any links to threads here that would be cool.
Peace
View Replies !
View Related
Banner Ad Mouse Click To New Web-page
Hi there,
I'm sure someone's answered this before, but I've been pulling my hair out over this for the last two days before I found this forum!
All I want to do is that I have a simple banner ad and when someone clicks anywhere on it, I want them to go to a new web page.
The name of my work file is banner.fla. It exports to banner.swf. In my library, I only have images, no buttons or movie clips.
Please give the actionscript I should use (The thing driving me crazy is the documentation references something called mymovieclip, what on earth is that and how do I set it to its proper name? I've tried banner instead of mymovieclip, but it doesn't work).
Please help!!!
View Replies !
View Related
When I Click Button The Page Reloads Again
good afternoon all, I'm using flashMX professional 7 and I have a little action script problem.
if you go HERE (sample-3.swf) & click on one of the buttons: the whole page/animation reloads from the beginning again before going to the targetted page.
heres what it looks like:
the script for each button specifies 'page 16' (a separate file: sample-16.swf, etc)
i've been playing around but nomatter what I try the page still reloads from the beginning,
if someone could help i'd greatly appreciate,
thanks
Warner Brown,
View Replies !
View Related
Click Page Before Flash Works
Hi
I have used the search facility to see if this has been asked and answred before. I have done much of what was desired on my friends site (www.elite-exteriors.co.uk) but when I open the page(s) in IE you have to click the page before you can access anything. Can anyone please help and feel free to comment on my first Flash project which was aided by some advice given on here and for that I thank you.
Nig
View Replies !
View Related
On Click Popup Html Page
Hey I used the http://kirupa.com/developer/mx2004/x...otogallery.htm tutorial where there is an image gallery controlled by an xml document. I am wondering if there is anyway to when one of the node's is loaded to assign a url to it that when the image is click it pops up a new page, obviously with a larger size of the image in it. Or even a way to simply have flash load another xml with larger images in it? any ideas help is much appreciated, my email is nathanhegg@gmail.com.
View Replies !
View Related
Trigger Movie With Mouse Click On Page
I am creating a site using Dreamweaver, Flash and Fireworks. The title or banner of the site is a flash movie. Navigation is by Fireworks buttons with popup menu. I want the short movie in the banner to replay every time someone clicks onto a menu item, but I can't figure out the Javascript necessary for such a function. I just think that it would be neat if the title movie would replay everytime a new page loads on the site. Can anyone help?
View Replies !
View Related
Can I Make My Splash Page Close After You Click It?
Right now I have a splash page open up when you go to my site. Once the user has chosen which site to go to from my splash page, is there a html command to tell that window to close? I made the page with only html, i didn't make it in flash. Just curious if anyone here might know how to do this. Thanks!!
View Replies !
View Related
Close Overlay So You Can Click Web Page Underneath?
I have a SWF that I have running over my HTML for about 8 seconds. In IE you can click on all the links below the "DIV'ed" SWF with no problem. While the flash is running and after it stops. In Mozzila you can't. How can I get the SWF to disappear after it is done? Below is the current code I am running to get the SWF to appear above the regular HTML:
<style type="text/css">#overlay { position: absolute; left: 0px; top: 0px; z-index: 2;}</style>
<div id="overlay">
<OBJECT classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="760" HEIGHT="600" id="diamondFallMine">
<PARAM NAME=movie VALUE="diamondFallMine.swf">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=wmode VALUE=transparent>
<PARAM NAME=bgcolor VALUE=#FFFFFF>
<EMBED src="diamondFallMine.swf" quality=high wmode=transparent bgcolor=#FFFFFF WIDTH="760" HEIGHT="600" NAME="diamondFallMine" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
</EMBED>
</OBJECT>
</div>
View Replies !
View Related
On Click Of Button, Dont Reload The Same Page Again.....
hi! I think my question really only requires a few lines of code [ maybe just one ... ] but I just can't seem to figure it out ....
I have the following buttons on flash that take me to different HTML Pages: "About" "Services" etc ...
So, when I click "Services" it takes me to services.html ... but, when I click "Services" on the services page, it reloads the whole page again, how can I get the button to "realize" that because it is already on that page, it doesnt need to reload it?
or can this only be done if the whole website is made on flash itself?
maybe im overthinking this one ..... eh, help please
thanx in advance .....
View Replies !
View Related
The Page Moves When I Click A Button (getURL). Why?
Hi,
If I use IEx in fullscreen mode, and click a Flash-button on my page, the entire contents of the page shifts a little on button down.
Has anybody got any idea why?
You can check it out at URL.
When the page is loaded, press F11 to go to fullscreen mode, and click e.g. the button called "FORVALTNINGSTILTAK" (it's in Norwegian, unfortunately). Then you will (probably) see the page being moved a little on mouse down.
The page consists of HTML mixed with various Flash elements.
Another example displaying only Flash (no HTML besides to show the swf and hide the scrollbars): URL. The same thing happens here.
The buttons use the action: getURL(urlLink,"_parent"); The urlLink is provided to the flash movei by adding "?urlLink=http://some.url" to the src parameter of the object- and embed-tags.
How can I prevent this?
(I'm using Windows XP Pro with IEx 6 SP1)
Thanks!
View Replies !
View Related
Flash XML, No Frames Page, Click Actions
Hi all, I have a question for the list.
I have a personal server, a staging server, and a production setup. When I test locally using all the same files, everything works fine, but when I post to the staging server I'm seeing two problems that don't occur locally and I don't know how to fix them.
The first is a response from an XML page, which is returning what appears to be a 'no frames' html page instead of the xml that it should return. This must be configured in IIS somewhere since it doesn't occur locally (and my page contains no content for this), but I don't know where to turn it off.
The other problem is, once I post to the staging environment, the flash animation makes a continuous clicking noise and jumps back to the default (main) frame immediately following a preloader as soon as the user attempts navigation.
Got me stumpted, can anyone offer any insight?
Thanks in advance.
View Replies !
View Related
Tween De Backgrounds On A Page Depending Which Button You Click
hi there
i cant find a good example right now, but i have seen some sites, who use this technique of tweening the background/frame in which the content is being loaded. depending on the button you click, the square then shapes a bit longer or shorter.... these are shape tweens, but with advanced scripting.... i really dont know how to do such thing... anybody?
big thanx!
mel
View Replies !
View Related
Cant Interact With Any Flash Website Untill I Click Page
I noticed today that every flash site i have been on when the site intially loads it has a outlined border and the whole swf in the page is clickable.
Once clicked everything is ok, but i need to click the page first before i can interact with the content. This is everything from small flash banners to fully fledged flash sites. Has anyone else came across this today?
View Replies !
View Related
Cant Interact With Any Flash Website Untill I Click Page
I noticed today that every flash site i have been on when the site intially loads it has a outlined border and the whole swf in the page is clickable.
Once clicked everything is ok, but i need to click the page first before i can interact with the content. This is everything from small flash banners to fully fledged flash sites. Has anyone else came across this today?
View Replies !
View Related
Tool Which Allows User To Click To Add Textfield / Text On Page?
I would like to have a very minimal toolbar for a flash movie - with just 2 tools. One of these would be for the user to click anywhere on the screen to create a text field and then to be able to add text to this, in a position on the screen that they clicked on. It would behave like the text tool in flash. Can anyone point me in the right direction to do this? Is there a tutorial out there or some code you can suggest I use?
The second tool is a simple pen/pencil drawing tool, for which I am going to use the kirupa tutorial which is nice and simple, and works very well!
Thanks.
View Replies !
View Related
HELP Divide An XML Page Text Into Multiple Pages To Click Through
Hi everyone,
I'm fairly new to heavy action scripting and am trying to learn it for a project I'm working on. Fake it 'til you make it! Would anyone know how to load an XML page into Flash, divide it into pages according to a dynamic text box size (Flashloaded MultiColumnText Field component) and then create multiple pages to click through with next/prev buttions?
Any help is GREATLY appreciated. Thank you.
View Replies !
View Related
FRAME SETS PLEASE HELP
I am working on a project where I have a ‘top frameset’ and a ‘bottom frameset.’
The top frameset (an SWF file) loads a new swf files into it’s self and also changes the bottom frameset to coincide with the content above.
My question is. Can I load a new movie into the ‘top frameset’ from the ‘bottom frameset’ using some sorta scripe from an html link in the ‘botom frameset?’
Please, if anyone has any idea, please, please, please, help! I am in over my head!
Thank you so much who every you are.
--
Tim Thanks!
View Replies !
View Related
Panel Sets
alright, panel sets rule. saving your own panel sets rule. but, is it possible to include your library in your custom panel set? am i missing something? isn't the library a panel? why cant i save its position???? AAAAAAAAAAAHHHHHHRRRRGGG!!!!!
View Replies !
View Related
Frame Sets
Any body have an idea how to place a flash frame on the top frame, with buttons that affect the bottom frame.... As in a menu bar on top, made outa flash, and the bottom html and other formats???
View Replies !
View Related
Two Different Btn Sets Immitate Each Other?
Trying to make 2 diff btn sets react at the same time - any help would be appreciated.
I have an OButton.as, a Main.as, 2 different Menu.as, and a page class where they all load. I want the classes (ActionMenu.as and ActionMenu3.as) to react at the same time. At a point in this movie ActionMenu will not be visible but ActionMenu3 will always be visible.
Any advice?
Thanks in advance
Attach Code
//ActionMain.as
package
{
import flash.display.*;
import flash.events.*;
public class ActionMain extends MovieClip
{
// class definition -----------------------------------------------------------------------
public var pages_mc:ActionPages;
public var menu_mc:ActionMenu;
public var menu2_mc:ActionMenu2;
public var menu3_mc:ActionMenu3;
//PUBLIC------------------------------------------------------------------------------------
public function ActionMain()
{
super();
initialize();
}
// private --------------------------------------------------------------------------------
private function initialize():void
{
addEventListener(OButton.NEW_SELECTION, selectHandler);
menu_mc.main();
menu2_mc.main();
menu3_mc.main();
}
// event handlers -----------------------------------------------------------------------
private function selectHandler(event:Event):void
{
var btn:OButton = event.target as OButton;
//pages_mc.loadPage(btn.thisFrame);
trace(btn.thisFrame);
}
}
}
//OButton
package
{
import flash.display.MovieClip;
import flash.events.Event;
import flash.events.MouseEvent;
[Event(name="newSelection", type="flash.events.Event")];
public class OButton extends MovieClip
{
public static const NEW_SELECTION:String = "newSelection";
private var _thisFrame:String;
//INITIALIZE--------------------------------------------------------------------
public function OButton()
{
super();
}
public function main()
{
initializeBehavior();
}
//API--------------------------------------------------------------------
public function set thisFrame(val:String):void
{
_thisFrame = val;
}
public function get thisFrame():String
{
return _thisFrame;
}
public function unselectCategory():void
{
play();
initializeBehavior();
}
// private --------------------------------------------------------------------------------
private function initializeBehavior():void
{
buttonMode = true;
addEventListener(MouseEvent.MOUSE_OVER, onOver);
addEventListener(MouseEvent.MOUSE_OUT, onOut);
addEventListener(MouseEvent.CLICK, selectHandler);
}
private function deinitializeBehavior():void
{
removeEventListener(MouseEvent.CLICK, selectHandler);
removeEventListener(MouseEvent.MOUSE_OVER, onOver);
removeEventListener(MouseEvent.MOUSE_OUT, onOut);
}
//event handlers-----------------------------------------------------------------------
private function selectHandler(event:Event):void
{
deinitializeBehavior();
gotoAndPlay("disable");
dispatchEvent(new Event(OButton.NEW_SELECTION, true));
buttonMode = false;
}
private function onOver(e:MouseEvent):void
{
gotoAndPlay("over");
}
private function onOut(e:MouseEvent):void
{
gotoAndPlay("out");
}
}
}
//ActionMenu
package
{
import flash.display.*;
import flash.events.*;
public class ActionMenu extends MovieClip
{
// class definition -----------------------------------------------------------------------
public var act1_mc:OButton;
public var act2_mc:OButton;
public var act3_mc:OButton;
public var act4_mc:OButton;
public var act5_mc:OButton;
private var _selectedButton:OButton;
// initialize -----------------------------------------------------------------------------
public function ActionMenu()
{
super();
}
public function main():void
{
initializeMenu();
}
// private --------------------------------------------------------------------------------
private function initializeMenu():void
{
act1_mc.thisFrame = "one";
act1_mc.main();
act2_mc.thisFrame = "two";
act2_mc.main();
act3_mc.thisFrame = "three";
act3_mc.main();
act4_mc.thisFrame = "four";
act4_mc.main();
act5_mc.thisFrame = "five";
act5_mc.main();
addEventListener(OButton.NEW_SELECTION, selectHandler);
}
// event handlers -----------------------------------------------------------------------
private function selectHandler(event:Event):void
{
if (_selectedButton != null)
{
_selectedButton.unselectCategory();
}
var oBtn:OButton = event.target as OButton;
_selectedButton = oBtn;
}
}
}
//ActionMenu3
package
{
import flash.display.*;
import flash.events.*;
public class ActionMenu3 extends MovieClip
{
// class definition -----------------------------------------------------------------------
public var act1_mc:OButton;
public var act2_mc:OButton;
public var act3_mc:OButton;
public var act4_mc:OButton;
public var act5_mc:OButton;
private var _selectedButton:OButton;
// initialize -----------------------------------------------------------------------------
public function ActionMenu3()
{
super();
}
public function main():void
{
initializeMenu();
}
// private --------------------------------------------------------------------------------
private function initializeMenu():void
{
act1_mc.thisFrame = "top1";
act1_mc.main();
act2_mc.thisFrame = "top2";
act2_mc.main();
act3_mc.thisFrame = "top3";
act3_mc.main();
act4_mc.thisFrame = "top4";
act4_mc.main();
act5_mc.thisFrame = "top5";
act5_mc.main();
addEventListener(OButton.NEW_SELECTION, selectHandler);
}
// event handlers -----------------------------------------------------------------------
private function selectHandler(event:Event):void
{
if (_selectedButton != null)
{
_selectedButton.unselectCategory();
}
var oBtn:OButton = event.target as OButton;
_selectedButton = oBtn;
}
}
}
View Replies !
View Related
A Good FLA - Attraction Sets
Hi everybody.
sorry if i don't speak english very well, but i will try to explain my problem :
i found a good open source FLA and i would like to simplify it but it's too complicate for me.
Take a look there :
http://www.levitated.net/daily/similarseeking.html
I would like to have the same result but :
-without to introduce another attractor
-at the beginning, there are 3 cells but with a different symbol for each of us (A,B,C for exemple) [to using the duplicate method]
-that the attraction between the cells are less
-and when ii click one, the other use a little bit more the alpha.
If someone can help me or explain me how to do.
Thanks a lot.
See you.
View Replies !
View Related
Panel Sets Not Saving
Dunno if anybody has encountered this... I perused the forums and didn't see anything, so I figured a new thread was the way...
I have my own panel sets saved in Flash MX, and they're just not saving... specifically, the library is never there if I exit and re-enter MX. However, if I save and reload the panel set w/o closing MX, it's there... Further, if I open MX, load one of the built in panel sets and THEN load mine, it works. I only have one panel setup I need to use, and I'd like that to be the default.
This is probably a noobish question, but I didn't find anything in the help files either, so any assisstance would be greatly appreciated!
Thanks in advance.
View Replies !
View Related
Working With Record Sets
Hello,
this is my first post so i do apologize if this has been asked before. I haven't used Flash since v4 and now have upgraded to MX for work reasons, and have a need to get an entire recordset into my flash movie. I've seen a component on flashcomponents.net tkcdatagrid that i would really like to use to display the data but can't figure out how to get an entire recordset (using asp) into the movie. If anyone can help me i would really appreciate it.
thanks in advance.
View Replies !
View Related
Getting Two Sets Of Code Working
my code is here:
http://www.aurora-watch.com/auroraLights3b.fla
i cant get both halfs of the prog to work, at the mo the future predictions is commented out as only one side will work at a time,
when i say work, the past data works in as much as it goes through its process ok, there is a server prob at the mo thats why no data is received
pleas help ive been playing with it for ages with no luck
View Replies !
View Related
Panel Sets Too Large
Help! I've worked on a Flash file at home (with a 17" monitor), then took the file into the office (with a 19" monitor)and worked on it. When I brought it home to work on it more, all of my panels have been resized, and I cannot shrink them to the size they originally were. I've uninstalled Flash MX and reinstalled, but the settings are still the same. Any suggestions?
View Replies !
View Related
One Sets Of Controls For Multiple MCs
I am working on a mixer application that will take images and looping animations and allow a user to select and change the properties of the MCs. The clips will also be dragable. I am using sliders to control the properties such as alpha, scale, rotation and color offset. My problem is that I want to use one set of sliders to be able to control each of the selected MCs. I want the user to be able to click on a MC to activate it and then the slider will control that clip until another clip is selected. Can someone please tell me how to go about doing this?
View Replies !
View Related
Random Number Sets?
I need to activate movie clips, numbered 1 through 20, in random order. I was thinking an array might be ni order, but basically I need to think of a way to shuffle the numbers from 1 to 20 with actionscript. ideas?
View Replies !
View Related
Panel Sets Disappearing
has anyone had problems with their panel sets disappearing when testing a movie? i'm using flash mx on mac os x and when i test my movie, my panel sets disappear. i thought i could just hit 'tab' and have them come back, but i have to reload them each time. i've saved my panel set but its a total pain in the @ss to have to reload them every time i test something.
anyone have problems with this - or is there a preference i don't know about?
thanks
View Replies !
View Related
Mouseover Movieclip Sets _x _y Of Another
The title explains it all. I have two movie clips.
One named 'Box' and the other 'Roll'
For the script of Box:
Code:
on(rollOver){
Roll._x=100
Roll._y=100
}
For the script Roll:
Code:
on(rollOver){
Box._x=100
Box._y=100
}
It seemed very simple to me-- which is why I am confused as to why it isn't working. When i try this._x=100 / this._y=100, it moves to 100,100. Why won't it move the other movieclip?
Thanks
View Replies !
View Related
Help With Deleting Panel Sets
I need some insight on deleting a panel set after you save a panel layout under windows. I am using Flash MX 04 on XP. I found instruction from help files in flash but the paths they suggest using to delete the panel set is not accurate. At least not on my computer. I have searched my computer up and down looking for where Flash stores panel information, and I can not find anything even in the application folders. Any suggestions?
View Replies !
View Related
Chart Containing Sets Of Items
Hi,
I am looking for creating a chart containing sets of items, a two dimension chart containing 3 numbers each time.
for example: tab=new Array({1,0,0},{0,1,0},{0,0,0});
That code doesn't work, how can I do it?
Thanks
View Replies !
View Related
Link Button Sets
Simple.
Two separate MC's (menu_mc and menu2_mc) both export to the MainMenu.as class. Both contain buttons that export to the OButton.as class. Buttons.fla base class is Main.as.
What I want is for menu_mc and menu2_mc to work like partners. When I ROLL_OVER the buttons of one I want the other MC to "hear" it and react the same way. How do I make them "aware" of one another?
I have a friend who pointed me in this direction:
"First off, both the top menu and the middle menu need to become aware of each other. I don't actually have flash, so I can't see how this is set up exactly within the FLA, but you need to do something like this within the class which extends the root:
var m1:MainMenu = mySecondMenuClip;
var m2: MainMenu = myFirstMenuClip;
m1.setLinkedMenu(m2);
m2.setLinkedMenu(m1);
setLinkedMenu can add a listened to the other menu so that every time you make a new selection, it knows to update its selection. You have to figure out the details ;)
Secondly, your OButton class needs to broadcast when the mouse rolls over it. Then you can use that pairing above to have both menus rollover in tandem."
...AND, while I understand something of what he is talking about, I am having trouble getting my mind (and my code) around it. As you may see I have begun to implement the "setLinkedMenu" method but I am not really sure what it is supposed to do OR if I even hav it in the right place.
Thanks for any help you may offer.
Here are my classes:
Attach Code
// Main
package
{
import flash.display.*;
import flash.events.*;
public class Main extends MovieClip
{
// class definition -----------------------------------------------------------------------
public var pages_mc:Pages;
public var menu_mc:MainMenu;
public var menu2_mc:MainMenu;
public var botMenu_mc:BottomMenu;
//PUBLIC------------------------------------------------------------------------------------
public function Main()
{
super();
initialize();
}
// private --------------------------------------------------------------------------------
private function initialize():void
{
addEventListener(OButton.NEW_SELECTION, selectHandler);
var m1:MainMenu = menu_mc;
var m2:MainMenu = menu2_mc;
m1.setLinkedMenu(m2);
m2.setLinkedMenu(m1);
menu_mc.main();
menu2_mc.main();
botMenu_mc.main();
}
// event handlers -------------------------------------------------------------------------
private function selectHandler(event:Event):void
{
var btn:OButton = event.target as OButton;
pages_mc.loadPage(btn.thisMC);
}
}
}
// MainMenu
package
{
import flash.display.*;
import flash.events.*;
public class MainMenu extends MovieClip
{
// class definition -----------------------------------------------------------------------
public var act1_mc:OButton;
public var act2_mc:OButton;
public var act3_mc:OButton;
public var act4_mc:OButton;
public var act5_mc:OButton;
private var main1:MainMC1 = new MainMC1;
private var main2:MainMC2 = new MainMC2;
private var main3:MainMC3 = new MainMC3;
private var main4:MainMC4 = new MainMC4;
private var main5:MainMC5 = new MainMC5;
private var _selectedButton:OButton;
// initialize -----------------------------------------------------------------------------
public function MainMenu()
{
super();
}
public function main():void
{
initializeMenu();
}
// public ---------------------------------------------------------------------------------
public function setLinkedMenu(linkUp:MovieClip):void
{
linkUp.addEventListener(MouseEvent.CLICK, alsoChange);
}
public function alsoChange(event:Event):void
{
trace(this.name);
}
// private --------------------------------------------------------------------------------
private function initializeMenu():void
{
act1_mc.thisMC = main1;
act1_mc.main();
act2_mc.thisMC = main2;
act2_mc.main();
act3_mc.thisMC = main3;
act3_mc.main();
act4_mc.thisMC = main4;
act4_mc.main();
act5_mc.thisMC = main5;
act5_mc.main();
addEventListener(OButton.NEW_SELECTION, selectHandler);
}
// event handlers -------------------------------------------------------------------------
private function selectHandler(event:Event):void
{
if (_selectedButton != null)
{
_selectedButton.unselectCategory();
}
var mObtn:OButton = event.target as OButton;
_selectedButton = mObtn;
}
}
}
//OButton
package
{
import flash.display.MovieClip;
import flash.events.Event;
import flash.events.MouseEvent;
[Event(name="newSelection", type="flash.events.Event")];
public class OButton extends MovieClip
{
public static const NEW_SELECTION:String = "newSelection";
private var _thisMC:MovieClip;
//INITIALIZE--------------------------------------------------------------------
public function OButton()
{
super();
}
public function main()
{
initializeBehavior();
}
//API--------------------------------------------------------------------
public function set thisMC(val:MovieClip):void
{
_thisMC = val;
}
public function get thisMC():MovieClip
{
return _thisMC;
}
public function unselectCategory():void
{
play();
initializeBehavior();
}
// private --------------------------------------------------------------------------------
private function initializeBehavior():void
{
buttonMode = true;
addEventListener(MouseEvent.MOUSE_OVER, onOver);
addEventListener(MouseEvent.MOUSE_OUT, onOut);
addEventListener(MouseEvent.CLICK, selectHandler);
}
private function deinitializeBehavior():void
{
removeEventListener(MouseEvent.CLICK, selectHandler);
removeEventListener(MouseEvent.MOUSE_OVER, onOver);
removeEventListener(MouseEvent.MOUSE_OUT, onOut);
}
//event handlers-----------------------------------------------------------------------
private function selectHandler(event:Event):void
{
deinitializeBehavior();
gotoAndPlay("disable");
dispatchEvent(new Event(OButton.NEW_SELECTION, true));
buttonMode = false;
}
public function onOver(e:MouseEvent):void
{
gotoAndPlay("over");
}
private function onOut(e:MouseEvent):void
{
gotoAndPlay("out");
}
}
}
View Replies !
View Related
Panel Sets Problem
Hi, with flash mx i am having a problem with the panel set layouts staying the same for each time i load up flash. Even if i select the default layout it wont stay the same for the next time i load up flash.
I am running windows 2000 pro and have full administrator access.
Any ideas ???
Also can someone tell me what files i need to delete so that flash runs as if its the first run?
Thanks in advance, Chris
View Replies !
View Related
Two Sets Of Sticky Buttons
hi,
sorry for being such a greenhorn, but i have the following problem:
i have a console wherein i can load movies and sounds. there are 3 movie-buttons and 3 sound-buttons. (you can combine every sound with every movie)
is there a possibility to makee the buttons "sticky" to see which buttons are pushed?
thanks a lot
jsn
View Replies !
View Related
Actionscript Help For 2 Sets Of Buttons, See FLA
Hi:
I have posted the FLA's here...
http://www.usherscloset.com/test/
What I have done so far is create the 1st level (main) navigation up top...but on the first SWF brought in...I have a 2nd set of buttons that I want to use as an option...they point to the same source...this is just for a fun way to navigate...pretty much experimenting with this...so if any of you can see my source and can suggest what i can do to fix my problem that would be great...
problem: Main level navigation is not responding correctly...
The "Home.fla" buttons appear to work ok but not the buttons up top "index.fla"
I hope I explained this well enough for you to help...Maybe my source codes will also explain...if you open the index.swf you will see what I mean. Thanks for helping.
View Replies !
View Related
|