Navigation Looping My Brain
Hello all,
Just to warn you first i'm a newb with flash and action script. I've been playing with php for awhile but had to use flash for a client a couple of months ago and now i'm hooked.
I have a problem I hope you can help me with.
I have six button's pointing to six events in a timeline.
In each event I have a movie that reverses it's event via on Release in the buttons.
Code:
on(release){
if (_root.pageloader.Smart){
_root.pageloader.Smart.gotoAndPlay("Go")
} else{
_root.pageloader.gotoAndPlay("one")
}
}
I'm trying to figure out how to get it to go to the new selected event after the reverse but so far have only got it working on a single event or I get a nasty loop.
I think I may need some kind of listener but cannot find much info that helps and maybe each event should be a loaded movie.
Hope you can help,
Hinksta - man with a spinning head
SitePoint > Design Your Site > Flash and Actionscript
Posted on: Sep 13, 2006, 05:25
View Complete Forum Thread with Replies
Sponsored Links:
Vertical Looping Navigation For Homepage
For my website on David Lynch (http://www.davidlynch.be) I would like to use a vertical looping navigation for the homepage in the form of a moviepellicule which runs continuously over the screen. Every frame (image) stands for a film/series, and when you move your mousepointer over it, it slows down and then stops running and you can read a short explanation on what you can find on this page next to the pellicule. When you click on the image, you go to the page.
So the pellicule is looped, because Lynch hasn't made an infinite amount of films (unfortunately! ) and each image has a button-function and links toward a certain page on the site.
I don't have the faintest idea where to start. You have to know I'm still in my newbie-flash-fase and could use a little (lots of) help of experts...
In advance I thank you for the help or the pointing me to the right tutorials or sites!
View Replies !
View Related
[F8] Help Desperately Wanted - Broken Navigation/looping
Hi guys,
I've been trying to get to grips with flash by making a simple website using http://www.flash-game-design.com/fla...-tutorial.html, but I simply cannot get the damn navigation to work! I've been pulling my hair out trying but to no avail. Help would be severely appreciated!!
Here's a .fla file (700kb)
http://www.sendspace.com/file/voucg0
View Replies !
View Related
My Brain Hurts
I'm a newbie, trying to be self taught and I've been searching all over the place for a Tute on this subject and can't find one.
I want to make a simple Voting/Poll tool. The user will have 3 (or whatever) buttons to select from. They click whichever one they want, then click "submit" and it sends me the results.
So how do I do this? Is there a tute somewhere that
I've missed.
Thanks
View Replies !
View Related
Brain Breaker
hi,
This one is annoying me. I admit that i am not that good with math problems, but ....
I've got a mc called ctrl
in there are 4 mc's all equal square (100x100)
the script is a start to a very basic rotating square.
using a counter of 10 it works
using a counter of 5 it doesn't work
it then skips the "if(eval(side[i])._width<=0)"-part
can anyone tell me this happens??
Code:
onClipEvent(load)
{
front._width=100;
right._width=0;
back._width=0;
left._width=0;
front._x=0;
right._x=100;
back._x=100;
left._x=100;
front._visible=1;
right._visible=1;
back._visible=0;
left._visible=0;
side= new Array("test","front","right","back","left");
i=1;
j=2;
test = eval(side[i]);
}
onClipEvent(enterFrame)
{
// this._rotation+=15
eval(side[i])._width-=5;
eval(side[i])._x=0;
test = eval(side[i]);
eval(side[j])._x-=5;
eval(side[j])._width+=5;
xpos=eval(side[j])._x
if(eval(side[i])._width<=0)
{
eval(side[i])._visible=0;
eval(side[i])._x=100;
i=i+1;
j=j+1;
if(i>=5) {i=1;}
if(j>=5) {j=1;}
eval(side[j])._visible=1;
}
//updateAfterEvent();
}
View Replies !
View Related
Here's One To Test Your Brain
Is it possible to name a symbol that is a button?
What I need to do is have anumber of hidden MCs and when the user clicks on a button a certainnumber of these MCs would become visible. (this much I have completed)
Now the tricky part. What I would like to be able to do is to have one of the MCs that has just appeared to be able to be clicked and make another MC visible. It does work except the mouseUp/mouseDown works on the entire stage and not on the area of that MC.
Apologies if you can't really understand it.
Any help I would be greatly appreciative.
Len
View Replies !
View Related
MY POOR Brain :(
been banging this one on the head for a while, so far its been a good scripting day,
ok the set up is i ave several movie clips on the main time line, however i want there locations to be random, so every time u open the .swf, the _x and _y will be different for each one, this is fine, except the clips over lap, what im after is to randomly generate the _x and _y with out the overlaping,
played with the hittest and get bounds, with no luck, this is the best i could do.
[code]
if (_root.slice2, hittest(_root.slice4)) {
trace ("plz work");
this._x += 50;
View Replies !
View Related
Brain Not Working
Ok, Ive done this plenty of times, but for some reason, now its not working. Perhaps my brain is tired. I am scrolling loaded text into a dynamic text field, but it only loads the first line thats in the text file! What gives?
Oh! it is set to multiline, if anybody mentions that part.
View Replies !
View Related
Brain Teaser?
Ok, I am writing a movie that duplicates an mc that dynamicly loads pictures that follow a guide path.
1. do I need to make an instance of a graphic then duplicate them later in an mc, or a blank mc and load the graphic in there?
2. if it is a graphic, or just a blank mc, do i dupilcate the graphic or the mc?
3. where should the motion path be, if i duplicate the graphic, would it have to be in that instance, or if i duplicate the mc should it be in there?
Just thought I would give you something to think about.
Thanks in advance
Jeff
View Replies !
View Related
Fried Brain
Ok I am pretty fried today...
I don't get it, why this does not work?
1) Movie Clip istance name = long
1) layer with actionscript at frame 1
var count = 1;
_root.long._xscale = 100 + count;
if (count <= 400) {
count = count + 1 ;
}
Should this tell the long MC to scale?
It calculates count 1 time and that s it!
like if the movie stops.
no stop(); command anywhere
View Replies !
View Related
Lost Key To Brain
I think I'm just forgetting something very easy, but anyway. In my development environment I can get my keyDown/keyUp events, but when I run it in a browser I get nothing.
Anyone know what I'm missing out here.
Cheers
Mat
View Replies !
View Related
Help - Brain Fart
Hi all,
I'm having a syntax problem. I want to use an action to send the timeline to a particular frame label, specified by a variable (newsec). I know I've done this before, but I can't remember exactly how!
gotoAndPlay(newsec); doesn't work, so I tried
gotoAndPlay(eval(newsec)); but that doesn't work either.
newsec has been defined earlier by a button click, and everything's on the _root level.
I've been playing around with quotation marks, etc., but I'm stuck! Someone please slap me in the head...
View Replies !
View Related
Eating My Brain...
I have 7 dynamics on floor, need to get 7 diffrent values to them,picked from an array. i get stuck, its eating my brain.
FRAME CODE:
blah = new array();
for (N=0; N<34; N++) {
blah[N]=N;
}
BUTTON CODE:
on (release) {
for (i=1; i<8; i++) {
randomizer=int(math.random()*blah.length+1);
_root["thing"+i]=randomizer;
blah.splice(randomizer,1);
}
}
Thing is..look what randomizer does, it pick a number within the range of the array,
and the splice, remove that index. hopefully,
the next loop Randomizer will pick a number within the range, that are 1 shorter, but
the same number can show up again, because if first loop was 17 out of 35 the next can still be 17.
But the value of 17 the second loop should be 16. and not 17 as the first should be.
Should i use _root["thing"+i]=blah[randomizer];
or blah.splice(blah[randomizer],1);
Which seem much better, will get the value, same as index. but dosent work for me either,
I think that i just overlooked somethign and this is really simple, just i cant find it.
Help!
View Replies !
View Related
This Is Killing My Brain
What the crapping hell does flash think it's doing? i have a preloader clip that is called perfectly fine from all root buttons in the main movie, the code being _root.preloader.play(): . So why oh why is it not playing when I use exactly the same command from within this if statement that is in an external swf, loaded into a blank movieclip??? all the other commands are being executed except the _root.preloader
if (numberclip.pin == 0000) {
content = "staff";
_root.status = "loading so+so clip";
gotoAndPlay("accepted");
_root.preloader.play():
} else {
tellTarget ("invalid") {
gotoAndPlay("open");
}
}
anyone? PLEASE. feel like smashing something up if this doesn't work soon.
(version 5 by the way!)
View Replies !
View Related
Here's A Brain Teaser.
I have a movieclip named "image" that is 1600 pixels wide (6 320 pixel wide images lined up side by side)
I have a mask on top of it that is 320 pixels in width. The mask allows you to see 1 full image out of the six that are lined up side by side inside the movieclip.
I would like to have the user be able to click directly on the visible image and have the movieclip underneath move with each click, revealing the next image.
Is there a way to create this in an array? These are the coordinates.
_parent.image.Xpos = -311.0;
_parent.image.Xpos = -631.0;
_parent.image.Xpos = -951.0;
_parent.image.Xpos = -1271.0;
_parent.image.Xpos = 10.0;
This is the code on the movieclip "image"
onClipEvent (enterFrame) {
Xsquare = _parent.image._x;
Xdiff = Xpos-Xsquare;
Xmove = Xdiff/5;
_parent.image._x = Xsquare+Xmove;
updateAfterEvent(enterFrame);
}
onClipEvent (load) {
_parent.image.Xpos = 10.0;
}
The first time you click over the image the clip will move to X:-311.0
The second time it will go to X :-631.0
and so on, until you click for the 5th time and it resets to the first image X:10.0
Right now i have an invisible button on top of each image inside of the mclip "image". But i am sure there is a more "advanced" way to do this. This code works great, i just want to know if i can do this without using 5 seperate buttons for each image.
Anybody?
View Replies !
View Related
A Little Help .. Brain Farting Here ...
Heres my problem, on my button I'm calling my mainMc like this
on (release) {
_level0.main.loadMovie("main.swf");
}
And and I'm trying to unload it from a labeled frame script like this:
removeMovieClip(_root.main);
stop();
>>This doesn't work atall .. what am I doing wrong?
>>Should I use this as a framscript or should I have it in a button?
Anyone?
View Replies !
View Related
My BRAIN Hurts
I am trying to call a movie from the roll over of a button. The button is placed inside of a another movieclip. The movie I am trying to call is on the same time line as the button. Here is the code I am using presently:
Code:
on (rollOver) {
tellTarget ("SubNav") {
gotoAndPlay ("start");
}
}
The "SubNav" is the instance name of the movie I am trying to call.
"start" is the keyframe of that movie.
Thanks.
View Replies !
View Related
No Brainer From A Non Brain
Ok folk's this is prolly gunna be easy for ya, but I just cant see it.
I want to reference a frame label with a variable but I'm screwed if I know the syntax, I want the variable in an if/else statment that when invoked in the function will check which frame the playhead is on. There are 2 frame labels that I need to reference, "open" and "close" ergo: if frame label is open, on (release) { gotoAndPlay("close") and vice versa.
Anyone point me in the right direrction please.
cheers
totally forgot, Flash MX btw
View Replies !
View Related
Flash Brain
I'm working with a friend in England to try and make a Warhammer 40,000 game in flash that emcompasses RPG aspects, Stat building aspects and shoot 'em up aspects, we plan to do this with each main "Chapter" in a separate .swf file loaded externally and have a central flash brain controlling them, storing the player stats and saving the stats to cookie to save the game, however, the big problem I have come across, is that I can't think how to make the movies communicate with each other to recieve, update and send the stats to the "Brain" Loading Movies and and the Cookies I have guides and examples i have used, but effective communication is still lost to me.
If anyone has any suggestions or even better if anyone wants to join our little team working on this, then please email me as soon as possible.
Thanks
- Nick Boyd
View Replies !
View Related
Artist With No Brain
hello i am designer and new to flash (no surprises there)
i am currently buliding a portfolio website in flash and was wondering how to get flash to load an external movie or image, but in a external web browser window (like a mini preview web page sort of thing) that does not take all the screen
sorry if i am being a sod
take care
View Replies !
View Related
I Have A Small Brain
ok, I've got to say that I'm just not that smart, k? but I really want to create games with flash mx. I've gotten a book about ActionScript, and I understand the basic purpose for most of the lines of code, but there's no way I could just type out code w/o lookin in the book- I just don't understand all the commands and the order of things and the math. Does this mean that I will not be able to program? Or is it the sort of thing that you just understand when you do more. I mean, I'm still in the introduction to actionscript and the author makes it sound like it should be simple. I'm having trouble understanding what things like code: _root. and empty quotation marks mean exactly. I don't expect anyone to explain it to me, but if you could tell me how you learned it, or if you think I'm just not meant to program, please let me know. Thanx so much.
View Replies !
View Related
Really Having A Brain Fart Here.
how do you attach a sound to a button that is a movie clip?
ive searched and tried the attachsound method but it keeps giving me a
must be on a clipevent handler....than i use what i think is a OnClipevent
and still doesnt work...
can someone direct me in the right direction?
the sound is in the library and i have linked it....thanks
View Replies !
View Related
XML Brain Freeze
Hi, I'm hoping someone can help me identify where I'm messing up. I've got a fairly simple class for loading my XML docs. I'm calling the same function in two different contexts- the first from a list of buttons, the second from an incrementing navigation element (i.e. next document / last document).
For some reason the class will not load the XML from the second context, the incrementing nav, but it will from the first, the list of buttons. Tracing out the paths produced by the function gives the same results, just no XML is loaded.
Good to note I'm using a custom event class which adds an ID number to each event so the proper document is retrieved, as they are not ordered by ID and are not necessarily sequential in the database from which they are pulled.
Code is below, pulling my hair out with this. Much thanks in advance,
Alex
XMLLoader Class
ActionScript Code:
package {
import flash.display.Sprite;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.xml.*;
public class XMLLoader extends Sprite {
var xmlLoader:URLLoader;
public var xmlDoc:XML;
public function XMLLoader(url:String){
loadDoc(url);
}
public function loadDoc(url:String){
// Specify the location of the XML doc
var xmlRequest:URLRequest = new URLRequest(url);
// Create an object that can load external text data
xmlLoader = new URLLoader();
// Register to be notified when the XML finishes loading
xmlLoader.addEventListener(Event.COMPLETE, loadIndicator);
// Load the XML
xmlLoader.load(xmlRequest);
xmlRequest = null;
}
function loadIndicator(e:Event):void {
xmlLoader.removeEventListener(Event.COMPLETE, loadIndicator);
xmlDoc = new XML();
xmlDoc.ignoreWhitespace = true;
xmlDoc.condenseWhite = true;
xmlDoc = XML(xmlLoader.data);
handOff();
}
function handOff():void {
var completeEvent:Event = new Event(Event.COMPLETE);
dispatchEvent(completeEvent);
completeEvent = null;
}
public function safePassage(){
xmlLoader = null;
xmlDoc = null;
}
}
}
functions used to load the XML documents
ActionScript Code:
// project click listener is called when either a menu item is clicked
// or when a forward or backward button in the navigator is clicked.
// both events pass menu events which pass ID:uint
function projectClickListener(e:MenuEvent):void {
currentProject = e.ID; // the ID of the document passed with the event
var projectPath:String = "xml/projectPage.php?projectID="+String(currentProject);
if (xmlLoader) xmlLoader = null; // reset loader if exists
xmlLoader = new XMLLoader(projectPath); // instantiate new loader
xmlLoader.addEventListener(Event.COMPLETE, projectCompleteListener); // add event listener for load complete
}
// projectCompleteListener passes the XML doc to the various
// elements which will parse it
function projectCompleteListener(e:Event){
// reset graphic elements
clearGraphics();
hideMenu();
// reset xml object, load new content
if (projectXML) projectXML = null;
projectXML = new XML();
projectXML = xmlLoader.xmlDoc;
//redraw graphic elements with new content
drawImageViewer(0);
// remove the event listener that called this function
xmlLoader.removeEventListener(Event.COMPLETE, projectCompleteListener);
// clean up the xmlLoader object
xmlLoader.safePassage();
}
The MenuEvent Class
ActionScript Code:
package com.officevsoffice.uibuilder {
import flash.events.Event;
// all purpose menu UI handler
public class MenuEvent extends Event {
// define constants for menu states
public static const MENU_CLICK:String = "menuClick";
public static const MENU_OVER:String = "menuOver";
public static const MENU_OUT:String = "menuOut";
// reference if this is the current menu item
public var isCurrent:Boolean;
// reference the ID for this menu item
public var ID:int;
function MenuEvent(type:String,
ID:uint = 0,
bubbles:Boolean = true,
cancelable:Boolean = false,
isCurrent:Boolean = false) {
// pass parameters to super class constructor
super(type, bubbles, cancelable);
// store menu item's state
this.isCurrent = isCurrent;
//store the menu item's ID
this.ID = ID;
}
// override Event class default methods
public override function clone():Event {
return new MenuEvent(type, ID, bubbles, cancelable, isCurrent);
}
}
}
View Replies !
View Related
Wracking My Brain
I've been trying to figure out for the last hour or so how the blinking effect on the logo was done on this web site. Does anyone have any ideas?
http://www.anabasissolutions.com
View Replies !
View Related
Brain Not Working. Help
hello all,
We all know that you can make a frame lable in a movie clip and call it on press,rollOver ect...
_root.some_mc.gotoAndPlay("scene1") - won't play
on (press){
_root.some_mc.gotoAndPlay("scene1") - will play
}
My question is how to get the line of code to run without and buttons. I have made a few sites and never had to do this. I have tried making a function. But to no avail. I just want it to load when the frame reads the code..
Thanks in advance.
View Replies !
View Related
My Brain Isn't Working
I've been doing my first full screen pop up, and I'm having browser trouble. I've searched through the forums, but none seem to address this weird publishing problem. I've been using the kirupa full screen, and pop up tutorials. The pop-up part works fine, but a huge chunk of my swf gets cut off in FF and Netscape! I've attached screen shots of safari and FF.
This problem seems to only happen when I publish my html at 100 percent, instead of "match movie." Anyone know what I can do?
Any help much appreciated.
the site: http://www.sydneywayser.com
View Replies !
View Related
Brain Freeze
so shoot me, I'm starting with basics in classes to build my confidence, yet hit an obvious rock
ActionScript Code:
for(i=0;i<5;i++){var tempPage:Page = new Page(this, i, 106*i, 0, 0, 104, 71)}
I get only 1 item, as yes... I only declaring one variable. How do I increment whilst calling a class?
Thanks plz
View Replies !
View Related
Brain Fart - -Help
I'm working on an AS2.0 class that extends Movieclip. I'm using an onEnterFrame Event and some if statements to make a delaied text typer. We decided to do it this way because it is les CPU intensive than a nested for loop. Here is the code.
ActionScript Code:
class Typer extends MovieClip {
//the returned string
//
public var returnString:String = "hi";
public function getRandomNumber() {
return random(3)+1;
}
public function typeString(classString:String) {
var dispCount:Number = 0;
var stringPos:Number = 0;
var stringCount:Number = 0;
var rndNum:Number = 0;
var newString:String = "";
stringCount = classString.length;
var a = _root.createEmptyMovieClip("a", 1);
rndNum = getRandomNumber();
//
a.onEnterFrame = function() {
if (stringPos<classString.length) {
dispCount++;
if (dispCount == rndNum) {
newString = newString+""+classString.charAt(stringPos);
stringPos++;
dispCount = 0;
rndNum = random(2)+4;
trace(newString); //******//
updateAfterEvent();
}
} else {
removeMovieClip(this);
}
};
}
}
Now the typer is working fine through the trace, but I'm having a hard time getting the information generated out into a variable I can use in my .fla
I'm sure its something very simple that I missed, but I need another set of eyes on this.
the //******// shows where the trace is thats outputing the correct information. Now how do I access newString from outside the public function?
View Replies !
View Related
Known Bug Of Flash... Or Unknown Bug Of My Brain?
I need help please... this is driving me crazy!!!
The problem is that I have a set of movie clips which must send messages one to another. For example, when movie clip A reach frame 10, send a message to movie clip B to play from frame 15... easy, uh?
I did it with "_root.instanceB.gotoAndPlay(15) " on frame 10 of the clip A, and it works fine, but then I change the "deepness" of instance B (I donīt Know how to say it in english, I hope you understand, when you put an instance over another one) and CRASH!!... instance B donīt recognise the "_root.instanceB.gotoAndPlay(15) "!!
If someone can help me, or speak spanish (my english is very very bad ), please I really need it!!
View Replies !
View Related
Brain Hurts- Noobie Needs Help, Please
This intro is located at http://www.analysisrecords.com
click advanced or optimised.
I've got 2 problems to sus out.
1. I use random script to load 1 of 8 diffeent song.swf's into the movie. If the users conection isn't fast enough on a second+ visit to the sight the animation is cached but the random song isn't, which means tha animation plays but the ranbom song.swf is loading
2. I want to make the music fade out at the end of the animation along with the animation.
If I use 8 MC's for the 8 songs. Place them in the animation MC. Set them to stream and custom fade them out at the same time as the animation fade. Place a stop action in the first key frame of each mc. use a random actionscript to tell 1 of the MC'ss to play.
Problem is it sounds like a long way to do it, and i don't know how to target the clips for random play.
Is it posible to use the existing set up I have solving the load problem with scripts and setting the song.swfs to fade out at the right time?
please help me
[Edited by shockeffects on 11-21-2001 at 04:12 PM]
View Replies !
View Related
Flash Bug, Or Broken Brain
I don't know if this is because of my scripting, or is flash just being mean to me? Does anyone have any suggestions on fixing this problem? When you click on the buttons and wait for the MC animation to finish everything works fine, but when you quickly click on the btns it screws everything up. Please try out the movie and advise:
http://xotex.net/jenni/beta_1.html
Its pretty basic, I have this function which controls the menu:
subNavX's are the little bottom menus MCs that slide down. each button call the function like setTopNav(1) etc.
function setTopNav(x) {
if (_root.state == 0) {
_root.state = 1;
// its open
eval("_root.subNav"+x).gotoAndPlay("open");
debugText.text = "open = " + x;
oldx = x
} else if (state == 1) {
// its a closed
_root.state = 0;
eval("_root.subNav"+oldx).gotoAndPlay("close");
debugText.text = "closed = " + x;
}
}
Thats it.
The sliding animation is in the MC.
Please don't laugh!! This is the only way I could think of doing it... Can anyone offer a better way??
Thanks,
-- jenni
View Replies !
View Related
Easy One For Brain Dead Boy...
ok, cant get a button to play another portion of its parent clip. anyone point me towards a good tutorial on paths.
the button call is ::
on (press) {
gotoAndPlay ("Scene 1", "home");
where "home" is the label in scene 1 (its parent clip)
and it wont pick it up
ive also tried
on (press) {
gotoAndPlay ("_root.Scene 1", "home");
what am i missing?
View Replies !
View Related
Slight Brain Block.
Alright I'm creating a diagonal scroller. I've gotten it to scroll and everything, all I need to do now is to give it limitations to how much it scrolls. This needs to be done by making the scrollbar stop at a certain bottom position and top position. Here's the code thus far for the scrollbar.
ScrollMC
Code:
onClipEvent(load){
dodrag=false;
initx=_x;
inity=_y;
}
onClipEvent(enterFrame){
if(dodrag){
_y=_root._ymouse;
_x=initx-_y+inity;
updateAfterEvent(mouseMove);
}
}
ScrollButton (inside ScrollMC)
Code:
on(press){
dodrag=true;
tellTarget ("../") {
gotoAndPlay(2);
}
}
on (release, releaseOutside){
dodrag=false;
tellTarget ("../") {
stop();
}
}
Thanks for any help given.
View Replies !
View Related
Curse You Brain Fart
Grrr... no idea why, but for the life of me i cant get a gotoAndStop to work where it uses a variable that holds a number, where to go...
somthing like:
goHere = 1
_root.gotoAndStop(goHere);
and that shoudl take you to frame 1...
Somthing close... just... cant... think.... POOP!! if you have any idea what im geting at please help Thanksa ton if you can.
El_Y:j3
View Replies !
View Related
Variable Brain Twister
Hello!!
Ok this is what i'm trying to do..
I have a base movie and onto this i am loading in a movie called 1photo.swf to level 1
this contains a series of thumbnail pictures...
when these are clicked on they do two things the first is to load a larger picture e.g 1.jpg into _root.container.container2
the second thing that happens is that level1b.swf is loaded to level 1 - this is a form for people to fill in that sends variables to a .php script when the submit button is pressed. (The purpose of the form is that when linked to the .php script it generates an email with a photo attached to whoever has requested it)...
Here's the problem - I need to set a variable within the level1b.swf which will represent the photo that has been selected - for example something like..
attach = 1.jpg or attach = 2.jpg - depending on which photo has been selected..
I figured the best place to set this variable would be when the thumbnail was clicked - but I just don't seem to be able to get it to work - this is the code i tried...
(I also tried it by publishing it level1b without the .swf and changing my code accordingly - but still no joy!!)
on (release) {
loadMovie("1.jpg", "container.container2");
setProperty("container.container2", _xscale, "75");
setProperty("container.container2", _yscale, "75");
setProperty("container.container2", _x, "75");
setProperty("container.container2", _y, "15");
setProperty("container", _alpha, "100");
loadMovie("level1b.swf", 2);
tellTarget ("_root.level1ba.swf") {
attach = "1.jpg";
}
}
I'm normally pretty good at this kind of stuff but this one has gotten me real confused... Any ideas would be massively appreciated!!
Thanx
View Replies !
View Related
Components Are Blowing My Brain Apart
hi
i have been trying to get this blog component to work but i dont understand how to configure it...
anyone want to give a look at it?
thanks
slimpixi
<a href="www.slimpixi.com/blog/fblogviewer.mxp">download mpx file here</a>
it would be so great if it worked...but got no clue...cuz i just use www.blogger.com and there's no php file on my server...
anyone? anyone??
View Replies !
View Related
Brain Dead...mc Loader
Hey..Anyone with a brain bigger than mine. (Thats everyone)
Can someone send me a FLA file that has the ability to load a movie while still playing a "loading" MC. Everytime my FLA gets to the load movie command my "Loading" MC freezes. I have seen the tutorial here online and I am missing something. It would be better to see the actual file for me. THANK YOU!!!!!!!!
jbarbour30@hotmail.com
View Replies !
View Related
Racking My Brain Over Are If Statement.
I have two text fields. One is an input, the other is a Dynamic. The put has a var label firstName, and the dynamic has a label Name First.
The input field is over the dynamic.
When you enter info in the input field I want the dynamic field to disappear.
I set it up like this
If firstName==""
Name First.visible=true
else
Name First.visible=false
Well as you can guess it does not work.
Can any one tell me what I am doing wrong, beside the fact agreeing to do this project.
View Replies !
View Related
Please Help - Brain Exploding As You Read This
ok, since i gave myself a headache trying to put down in words what i wanted to do, i created a visual (see attachment, only 12K).
for the most part, i understand how to do it (well, the logic of it anyway) i just cant seem to make it work. if someone wouldnt mind providing a little help
i can also provide the FLA file if you are interested in helping
thanks
View Replies !
View Related
Brain Fart... I'm A Goober
I have a simple function, eg:
myFunction = function (myVariable){
myVariable+=5;
}
Now, I have many variables that need this same functon run repeatedly. I already know there is a far better way to do this than writing 20 IF statements to check that a value is above 0 and then run the function on that variable eg:
if (variable1 > 0){
myFunction(myVariable1);
}
if (variable2 > 0){
myFunction(myVariable2);
}
etc.....
I know there's a way to do this, but can't remember it. I feel like a goober who just fell out of bed because I DO know it... just can't remember it at the moment! LOL
??? is it:
with(myVariable1, my variable2, myVarialbe3...){
if (this>0){
my function(this);
}
}
????
........needumous more coffee-ous........
NCD
View Replies !
View Related
Flash Brain Freeze
I am trying to do a simple thing but i cant fiqure it out.
I have a menu that slides in the movie.I want a button to make the movie slide back out,and another button to make it slide back in.
But if you press the slide in button,when it is has already slid in,nothing happens.and visa versa.
Does anybody know what i am taling about?
View Replies !
View Related
Too Hard For My Tiny Brain To Think About
Right brace your self
I have a problem, i need to created various animations of evasive flight paths, but don't have the time or resources to teach everyone max.
Anyone got any idea's to how i can portray a plane in flying in any direction (in 3d) along any given path (its a bit hard to explain) without having to paste it in frame by frame everytime we have a new path.
Example:
plane is the fly from left to right of stage with a twist half way through.
I know how hard this is i've been thinking about it all week
Just throw in your idea's (if you understand what the hell im going on about)
View Replies !
View Related
I Know This Is Simple, But Brain Fart...
put a movie clip on the stage, call it whatever you like (say, frame in this case) and attatch this to it.
onClipEvent(load){
k=.50;
damp=.50;
_x=425;
_y=225;
newFrameWidth=395;
newFrameHeight=303;
}
onClipEvent(enterFrame){
ax=(newFrameWidth -_width)*k;
ay=(newFrameHeight -_height)*k;
vx+=ax;
vy+=ay;
vx*=damp;
vy*=damp;
_width+=vx;
_height+=vy;
}
Make a button and attatch this
on (release){
_root.frame.newFrameWidth = 500;
_root.frame.newFrameHeight = 500;
}
You can change _width and _height in the first bit of code for _x or _y so that the movieclip will move to new coords rather than change size.
i just can't seem to figure out the actionscript to do both at the same time. i am having some serious mental lapse or something. any help would be appreciated. thanx
View Replies !
View Related
Code Has Brain All Racked Up
The problem I am having is with simple navigation or so I think.
I have buttons in an MC each telling the respective parent MC to gotoAndPlay there respective named labels. but if you reclick the same button it will play another label when its not even supposed to.
this is what i have on the buttons.
Urban bttn has:
on (release) {
_parent.gotoAndPlay("urban");
}
House bttn has:
on (release) {
_parent.gotoAndPlay("house");
}
Dance bttn has:
on (release) {
_parent.gotoAndPlay("dance");
}
If I click them once it does play the correct frame or this case labeled frame, but if i reclick, lets say i select house it will go to and play the dance label! got me very confused, can anyone take a crack?
thank you
View Replies !
View Related
Theoretical Brain-teaser (could Use Some Help)
Hello all. The post is all about programming theory. I have a bit of a problem that is going to require me to rethink a project that I am working on. This question does not pertain to specific code use, but rather how to structure my programming around a Flash limitation. Namely, max pixel limit on movie clips.
I am designing a component/widget that call "Timeline". For the sake of this post, the best way to describe it is in comparison to the Flash development timeline.
The purpose is to work along side an FLV, displaying additional information. I developed it in a scrollpane, and while the movie plays, the scrollpane position is updated and scrolls along with it.
Right now my class creates the scrollpane content based on the length of the video at 25pixel/sec (which is probably a bit small for my needs). The problem is that these videos (research stuff) are typically an hour long. That means I need a movieclip in the scrollpane that is 90,000 pixels wide while Flash has a 16,500 (or so) pixel width limit.
So, I am wondering if any of you experts have had to deal with a situation like this. Any ideas?
Here are some of mine:
Paginate the timeline content - the problem is that information might span the pagination, and truth be told, the information is actually buttons and interact with user input.
Constantly Draw/Destroy - somehow (I am not sure how) contrain the scrollpane to just a mask and rather than "scrolling", have the items move on the movieclip (rather than the whole movieclip) and be created and destroyed "off stage". I wonder (beyond how I would do this) what the cost of moving all of those items around 30 times a second (yeah, this is because of a movie thing).
Some combination of the above - have pagination determined by the location in the current page. Call a system freeze at 75% and output some "loading" alert while new page is created, containing (maybe) 25% of the previous page. Give it some checks for content spanning and user-interaction that would delay the load process.
The problem with all of this is that I have NEVER done anything like this. I know some of you out there are phenomenal programmers, and I would love to get some feedback on this issue.
Thanks so much!!
View Replies !
View Related
Brain Twister ...this Will Get You Thinking
Ok guys heres a brain twister... but before you do this, think in your mind what you would expect to happen..and then try it..
Create a movieclip myMC on stage. Then in EDIT mode of the movieclip create a tween from lets say frame 2 to 20(the first frame can just be a blank keyframe). , maybe something simple like moving from left to right.
In the actions layer of this movie clip create a keyframe in the first frame and put a stop action in it.
Now on the root timeline...in the actions layer simply put the action
myMC.gotoAndPlay(5);
(so basically the maintimeline should have two layers of one frame each..one with the movieclip and one with the action)
Now what do you expect will happen? Now test it out and see for yourself...
View Replies !
View Related
HELP This Has My Brain Totally Convoluted ...
I have a mainmovie which loads a navigation bar and a dummy movie clip called "loader". The buttons on the navigation creates a variable when clicked:
on (release) {_global.movietoload = "movie2";
}
Movie2 has this on its timeline:
loadMovie((_global.movietoload) + ".swf", _root.loader);
This way "movietoload.swf" is loaded into "mainmovie.loader"
Movie2 also has a dummy movie clip named "dataMC". A function within Movie2 loads "movie3.swf" into "movie2.dataMC" like this:
this.onLoad = onMovieLoaded;
function onMovieLoaded() {
dataMC.loadMovie("movie3.swf");
// Begin XML process
loadData();
}
... more code ...
Movie3 is loaded with data from an XML file ...
The problem is that when I run Movie2, I can see movie3 with its XML data displayed.
But when I click the button in mainmovie to load movie2, I cannot see any XML data!
What going on???!
I am so confused, my brain hurts!!!!
Please help!! Thanks!
View Replies !
View Related
Please HELP ... This Is Totally Convoluting My Brain
I have a mainmovie which loads a navigation bar and a dummy movie clip called "loader". The buttons on the navigation creates a variable when clicked:
on (release) {_global.movietoload = "movie2";
}
Movie2 has this on its timeline:
loadMovie((_global.movietoload) + ".swf", _root.loader);
This way "movietoload.swf" is loaded into "mainmovie.loader"
Movie2 also has a dummy movie clip named "dataMC". A function within Movie2 loads "movie3.swf" into "movie2.dataMC" like this:
this.onLoad = onMovieLoaded;
function onMovieLoaded() {
dataMC.loadMovie("movie3.swf");
// Begin XML process
loadData();
}
... more code ...
Movie3 is loaded with data from an XML file ...
The problem is that when I run Movie2, I can see movie3 with its XML data displayed.
But when I click the button in mainmovie to load movie2, I cannot see any XML data!
What going on???!
I am so confused, my brain hurts!!!!
Please help!! Thanks!
View Replies !
View Related
Saving-Test Your Brain
I am working on a stand alone project in flash to run off a CD. I attached a sample of one page. I have set it up so that the user can edit the item, in this case a business card, by typeing in the input fields then hitting the edit button. The code on the button allows the changes and then they can print those changes. All this works fine. But here is the problem I need to allow them to save those changes to there desktop or folder of there choice. Can this be done? Can I link it somehow to a PDF or an EPS and let them save that? Can I use another program along with Flash to do this? I'm useing Flash MX Pro 2004 by the way. Can anyone HELP ME?
View Replies !
View Related
Preloader Brain Teaser
I have the simplest of pre-loaders using a dynamic text box.
On the keyframe containing the text box (which has the instance name 'dynam') I have this actionscript:
percent = Math.floor(getBytesLoaded()/getBytesTotal()*100);
dynam.text = percent+"% is loaded";
This is then followed by 2 clear keyframes, the first with this actionscript:
if (percent == 100) {
gotoAndPlay(3);
} else {
gotoAndPlay(1);
}
And the second clear keyframe has this actionscript:
gotoAndStop("Scene 2", 1);
I understand what the actionscript is doing and what effect is should be having. I have 2 large jpgs on my second scene just to test the movie.
When I do test the movie is says 100% is loaded through the duration of the loading period instead of it calculating how much has been loaded? Any ideas why?
I apologise if that is unclear, I have tried to describe it to the best of my ability.
Help will be greatly appriciated!
View Replies !
View Related
|