Driving Me Nutz PAssing Vriables From Menu.swf To Viewer.swf
sorry about the horrible spelling on the title. sheesh!So basically, I have a navigation.swf file with a large menu. I've set up a product_viewer.swf so that once a couple variables are defined, the viewer displays the correct images/descriptions. I want a button in the navigation to set 4 variables and pass them to the loaded product viewerThis is what I THOUGHT would work: Code: //FROM THE NAVIGATION.SWFon (release) { _global.cat1:String = "hom"; _global.cat2:String = "fur"; _global.cat3:String = "cab"; _global.cat4:String = "page1"; _level0.loadContent("product_viewer.swf");} So.. I was thinking I could set up each button so that they set these 4 global variables. If the variables are global, then shouldn't the product_viewer.swf read them? Do I need to add in any special code to the first frame of product_viewer?
KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 04-16-2006, 04:42 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Multiple Preloaders Driving Me Nutz
Hi All,
I'm really hoping someone can tell me what the hell to do to sort my problem out... been 2 days of this now! arrrg
I'm loading in a heap of .jpgs and I place each jpg inside a movieclip that has a text field that I want to display the load progress for each image. How the heck do I target the parent of the loader? I've tried everything.
for(var e=0; e<homeXML.photo.length(); e++){
var galleryItem:galleryItemClass = new galleryItemClass();
// load home image
var homeImageLoader:Loader = new Loader();
imageArray.push(homeImageLoader);
var homeImageURL:String = homeXML.photo[e].bigImgFile;
var homeImageURLReq:URLRequest = new URLRequest(homeImageURL);
homeImageLoader.contentLoaderInfo.addEventListener (ProgressEvent.PROGRESS, imageLoading);
homeImageLoader.load(homeImageURLReq);
galleryItem.addChild(homeImageLoader);
function imageLoading(e:Event):void{
trace(e.target.bytesLoaded); // this works
e.target._parent.perTxt.text = e.target.bytesLoaded; // this not working... I'm trying to target text in the parent movieclip called galleryItem
}
Loadin Vriables Into Another Swf
I am loading variables into another swf like that:
code in main.swf
Code:
var request:URLRequest = new URLRequest("score.swf");
var variables:URLVariables = new URLVariables();
variables.name = "bob";
request.data = variables;
request.method = URLRequestMethod.POST;
var loader:Loader = new Loader();
loader.load(request);
addChild(loader);
how do I retrieve the variable "name" in score.swf
Using Vriables In Movie Clips
i am trying to create a slot machine type game in flash. i have the main movie which contains a button, and when pressed spins the three reels and generates variables of random numbers. the reels are three seperate movie clips which spin (play) when the button is pressed. the plan is to have the movie clip stop on the correct frame using script inside the movie clip using the random variables.
how do i use the variables generated from the button inside a movie clips script. do i need to some how call or load the variables into the movie clip?
Menu Driving Me Nuts
Hi
take a look at this file it's driving me nuts ..basically wat i want is :
1) change the buttons cairo - luxor etc to goto a scene or a frame in the movie instead of opening a url (sounds easy? give it a try !)
2) optimize the animation a bit .. im not so good at actionscripting animations
Thanks in advance !
Pop Down Menu PROBLEM Driving Me CRAZY
I am trying to make this popdown menu work but I keep getting an error.
Action Script on Button:
on (release) {
tellTarget ("/popdown") {
gotoAndPlay(27);
}
tellTarget ("/flyout") {
gotoAndPlay(2);
}
}
Error Showing up on movie test:
Target not found: Target="/popdown" Base="_level0"
Target not found: Target="/flyout" Base="_level0"
Anyone have any ideas? I am not using the /popdown script right now and I removed it and still got an error for the /flyout.
FlashMX Menu .... Driving Me Nuts :)
Ok, so I have this freakin menu that works, but not quite
Heres a snapshot :
The menu is a movie object. When you mouse-over the 'about us' shown in figure 1) it plays the movie from a specified frame and stops at what is seen in figure 2).
Inside the movie, there are 2 button objects. These are 'services' and 'clients'. Both buttons work as far as changing to a specified colour when moving your mouse over the button (green for example, in the case of the button 'services'). I have also properly set up an onRollOut feature to close the menu once you move your mouse out of a specified area.
Now the problem is ... the stupid thing will NOT gotoAndPlay("This Scene", 1); it just keeps going to the 1st frame in the menu movie instead of going to the specified scene. Quite a pain in the rear!
I have also tried the following :
services.onRelease = function ()
{
gotoAndPlay(22);
}
and on frame 22 is -
gotoAndPlay("This Scene", 1);
What am I missing? Can you not change to a specified scene by clicking a button object inside of a movie object? This is friggen ridiculous, or I am just missing something here ...
Thanks guys!
[F8] Menu Button Delay Is Driving Me...
I have put together this site:
http://www.novadomain.com
My problem is that I dont like how the buttons wait for the movie below to finish before they work. Click on the menu and then click on another menu item right away and you'll notice you have to wait a few seconds before you can navigate again.
Here is the code on one of the menu buttons:
Code:
on (rollOver)
{
if (_root.link != 1)
{
this.gotoAndPlay("s1");
} // end if
}
on (releaseOutside, rollOut)
{
if (_root.link != 1)
{
this.gotoAndPlay("s2");
} // end if
}
on (release)
{
if (_root.link != 1 && _root.flag_animation1 == 1)
{
_root.flag_animation1 = 0;
_root.menu["item" + _root.link].gotoAndPlay("s2");
_root.link_prev = _root.link;
_root.link = 1;
_root.scrollPART.gotoAndStop(2);
_root.scroller.scroller.gotoAndStop(3);
_root.play();
} // end if
}
Is there something I can do to fix this?
Thanks for any help you can offer!
CW
Panoramic Image Viewer / Pan With Menu
Hi, I need some help and not of the other posts are really addressing my problem.
(Using flash 8 and as2.)
I need to create a very simple 'virtual tour', only panning left and right. Basically panning over a still image. No zoom, no vertical movement. I want it to auto-play on load, and have 3 buttons; stop, pan left, and pan right.
I can find a million scenarios and threads about using the mouse position to pan. How do I make that same functionally apply to the buttons and still have it auto-play from center to one side on load? Also, something has to be tracking the current position so if you hit 'stop' and reverse directions the image doesn't jump.
Here is the catch- there are 25 images- so I also need to load them each in one at a time based on some internal or external menu. I don't care if its in flash, or uses xml or whatever, but they all have to auto-scroll when loaded.
Any suggestions?
Thanks in Advance!
Controlling Menu Movie Based On Which Html Page Viewer Is On
I have a very basic issue involving using variables in an html document to control a Flash movie. I know this issue has been addressed before, but I just can't grasp how to solve my problem.
I have created a Flash menu that I want to use over and over throughout the website. As many menus do, this one has buttons that, on rollover, change colors, or "light up." When the user clicks the button and goes to a page referenced by the button, I want the button to stay "lit." In other words, if the user "lights up" the "about us" button and clicks, he will be taken to the "About us" page, whereupon he will see that the "about us" menu button is still "lit."
Obviously, the way to solve the issue of keeping the menu buttons "lit" is to have a separate frame in the menu movie for each page on the website. When the user is on the "about us" page, the movie advances to the frame where in the "about us" button is "lit."
Now, the mystery. How do I tell the menu movie which page the user is on and therefore which frame to send the movie to? I know it involves variables, but I am a very new newbie and do not understand how this would work. I have many different menu buttons, so I will need to have a whole list of such variables (as in head=about, head=contact, etc.) I know this issue has been addressed before, but if someone could provide an example of the correct coding for the menu movie and what to embed (and where) in the html I would be grateful.
One Flash Banner Plays Differently When Viewer First Visit The Site And When Viewer N
I have a flash banner at the top, when the viewers first come to my site, my flash banner plays the way I want, when viewers start to navigate my site and got redirected to other pages within my site, the flash banner on the top will paly the same way as the page loaded at the first time, this is kind of annoying, I would like the flash to play once especially the flying buttons, when the visitor trying to buy something on my site, the flash should stay still, don't play the action again and again on every page, How do I do that?
you can see my example at http://leafshoppingcart.viperhosting.net/xcart/
Thanks in advance
Flash Gallery Viewer / Video Viewer
I need to find a Flash gallery viewer that can display still images but also, when the user clicks on that image, can kick off a corresponding FLV file which plays as a video, either where the image was or in its own window on the same page. It needs to be as straightforward as possible for end-users.
Ideally it should have the form of a "pack of cards" i.e users can flip from one "card" to the next, back and forth, perhaps using two controls for left and right to browse one way or the other. The stack of images and videos behind them should also be searchable alphabetically or by other criteria (e.g name).
Does anyone have any ideas as to free Flash applications which can do this and which can be easily built / embedded into web pages?
Dynamic Tab Menu (Passing Variables)
Here is the project I'm working on:
http://www.ijdesign.com/MediaCASTFlash/
I have this page built partially in Flash and HTML. The tab structure is in Flash, while the blue bar immediately below the tabs is in HTML. What we need to do is setup the Flash file (with the yellow tabs) to accept passed variables in order to define which tabs are to be available for users - for example, user "Joe Smith" might only have access to the DIGITAL LIBRARY, MY BOOKMARKS, and MY ORGANIZER tabs, while "Sandra Smith" will have access to the DIGITAL LIBRARY, MY PROGRAMS, MY BOOKMARKS, MY ORGANIZER and SYS ADMIN tabs. We would also like to be able to change the names of the tabs depending on the user (for example, they will have a spanish version, so the tab names will change to spanish).
So basically here's what is needed:
First, conditional on the value of a variable, we want to show or hide the tab (object) within the Flash movie.
*
Let's assume we change the code so that instead of:
<param name="movie" value="MediaCastBanner.swf">
it will say:
<param name="movie"
value="MediaCastBanner.swf?DigitalLibrary=1&MyProg rams=1&MyBookmarks=1&Manage=1&SysAdmin=0">
Depending on how this can be accomplished, we might also need to use Actionscript to set the horizontal position of the tabs if a tab is not available (MY PROGRAMS, for example) so the rest of the tabs would need to shift to the left to fill in the gap where the PROGRAMS tab was.
I am a designer, and though I know some Flash actionscripting (mostly movie control), I have no experience with outside variables and dynamic elements, and need help in accomplishing this for my client.
Any help is greatly appreciated. I am willing to work with an Actionscripting Guru on an paid hourly basis to accomplish this (since I think it might be very difficult for me to learn in a short time)
Thanks for any help!
Passing Information From A Dropdown Menu
Hi people,
On my contact menu i have a dropdown menu allowing a user to submit a topic i have provided for them, the trouble i am having is how do i pass that information once they have selected to my email.
My contact form is made of fields with variables which i have named and simply put in my php code aswell.These pass easily to my email but the selected topics from my drop down menu dont.
Any ideas?
i`ve noticed these kind of selection boxes (check box, combo box, etc) from the component section in flash mx dont have a varibale i could name.Whats there equivalent to a variable to allow this information to be passed from my contact form to my email.
thanks
cheers
Problem Passing A Variable To Navigation Menu
Passing the label name works for some labels and not for others?
I have a nav menu with 6 sections. I am passing a varible to the swf file on ASP pages like this fliename.swf?LabeltoLoad=<%=strLabel%>.
The first frame of the swf has this script to tell the movie which label to go to. gotoAndPlay(LabeltoLoad);.
for some reason it will work for some label names that I am passing but not for certain others?
I put a text field in the movie to make sure the correct label name is being passed to the swf and it is but the movie still fails to go to and play the label?
Any suggestions, I'm really under the gun trying to meet my deadline.
[F8] Passing Variables Between Flash Menu And ASP Pages
I want to upgrade an ASP website that has a collapsable/expanding vertical flash menu.
Currently, after you choose the sub-nav button, the navigation collapses. But i would like it to remember the state of branches, so that when they load another page or return to the page, the menu is still expanded to the same state as before. Anyone know a script that will communicate this variable between flash and ASP? or another approach?
Contextual Menu - Passing Parameters Issue
Okay, working on a right-click contextual menu to download jpegs. My particular issue is this: I've got the menu working properly, and I can create a new contextual menu item. The issue is this:
ActionScript Code:
clickPic_cmi = new ContextMenuItem("Save Picture", savePeg);
pegMenu_cm.customItems.push(clickPic_cmi);
function savePeg() {
var downloadPeg:FileReference = new FileReference();
downloadPeg.download("Deckard03.jpg", "Deckard03.jpg");
}
Where in clickPic_cmi the reference to savePeg is the function to be called. Now, this is where I'm having trouble- I want to be able to pass parameters through the function savePeg, instead of hard-coding specific references. But I can't get it to work.
Any ideas? thanks!
Contextual Menu - Passing Parameters Issue
Okay, working on a right-click contextual menu to download jpegs. My particular issue is this: I've got the menu working properly, and I can create a new contextual menu item. The issue is this:
ActionScript Code:
clickPic_cmi = new ContextMenuItem("Save Picture", savePeg);
pegMenu_cm.customItems.push(clickPic_cmi);
function savePeg() {
var downloadPeg:FileReference = new FileReference();
downloadPeg.download("Deckard03.jpg", "Deckard03.jpg");
}
Where in clickPic_cmi the reference to savePeg is the function to be called. Now, this is where I'm having trouble- I want to be able to pass parameters through the function savePeg, instead of hard-coding specific references. But I can't get it to work.
Any ideas?
Thanks to everyone who's been helping me with this problem!
[hybrid Site] - Passing Var To Flash Menu
this has definitely been addressed before, just couldn't find that thread.
anyway, i'm working on a hybrid site, the flash menu is a kind of complicated, and the client doesn't like frames, so i have to jump from one page to another, therefore loading the same flash everytime.... you probably already what my question is, how do i pass a var to the same flash every time the page loaded? thus, i can show visitors the cooresponding correct menu?
hope i get myself clear. thanks for your help.
Skip Menu Animation- Passing Variables To Html And Back?
Hi,
I'd really appreciate some help with this- I've found some good advice in the forums and tutorials but still not completely sure what to do.
Each page of my site has an swf menu at the top. On some pages the menu should have an animated intro, on other pages it should stay put. I'd like to use the same swf for each page.
I'm fine with the AS for the swf movie itself (I've already done on a frames version of the site which I'm abandoning for a non frames approach).
I understand the solution would involve passing a variable from the swf to its html page and back again in the newly loaded page.
I've heard I could use a Shared Object flash cookie to do this, but is this the only or best way? My worry is that with more security conscious web browsers, users will get security alerts popping up when changing pages. Are shared objects enabled / disabled along with regular cookies? Are they disabled by default in many web browsers?
If anyone could suggest the best way to do this I'd be really grateful.
Cheers,
JB
Passing Property Values And Passing Them Back
Hi,
I am trying to pass property values from one function to another function, let it do it's work then pass it back to original function when called.
Example:
Code:
function displayText()
{
nameCurrentMap.curMapName.text = flashServ.map;
nameCurrentMap.curMapName.embedFonts = true;
nameCurrentMap.curMapName._alpha = 0;
fadeInCurrentMap = setInterval(fadeIn, 50);
}
function fadeIn()
{
if(nameCurrentMap.curMapName._alpha < 100){
nameCurrentMap.curMapName._alpha += 5;
}else{
clearInterval(fadeIn);
}
}
As of right now this code works perfectly. However, I have to hard code my property value. I wish to make it more dynamic so I can use the function "fadIn()" more universally.
The colored (red) text shows on what I wish to make it more dynamic.
I basically want to take the property and be able to use any instance name in place and pass it back.
I hope someone out there understands on what I am trying to explain.
Any Help would be appreciated.
Thanks in advance,
- Alex
Driving Al The Way To....
Everybody who drives a car (Even if it just sometimes) knows what is looks like when you are behind the wheel and looking ahead through the window.
The road is passing by, so are building,three's and other cars.
This is exactly what I would like to make in flash.
But I got no idea how let the road move that it seems to pass by.
Hopefully someone can help me to start.
Thnx,
Jonnekke
Driving Al The Way To.....
Everybody who drives a car (Even if it just sometimes) knows what is looks like when you are behind the wheel and looking ahead through the window.
The road is passing by, so are building,three's and other cars.
This is exactly what I would like to make in flash.
But I got no idea how let the road move that it seems to pass by.
Hopefully someone can help me to start.
Thnx,
Jonnekke
Driving
ok i have a car, and i want to make it so that increases in speed as i hold down forward until a certain point, i also want to do the same thing with the wheels rotation.
i heard of something called xSpeed, but i dont know if thats in fla 5.
Driving Car...:)
I want to make an easy animation of a car driving foreward on the road like on the picture attatched.. Does anyone know any hints/tricks about a good way to do this? Or maybe someone knows about something similar that I can watch on the web for inspiration?
Driving Me Nuts
I have a problem.
In my movie I have another movie loaded into _level1. In _level1 I have a menu that I want to pop-up when someone "hits" a certain spot in that same level. I had previously tried an invisible button, but for some reason couldn't get it to work. So then I tried to use hitTest. Still didn't work. This is what I have...
In an AS layer on a frame...
startDrag(_level1.drag,true);
stop();
On my MC instance "drag"...
onClipEvent(enterFrame){
if(_level1.hit.htiTest(_level1.drag._x,_level1.dra g._y,true)==true){
_level1.tab1.play();
}else{
stop();
}
}
What I believe should happen is that when the _level1 AS frame is entered, my MC instance "drag" should start being dragged. When my MC instance "drag" hits with a rectangle MC instance "hit", that should cause my MC instance "tab1" to play from frame 1. Unfortunately nothing happens!
Can anyone tell me what I am doing wrong?
Thanks
dalara-rian
Driving Game
I'm in the process of writing a driving game (the kind where you can see the whole track from above and have small cars). I've got as far as creating the car and controlling it's movement. This bit is cool. It even has a little sideways drift if it corners too fast. I just wanted to ask if anyone had any thoughts on the best way to limit the movement of the car such that it stays within the confines of a track. This is more of a philosophical question than a nitty gritty technical question. What would your approach be? I don't think hitTest is going to be the answer....
This Is Driving Me Nuts
centred pop ups
when i put this action on my buttons in my flash intro page to open a new window
on (release) {
getURL ("javascriptpenNewWindow('http://www.essextails.com/text_documents/home.html','Home','height=400,width=650,top='+((sc reen.height/2)-(" 400 "))+',left='+((screen.width/2)-(" 650"))+'toolbar=no,scrollbars=yes')");
}
it dont work and the debugger comes back with this error
movie, Layer=homebutton, Frame=78: Line 2: ')' or ',' expected
getURL ("javascriptpenNewWindow('http://www.essextails.com/text_documents/home.html','Home','height=400,width=650,top='+((sc reen.height/2)-(" 400 "))+',left='+((screen.width/2)-(" 650"))+'toolbar=no,scrollbars=yes')");
i am not that hot with actionscript and i am not sure if i have filled in the parameters right but most of all i cant see where the errors are
heeeelp
This Is Driving Me Crazy.........
I've got a menu bar in a movie clip which reveals on an invisible button. No problem so far.
When the menu comes up the movie stops, so that the user can click on a button in the menu.
However I want to move the movie on (and hide the menu) if the mouse moves beyond a certain point. I've checked my x coords and if the mouse moves beyond 10 on the x axis I want the action to be gotoandplay at a label called close.
I've tried:-
if (_root._xmouse > 10) {
_root.gotoAndPlay ("close")
}
and I've tried various combinations of _root, what am I doing wrong , it's doing my head in !!!!!!
PDF Loading Driving Me Mad Help
I am creating a small movie which allows the user to select a product then the movie loads a PDF file. I at first used Geturl to do this and it was sucessful. The directory stucture is this.
CDRoot
CDRootpdf
CDRootpdfProducts
all the pdfs are in the products dirctory and the get url was typed in as:
on (release) {
getURL ("pdf/Products/productX.pdf");
}
now this worked until I changed a few things and had to recreate the buttons. Now the stupid thing keeps trying to load http://pdf/products/productX.pdf. I don't know what else to do other than beat the hell out of the PC so for the sake of my humble PC help.
Many thanks James
Help.... Please It's Driving Me Crazy
I am so new to Flash. I have a class project that I in such need of help. I have a home page with four navigation buttons. Each button will go to a new scene and display an animation that I made in class. No problem so far. I got the buttons to go to each scene. The problem is when I open my animation file, I cannot find out the correct way to place the separate animation on each separate scene. I have tried copy frames, paste frames. I have tried to make each animation a mc. My guided paths go haywire. Can someone please... please help me. This project is due Thursday and I am so confused.
Thanks
Driving Me Crazy
Hello-
It's a mess, but trying to change a onClipEvent to gotoAndPlay instead of getURL. I'm using MX...
Action Scripting in Question below-
onClipEvent (mouseDown)
{
for (var j = 0; j < _parent.num_menu_items; j++)
{
if (_parent["item" + j].item_bg.hitTest (_parent._parent._xmouse, _parent._parent._ymouse, true))
{
getURL (_parent.urls[j],_parent.url_opening_style);
}
}
}
Thank you for any input. See attached file.
Help This Is Driving Me Nuts....
any help greatly appreciated!
When surfing my site, a strange thing seems to happen. After a short while (a couple of minutes) the site starts playing from the beginning of my timeline as if it is being refreshed or something. It can happen from anywhere in my site (my site is all pretty much on one timeline).
weird!
any ideas?????
if you want to check it out....
lupavision.net
Ok.....this Is Driving Me Crazy
I have a 10 empty mc lined up horizontally, for loading thumbnail images, which in turn will scroll horizontally. I'm trying to load all 10 images dynamically using XML
My question is ,how do i tell XML to load the thumbnail images into each mc? Can someone pleas help or point in the right directtion?
Thanks for all help,
MIKRO
This Is Driving Me Nuts
I keep running into this problem when embedding movies with functions inside container movies. What I have is a straightforward form to mail setup [FK tutorial] with basic validation on submission. The whole thing works fine when viewed on its own from the server [and locally] but breaks down completely once viewed from the container movie. I have tried addressing the paths to the functions absolutely and relatively, commenting out code etc yet it still refuses to run correctly.. I realise the problem could be anywhere, but any pointers on how to start troubleshooting would be helpful.
Fonts Are Driving Me Mad
When I publish my swf movie and watch it on another computer there are some fonts that are changed. The thing is that in the computer where I watch the finished work I don't have the type of font that I used on the flash movie, but why is flash doing this? I don't remember that on flash 5 there was this kind of problem. Is there a way to fix this or the only way would be that the "user" downloads and installs the type of font that I used.
by the way the type of font is Westminster and yes, I already converted to symbol the text with the problem.
Driving Onto Another Frame
anyone know how to do this? i cant figure it out. something to do with...
code: onClipEvent (enterFrame) {
if (this._x> 800) {
this._x = -50;
}
}
onClipEvent (enterFrame) {
if (this._y> 600) {
this._y = -50;
}
}
onClipEvent (enterFrame) {
if (this._x <-50) {
this._x = 800;
}
}
onClipEvent (enterFrame) {
if (this._y <-50) {
this._y = 600;
}
}
This Is Driving Me Nuts
Hey everyone,
I'm still kind of a newbie; getting used to Flash has been a wild experience. Trying to get my first project finished but can't seem to get around this "bug". (Of course, it's probably not!)
What I'm trying to do is very simple: create a motion tween based on text involving position, rotation, and skewing.
I've created a simple test file (attached) to recreate the problem I'm having. When I play it on the stage (by pressing enter), the animation looks fine. When I publish it, or try to preview publish (ctrl + enter) I get junk.
Any ideas? I can't move forward until I get past this! Pls!
Thanks,
Shahid
This Is Driving Me Nuts...
I have what I thought is a simple enough bit of code. I do a loadVar to a remote site and its hangs on me. One piece of code will work, another piece will lock up. AND they are the same code!
Is there something unique about timing I need to understand with loadVar if loadVar is calling on another server?
Thanks
Christopher
Driving Myself CRaZy?
Okay, I'm making a website where when a link is clicked I use a loadMovie command to load a SWF into a MC of the main website called "holder" (cuz it "holds" the MCs). So, for example, if someone clicks the "contact" link, then "contact.swf" is loaded into the MC called "holder"....
That being said, my problem is with the preloaders of the SWFs that go into the "holder" MC. While the main site's SWF is very small, some of the SWFS being loaded into the "holder" MC are not (one is 250kb, cuz it's design portfoilo work). I cannot get the loaded SWFs preloaders to work - they keep functioning as though they're reading the getBytesLoaded and getBytesTotal of the main website's SWF (so a SWF that's like 250 kb has a preloader that only works for the 15 kb of the main site - then it just sits there and waits on a blank screen until the loaded SWF is done loading)....
I've tried "this.getBytesLoaded" and "_root.getBytesLoaded" and "_root.holder.getByetsLoaded" - what am I doing wrong?!?....
Driving Game (Please Help)
Hi All!
I am making a first attempt at a driving game - but am having a bit of trouble with the screens.
I want the car to be able to drive off one screen and start on another without the user having to click anything. The car is controlled with the arrow keys.
Does anyone have any ideas?
Driving Directions Help.
I'm trying to make a flash form that when the user enters there address and zip etc. it will link to a yahoo maps or mapquest and get driving directions to my address. I'm having troubles can anyone help or have any ideas? Thanks in advance,
Driving Problem Please Help
right, i'm making a GTA 1 type game, with a birds eye view of a car the player can control. ive sorted out the car bit, but i want the background to scroll when the car drives. if you know what i mean. so when the car moves 3/4 the way up the screen the background starts scrolling up,and down and sideways etc.
i have no script so far atall so anything would help.
thanx.thefestivelemon
Driving Problem Please Help
please help somebody!!!! i have a game with an arial view of a car and map. this is my code at the moment....
onClipEvent (enterFrame) {
_root.speed = speed;
_root.speedness = Number(speed)*2;
_root.speedness -= _root.speedness%1;
if (_root.speedness<1) {
_root.speedness = 1;
}
if (Key.isDown(Key.DOWN)) {
speed += 2;
}
if (Key.isDown(Key.UP)) {
speed -= 1;
}
if (Math.abs(speed)>20) {
speed *= .7;
}
if (Key.isDown(Key.LEFT)) {
_rotation -= 14;
}
if (Key.isDown(Key.RIGHT)) {
_rotation += 14;
}
speed *= .98;
x = Math.sin(_rotation*(Math.PI/180))*speed;
y = Math.cos(_rotation*(Math.PI/180))*speed*-1;
if (!_root.map.hitTest(_x+x, _y+y, true)) {
_x += x;
_y += y;
} else {
speed *= -.6;
}
}
the speed is ok it displays it fine. the hittest(); with the map is also ok, im just having trouble making the map scroll as you move around it. please help.
ta.mike.
Swf Offset And It's Driving Me Mad...
I must be missing something here. My swf is 286X190 in size and I've inserted it into a table that is also 286X190. However, when the page loads, the swf resizes itself so that it's slightly skewed. Go here to see the page:
http://www.solartanthru.com/test2/header.htm
Any ideas?
This Is Driving Me Insane
I have a movie I am trying to do a preloader for but nothing is working..no matter what I do..nothing will play until everything is loaded.. I put a new scene in before my main scene and just typed a number..but that won't even show up until the entire movie is loaded...everything works fine once the movie is loaded... what are some possible reasons for the file doing this. Shouldn't scene 1 play and load before scene 2(I took out the preloader script just to check and same thing..the m,ovie doesn't start until everything is loaded) I need some suggestions before I pull out all of my hair
thanks,
Jeff
This Is Driving Me Crazy
good afternoon everyone!
i have been working on and off with this file. it is links for a school district website. i have 3 of the 4 links working, but cant get the link entitled "technology services" to work properly. the text keeps popping up instead of sliding down... grrr... can someone take a look and tell me where i have made my mistake?
thanks a ga-zillion!
Driving Me Nuts
Any help gratefully appreciated on this as the deadline is 8am tomorrow GMT
FlashMX 2004
I have a movie developed and it works fine when on its own. http://www.spoiltchild.com/new/davis.swf
However when loaded into another movie at level10 as it will be, it doesnt work. http://www.spoiltchild.com/new/holder.swf
Any ideas?
.fla is here: http://www.spoiltchild.com/new/davis.fla
I realy appreciate any help on this.
This Is Driving Me Crazy
Get this...
I have a movieclip in a project, that I want to change the colour of (dynamically).
Now... when run within my project.fla it doesnt work - but if I copy the frame with its actions and paste it into another file it works fine!!!!
this is even weirder.... if I delete ALL the frames and layers and ALL the library instances from my project.fla and repaste my frame with its actions it STILL doesnt work!!!! (the exact same frame and actions that works in other files)
these things are sent to test us - but this is doin' mi heed in!! :-)
Ive attached the fla (which works) if anybody could shed some light on this it would be MUCH appreciated
|