Trouble With Adding A New Scene
Hi,
I have a main scene that begins with a animation. Now when i add a new scene to house a preloader and place it above the main scene and play the movie the preloader works fine but when it plays the next scene everything stops at frame 1. At 1st I thought it was my preloader but i tripled checked it and it was fine, I also just added a blank scene but i get the same problem. Im using flash 8. ne 1 ever get this problem?
thx
FlashKit > Flash Help > Flash ActionScript
Posted on: 06-14-2006, 07:00 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Having Trouble Adding A SWF File To Vb.net
Ok so I found this on a help site somewhere but I can't seem to locate the Shockwave control in VB.net. I am currently using the trial version of Flash 8 and vb.net from 2002. Are my versions incompatible?
VB.Net
Right click on the tool box. Select “Add/Remove Items…”. Select “COM Components”
Select “Shockwave Flash Object”. Click OK
Draw it on the form
Name it “SF1”
Adding Load Bar Trouble
hey guys, i think i posted this once before but i still havnt gotten a solution.
basically what i want to achieve is a site like the "Preloader and Transition for Dynamic Files" tutorial but where it says "loading" i want to replace with a loading bar. now i thought this would be pretty simple and straight forward but as hard as i try to make it work, it wont
this is my best guess so far in the 'content' actionscript
onClipEvent (enterFrame) {
if (!loaded && this._url != _root._url) {
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
_root.transition.loadBar._width = getPercent*100;
_root.transition.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
loaded = true;
_root.transition.gotoAndPlay("opening");
}
}
}
i thought that should work but it doesnt? can anyone help me out? ill really appreciate some help.
cheers, evan
Adding Load Bar Trouble
hey guys, i think i posted this once before but i still havnt gotten a solution.
basically what i want to achieve is a site like the "Preloader and Transition for Dynamic Files" tutorial but where it says "loading" i want to replace with a loading bar. now i thought this would be pretty simple and straight forward but as hard as i try to make it work, it wont
this is my best guess so far in the 'content' actionscript
onClipEvent (enterFrame) {
if (!loaded && this._url != _root._url) {
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
_root.transition.loadBar._width = getPercent*100;
_root.transition.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
loaded = true;
_root.transition.gotoAndPlay("opening");
}
}
}
i thought that should work but it doesnt? can anyone help me out? ill really appreciate some help.
cheers, evan
Trouble Adding .mp3 To Project
Hello, I have just started to play around with Flash this week and I am having trouble importing an .mp3 file to my project. It gives me the error, "One or more files were not imported because there were problems reading them". However, this is only for certain .mp3 files. I can import some .mp3's, just not all of them. They all exist in the same folder and I made sure that the file name were legit. I am completey lost, so if anybody could help, I would appreciate it!
Regards,
Corey
Adding Scene Issue
Hi !
I did flash project in one scene. I put preloader in frond of it (in new scene). Preloader works fine, but the code in next scene doesn't work at all!!!!
I didn't find any solution. I tried to paste all frames to new empty movie with two scenes. Script started to work, but gotoAndPlay commands dont work correctly.
Leos
Problems Adding Just A Scene
hi guys,
i am getting in pain just adding a second scene to my flash 8 artwork.
...i have finished an intro and now the movie should jump to a second scene using gotoandplay("scene2", 1).
as soon as i add the second new scene from the scene inspector and play the movie, i get a movie that stops playing to the first (i think it's so) frame of first scene....well at the end ...as soon as i add a scene, the movie stops. no code added or removed!!!it's strange!!!
please helppppp
thank
adro
Adding A Link To Scene
Hi,
I am a total beginner in Flash and wanted to know, how to add a link that opens in a new window to a scene?
I found out that on AS2 it was done in a manner similar to:
ActionScript Code:
on (release)
{
getURL("http://www.google.com",_new)
}
or something like that.
Right now I got to this:
ActionScript Code:
Scene.addEventListener(MouseEvent.CLICK,goTo);
function goTo(e:MouseEvent) {
var request:URLRequest = new URLRequest("http://www.google.com/");
navigateToURL(request);
}
But I get an error 1061
Basically I need to add a link to another web page on my banner.
Help please?!
Still Having Trouble Adding Link To Swf File
Hey There,
I'm still having difficulty adding a hyperlink to an swf file... i tried adding the 'get url' action into the graphic itself, even changed it into a movie behavior- but for some reason when i go to 'basic actions', and scroll down to the 'on mouse event' or 'on clip event', they aren't highlighted- so i can't choose them.
so- essentially. i want the animation to loop, but i only want the url link to open if someone clicks on the animation. the animations i want to become hyperlinks are at the bottom of this page: http://www.lynnguppy.com/johnnyfish.htm
? any more help ? i know i'm probably missing something simple. but i guess that's why i'm a newbie.
thanks for your kind indulgence, lynn
Having Trouble With Dynamic Text Adding, Etc
Hello, Ive gotten lots of help here for my dynamic text and this is the last thing to complete my site.
What I have is a main scene with 2 movie clips
one movie clip you make a selection
the other movie clip shows the total cost, adding or subtracting the amount of your choice.
Its confusing so ill show you what code I have
On first frame of the main scene
Code:
_root.baseprice=700;
_root.surfaceprice=0;
_root.cupprice=0;
_root.legprice=0;
_root.addonprice=0;
_root.total_price=_root.baseprice + _root.surfaceprice + _root.cupprice + _root.legprice + _root.addonprice;
In the movie clip where I want to display the total (named "right"), i have a dynamic text field var: named "total_price" and this code in the first frame of the clip
Code:
_root.right.total_price=_root.total_price;
Now this displays the "700" like it should. But I want it to change as i make my selections in the other movie clip.
So I have this code for 3 buttons, one button makes the value 0, one 100, and one 200.
Code:
//first button
on (press) {
_root.surfaceprice =0;
//different button
on (press) {
_root.surfaceprice =100;
//last button
on (press) {
_root.surfaceprice =200;
So, in theory, shouldnt pressing these buttons change the value of the "_root.surfaceprice" in the main scene, then in turn chang the value of the "total_price" in the other movie clip?
Thank you for the help.
Brian
Trouble Adding Eventlistener In Loop
I'm having trouble adding this eventlistener in a simple loop. Can somebody tell, why the eventhandler doesn't get triggered?
Code:
// handler
function countryHandler(e:MouseEvent)
{
trace(e.currentTarget.name);
}
// add eventlistener loop
for (var i:Number = 0; i < isoCountriesArr.length; i++)
{
var tempId:String = isoCountriesArr[i];
if (map_mc.getChildByName(tempId) != null)
{
var tempCountryMc:MovieClip = MovieClip(map_mc.getChildByName(tempId));
countryArray.push(tempCountryMc)
tempCountryMc.addEventListener(MouseEvent.CLICK, countryHandler);
}
}
Trouble Adding Flvplayback Flash Cs3
Hi,
I can't seem to add the flvplayback component to the stage to a flash actionscript 3 file (for that matter my video imports seem to fail as well)---i have no trouble doing it in a action script 2 file though.
any advice?
thanks.
FMS 2 - Trouble Adding Application (CentOS)
Hi,
Very recently I managed to install on a CentOS 4.4 platform. I checked what services were running:
./fmsmgr list
21937 pts/0 00:00:00 fmsmaster
32580 pts/0 00:00:00 fmsadmin
I tried to develop my first test application found in 'Learning Flash Media Server 2' book. After creating the subfolder under applications folder, I them tried to add the application inside the Admin Console. The application was added momentarily and then disappeared. I went to check the messages log and by stopping and starting the fms server I was able to isolate the weird Failed messages below:
Jul 27 14:21:49 popcodestudio 257[21937]: Server starting...
Jul 27 14:21:49 popcodestudio Server[21937]: No primary license key found. Switching to Developer Edition.
Jul 27 14:21:49 popcodestudio 257[21937]: Server started (/opt/macromedia/fms/conf/Server.xml).
Jul 27 14:21:49 popcodestudio Server[21950]: No primary license key found. Switching to Developer Edition.
Jul 27 14:21:49 popcodestudio Server[21953]: No primary license key found. Switching to Developer Edition.
Jul 27 14:21:49 popcodestudio Adaptor[21950]: Listener started ( _defaultRoot__edge1 ) : 19350
Jul 27 14:21:50 popcodestudio Adaptor[21950]: Failed to create thread (TCProtocolAdaptor::startListenerThread).
Jul 27 14:21:50 popcodestudio Adaptor[21950]: Failed to start listeners for adaptor _defaultRoot__edge1.
Can anybody help me please, I couldn't find any help anywhere on the WEB.
Thanks a lot
Trouble Adding Commas To String
I'm using code I found on this site to add commas to a large number (so that a number like 1000000 appears as 1,000,000). Below is the actionscript I'm using.
When I define the variable debt as any number, the script works perfectly. But if I define debt as a variable passed to the movie from a PHP file, then the script puts the commas in the wrong places (i.e., 10,000,00). Can anyone explain to me why this would happen, and how to fix it?
var input = debt;
var inputString = input.toString();
var finalString = "$";
var count = 0;
var tempString = "";
for (var i = inputString.length-1; i>=0; i--) {
count++;
tempString += inputString.charAt(i);
if ((count%3 == 0) && (i - 1 >= 0)) {
tempString += ",";
}
}
for (var k = tempString.length; k>=0; k--) {
finalString += tempString.charAt(k);
}
return(finalString);
Trouble Adding Numbers In Array
As an excercise, I'm trying to create a class that will take the average value of numbers in an array.
I'm stuck on adding the values of the array elements. I keep getting "NaN" for the total. Below is my code.
ActionScript Code:
private function getTotal ():Number
{
var total:Number;
for (var i = 0; i<numArray.length; i++)
{
total += Number(numArray[i]);
}
trace("total= "+total);
return (total);
}
Having Trouble Adding Adverts And External Xml
Hello,
I am having trouble adding adverts and external files to a flash website.
I needs some guidance on how to do this properly. Can someone share their knowledge with me?
Thanks,
Sid
Trouble Testing Scene
I am building a flash site, and was testing a particular scene of my movie. Everything was working fine (buttons, scripting,etc). I didn't change any thing and went back to retest the scene, and now all of a sudden it sticks, it won't recognize the actions.
I've attached the fla source file and its the environment scene that is having problems.
Can anyone help?
Thanks
Having Trouble Just Testing Scene
Just started to build a scene to display several items, I set a script on frame 10, goto and play Frame 2, and the "testscene" is hopping back and forth from the first to the final screne of the movie. Not really sure why this is happening, if anybody could clue this rookie in, it would be greatly appreciated.
THANKS
Adding A Scene Distorts Images
This seems very strange to me, but why would adding a scene to the movie lower the quality of the images I am using. I have images that look fine, but if I just add a scene to the movie the quality goes way down.
Thanks for the help,
Todd
Adding All Instances In A Scene To An Array
I want to instruct actionScript to look at my scene, go though each item on it (e.g. all of the check boxes and radio buttons) and add each of these items that have got an instance name into an array.
I can't think of a simple solution to this. Can anyone help please?
[F8] Adding Text Field In Scene 2
I have a two scene movie
In the second scene i have
Code:
createTextField("word_txt", 2000, 100, 100, 300, 100);
word_txt.multiline = true;
word_txt.wordWrap = true;
word_txt.border=true;
var my_fmt:TextFormat = new TextFormat();
my_fmt.color = 0xFF0000;
my_fmt.underline = true;
word_txt.text = "This is my first test field object text.";
word_txt.setTextFormat(my_fmt);
If I export the whole movie this doesn't work
If I export just the second scene it does work.
What do I need to alter to make it work if I export the whole scene
THanks in advance
Adding All Instances In A Scene To An Array
I want to instruct actionScript to look at my scene, go though each item on it (e.g. all of the check boxes and radio buttons) and add each of these items that have got an instance name into an array.
I can't think of a simple solution to this. Can anyone help please?
Adding Up Score From Movieclip To Scene
Hi, I am doing a quiz game project using flash that is due soon. I am having a bit of problem with adding up score from many movieclips and displaying it on another scene.
Any help is deeply appreciated.Thanks in advance.
Blurry Graphics When Adding A Scene
Hello...i'm new at this forum and here's my first question:
When i add an extra scene to my movie (flash MX 2004) than all my graphics become blurry like a bad jpg. When i delete the scene again, the graphics are perfect.
Is this a bug in flash or am i doing something wrong? The graphics I imported are png or jpg.
I tried some changes with the jpg publishing quality, but that didn't work.
So..anyone with the solution?
Thnx in advance.
Trouble With Adding Buttons That Link To Other Scenes...? (PLEASE HELP)
Greetings...
I have put in the following code, to link to various scenes in my movie...
================================================
For example:
on (press, release) {
gotoAndPlay("Scene 6", 1);
}
================================================
Now, I place these actionscripts on the images that I converted to Flash Buttons and the following error comes up...
================================================
Example:
Scene=Scene 2, Layer=Presentations, Frame=485: Line 1: Mouse events are permitted only for button instances
on (press, release) {
================================================
When I play my movie, the "Buttons" that I created do act like real buttons (my mouse changes on MouseOver) but when I click them, nothing happens...
Why would this happen? I have other buttons in my movie, on other pages that link just fine and I used the same code... Why isn't it working now?
Thanks!!!
Dan
Trouble Adding Duplicated Movieclips To Array
whats up everybody,
once again its almost time to choke the young'ns. I'm on my last nerve and someone or something is gonna catch the wrath.
i have a question or problem that seems easy enough to handle. i've been trying to store my duplicated movie clips inside an array so i can access the x and y positions later. i have duplicate about 20 movie clips and need to have their names stored in an array while they're being duplicated. here's what my code looks like so far:
var intervalID;
intervalID = setInterval(checkLoadStatus, 100);
function checkLoadStatus() {
if(Title.loaded){
clearInterval(intervalID);
//split artist string into array
aArtists = Title.artists.split(",");
aPhotos = Title.photos.split(",");
// initialize stars with Title data
star_amount = aArtists.length;
trace("XXstar_amount = " + star_amount);
//declare arrays
a_Stars = new Array(star_amount);
a_centerCheck = new Array(star_amount);
for (i=0; i<star_amount; i++){
a_Stars[i] = duplicateMovieClip("star", "star" + i, 1+i );
//set length of array
a_Stars[i] = this["star" + i];
//set boolean values to check for position
a_centerCheck[i] = false;
}
star._visible = false;
trace("AAthe elements in a_Stars: " + a_Stars[1]._name);
trace("ZZthe elements in a_centerCheck: " + a_centerCheck[5]);
}
}
the problem is that flash is not storing the elements of the array. on my trace command a_Stars array keeps coming up empty while a_centerCheck displays its elements all fine. stars(the duplicated movie clip) is a child so the target is i believe to be ok. (but is probably wrong also - i just don't know).
any help, as always, is greatly appreciated.
thanks
erase
Scene Jumping Trouble - Could Someone Check This Out?
Hi, I posted a message here a while ago, but realized no one would really be able to help unless I showed them the actual problem.
One problem is the Loading Screen: I can't get it to work. I temporarily set the screen to simply jump to the next page to help you view it, but otherwise, it won't load properly.
The other problem is with my menu screen. When I click the GAMES button, it won't go to the next scene, it just resets.
The link is here: http://www.geocities.com/datadogg/Menu.fla
Thanks in advance.
Scene Trouble/possibly Actionscript
created a piece of flash which, when dragged from left to right, and vice versa, the movie clip would slide along and seem everlasting. I had it working fine
i then tried to incorporate it into my project, but when i put it into SCENE 8 (or any other scene from 2 onwards) the piece didnt work and the movie clip was draggable (not locked on the x as it should be) and it didnt work. I then moved the scene to the top of the pile of scenes (new order 8, 1, 2,3 etc), and the piece worked fine!!! I cant understand why it dont work when its placed after scene 1. Theres 3 frames and each frame has actionscript:
Frame 1
mo2._x= getProperty("mo1",_x)+500;
mo2._y= getProperty("mo1",_y);
moW =getProperty("mo1",_width);
Frame 2
mousex=_xmouse;
mo2._x= getProperty("mo1",_x)+moW;
mo1._x= getProperty("mo2",_x)-moW;
mo1._y= 0;
mo2._y= 0;
if (mo1._x<-moW){
mo1._x =getProperty("mo2",_x)+moW;
}
if (mo2._x<-moW){
mo2._x =getProperty("mo1",_x)+moW;
}
if (mo1._x>=moW){
mo1._x =-moW;
mo2._x =0;
}
if (mo2._x>moW){
mo2._x =getProperty("mo1",_x)-moW;
}
Frame 3
gotoAndPlay (2);
i have tried changing it to gotoAndPlay ("Scene 8", 2); but that dont work either!
Anyone got any idea as to where im goin wrong, its driving me nuts!
THE FLA CAN BE DOWNLOADED HERE
consolevolution.pwp.blueyonder.co.uk/tarot.fla
Goto And Play Scene... Having Trouble
This should be very simple so I must be doing something stupid wrong, but heres what I have.
A movie with 3 diffent scenes. On each scene is a navigation menu on the left. When you click one of the buttons this is the code;
on (release) {
gotoAndPlay("Tour"); also have tried it with gotoAndPlay("Tour", 1);
}
Shouldn't this goto scene "Tour" and play it?
Instead it goes to the scene that follows the current scene and if its on the last scene it starts over by going to the first scene. What am I doing wrong? Thanks in advance...
Adding 2 Sound Fx To A Scene But It Interupts The First Loop
Hi, i am working through one of the tutorials in swish and i have come accross a problem. IN THE TUTORIAL "THIS IS MY MESSAGE" i have added the vector graphics and the initial sound. However i wanted to added a sound effect when the first picture loaded in. When i did this my first sound loop cuts of then startes again when the sound fx is meant to cut in. So i look at sound/actions panel. I loop 88amp3 15 times and then at my first jpeg i loop a sound fx once. But when i play the whole scene my sound fx cuts in through the whole thing. When i go back to the sound panel i find that the setting have changed and the soundfx wants to play 15 times now overiding my initial 88amp3 sound loop. Its just that in future i want to put key sounds along side pics loading in and what not, and im not sure how to co-ordinate this. Anyone know what im doing wrong? Im pretty sure im close but i cant find the solution. Any takers?
Regards,
Gibbo.
Images Look Crappy When Adding Preload-scene
I have an imagesequence that should be exported with the swf in highest quality. Works great on it self and all, no problem whatsoever, UNTIL....
I added a preloader in a scene
Now when I export, the images look all crappy! Almost bitmap-like. I swear I've checked the properties of all images and the export-settings and all that.
Can someone help me with this problem?
Much appreciated,
Mediamonkey
Adding Scene Makes Images Fuzzy
I have a flash movie (flash 5) with imported PNGs for buttons. When I add a new scene (either by duplicating or adding new), the quality of these images plummets, even though I have the publish settings set to 100% jpg quality. As soon as I delete the new scene(s), the quality is restored. Obviously I can't publish a movie with poor quality images (it's like they've been enlarged and then over-sharpened in paintshop pro or similar, except they haven't). Does anyone know if/how I can remedy this? TIA
Help Adding Moviclips/Btns To My Papervision Scene
Please help. I'm new to papervision and AS3. I'm trying to spin a cube with materials and interact with buttons on the cube. I was able to assemble this:
http://www.methodengine.com/clients/...vidboxspin.swf
It shows my cube with my materials. I placed buttons over the box that spin it. I would like those buttons to actually appear and spin on the cube itself.
Can anyone out there point me in the right direction. I was able to add movieClips on the stage, but no in the front cube material.
Here is my code to make this happen:
ActionScript Code:
package {
import flash.display.*;
import flash.filters.*;
import flash.events.*;
// Import Papervision3D
import org.papervision3d.events.InteractiveScene3DEvent;
import org.papervision3d.scenes.*;
import org.papervision3d.cameras.Camera3D;
import org.papervision3d.objects.DisplayObject3D;
import org.papervision3d.materials.*;
import org.papervision3d.utils.virtualmouse.VirtualMouse;
import org.papervision3d.utils.virtualmouse.IVirtualMouseEvent;
import org.papervision3d.utils.*;
import org.papervision3d.objects.*;
import flash.text.TextField;
import flash.utils.*;
public class Main extends MovieClip {
public var mc :MovieClip;
// ___________________________________________________________________ 3D vars
var container:Sprite;
// var scene:Scene3D;
var scene :InteractiveScene3D;
var camera:Camera3D;
var ism:InteractiveSceneManager;
var plane:Plane;
var time:Number;
var tweening:Boolean = false;
var myVidfront:Boolean = true;
var mouse:Mouse3D;
var vMouse:VirtualMouse;
var material:InteractiveMovieMaterial;
public var myVidContainer:MovieClip;
private var frontMaterial:BitmapFileMaterial = new BitmapFileMaterial("images/player2_back.png");
private var backMaterial:InteractiveMovieAssetMaterial = new InteractiveMovieAssetMaterial("flv", true, true);
private var targetrotationY:Number = 0;
var p:Cube = new Cube(new MaterialsList( {
front: frontMaterial,
back: backMaterial,
left: new ColorMaterial( 0x000000),
right: new ColorMaterial( 0x000000),
top: new ColorMaterial( 0x000000),
bottom: new ColorMaterial( 0x000000)
} ), 800, 100, 500, 1, 1, 1);
public function Main() {
init();
time = getTimer();
}
public function init():void {
stage.scaleMode = "noScale";
// add a spin btn
var spin180_btn:PlayVid= new PlayVid();
spin180_btn.x = 500;
spin180_btn.y = 25;
addChild(spin180_btn);
// add another spin btn
var spin360_btn:PlayVid= new PlayVid();
spin360_btn.x = 400;
spin360_btn.y = 25;
addChild(spin360_btn);
init3D();
addEventListener( Event.ENTER_FRAME, loop );
spin180_btn.addEventListener(MouseEvent.CLICK, spin180);
spin360_btn.addEventListener(MouseEvent.CLICK, spin360);
}
// ___________________________________________________________________ Init3D
public function init3D():void {
// Create container sprite and center it in the stage
container = new Sprite();
addChild( container );
container.name = "mainCont";
container.x = 270;
container.y = 200;
// Create scene
scene = new InteractiveScene3D( container );
ism = scene.interactiveSceneManager;
scene.addChild(p);
p.rotationX = 0;
p.rotationZ = 0;
p.rotationY = 0;
p.x = stage.stageWidth / 4;
p.y = -100;
var moreVids_btn:MoreVids = new MoreVids();
moreVids_btn.x = 480;
moreVids_btn.y = -130;
// scene.container.addChildAt(moreVids_btn,1);
moreVids_btn.addEventListener(MouseEvent.CLICK, spin360);
// Create camera
camera = new Camera3D();
camera.zoom = 10;
camera.sort = true;
}
private function spin180(event:Event):void {
tweening = true;
trace(p);
if(myVidfront){
myVidfront = false;
targetrotationY = 180;
}else{
myVidfront = true;
targetrotationY = 0;
}
}
private function spin360(event:Event):void {
tweening = true;
if(myVidfront){
myVidfront = false;
targetrotationY = 360;
}else{
myVidfront = true;
targetrotationY = 0;
}
}
// ___________________________________________________________________ Loop
function loop(event:Event):void {
if (tweening) {
if (p.rotationY <targetrotationY) {
p.rotationY += Math.sqrt(targetrotationY-p.rotationY);
p.rotationY = Math.round(p.rotationY);
} else if (p.rotationY> targetrotationY) {
p.rotationY -= Math.sqrt(p.rotationY-targetrotationY);
p.rotationY = Math.round(p.rotationY);
}
}
scene.renderCamera( this.camera );
}
}
}
Adding New Frames Before Game Scene [mucking Up]
Got a game, asteroids, and it works fine, but when i move the frames along 1 so that i can add an into screen, with high scores and a play button, it throws off all my remove movieClips.
if anyone know as to why, would be great help.
Having Trouble Adding Action Script To Button Symbol
Hello everyone:
I am hoping someone will read this as I am a developer in 'dires straits' with Flash ( a newbie). My problem regards a layer called "button" which has already been converted to symbol and turned into an invisible button. The problem lies when I try to use the selection tool to select it so that I can add action script to it. Instead of the actions dialogue box saying "actions-button", it says "actions-frame", and as a result, the action script doesn't work. I don't know what to do, it should be simple to select it but something is wrong. If you feel a need to help a developer in need, you can email me at support@tahutiwebsites.com, and I can e-mail you the file so that you can help. Thanks, or you can call me at 310-867-5167
Corinna
Trouble With Scene Parameter & Root Timeline
Hi all,
I am using a drop down menu in a flash movie, and I am having trouble with the
scene parameter in the gotoAndPlay function.
Basicaly, my buttons are in a movie clip, and since they are not located in
the root timeline, it won't send the playhead to the ("scene", "frame") that I
specify.
I understand that you can use the scene parameter only on the root Timeline,
not within Timelines for movie clips or other objects in the document. So I am
wondering if there is any way to inform the button that I am refering to the root timeline?
This is a problem for me because I am using transitions between sections and my drop down menu really needs to be in a movie clip, I cannot make it work on the root timeline.
Thank you for your precious help.
Catherine
Trouble Adding Dynamically Named Elements To An Array Immediate Help Is Needed
OK, here we go... if someone can help me figure this out, I will have successfully completed my site in time for the deadline today at noon...
-- I have an array located at "_parent.emptyWindows"
-- "_parent[this._name]" gives me the name of the current MC and the value I want to add to array "emptyWindows"
-- I'm trying to add an element in this manner:
Code:
_parent.emptyWindows[_parent[this._name]] = _parent[this._name];
That is not working, but not even this is working for me:
Code:
_parent.emptyWindows["bird"] = "bird";
Here I've given an explicit value and name for the element to be added to the array, but obviously something is wrong in my context and I just am NOT finding it.
Any guesses???
Much appreciation,
The Dust
Trouble Importing Video Into Flash 8 Multi-scene Movie
A Quicktime movie that I import into a twenty scene Flash 8 Pro document refuses to play or even to appear when I Test Movie (or Test Scene). However, the same Quicktime movie has no trouble playing when I import it into a new Flash document. I get the same results with streaming or progressive importing and I am repeating the same exact steps in both cases.
Can anyone tell me what I might be doing wrong?
Trouble Adding Animation To Existing Rollover Animation
Hey all,
I'm using Flash 8. I have a picture of a building which is segmented into floors. Upon rolling over a grouping of floors the user sees either a blue overlay, indicating they can click, or a gray overlay simply describing what the floor is. I already have some actionscript in place and I don't need to alter it, I just added more animation to an existing movieclip rollover, but it's not quite working. On one of the floors that rolls-over gray, I want an additional rollover with some text. So I made a movie clip of the rollover animating out and the type coming in and I just added it to the gray fade in movie clip since there was already onRollover actionscript in place there. However, the rollover kept playing over and over again. So, of course I added a Stop action. Then, the animation didn't work anymore, it just rolled over to the final state of that animation. Does anyone have any ideas of what I can do, or what I can do as an alternative? I'll post the actionscript in case that helps. Like I said, the rollover "rolls-over" but either loops (without a Stop action), or rolls over to the final frame in the animation (with a Stop action).
Thanks!
Mc
Having Trouble Adding Additional Text To Text Stored In Var
How can i add "&print=page" to printVar=facility.php?type=all&state=ak so it would be, printVar=facility.php?type=all&state=ak"&print=pag e in a button?
I tried this and it won't work..
[code]
on(release){
getURL(printVar+"&print=page")
}
or
on(release){
newPrintVar = printVar+"&print=page"
getURL(newPrintVar)
}
"Scene" Trouble
Hello,
First of all, very useful site and all that stuff. (I'm sure you've heard it all before )
Without dragging it out, my 'task' is to basically build a Flash website. I've never made anything in Flash before (worthwhile) and although I know bits and pieces of the program - it's the depth that causes confusion. I say depth, more specifically you could say ActionScripting.
I've made a home page, which I'm very pleased with in regards to what I know. My next problem is getting the buttons to work. I want to the home page animation to run and then stop. I've got it to run and stop, but I then want the option of clicking one of the above (4) buttons and one of these buttons bringing me to a different section (scene) of my website.
Basically, how do I get to 'link' up all the scenes?
I've a few other questions in regard to getting my flash doc. a bit more advanced, but I'll leave them for now.
Needless to say I've looked through several of the tuts. on here and either due to my lack of knowledge (most likely option) or lack of good guidance in the tuts - I've had no advancement at all in getting my scenes to link up.
Any information needed, then please do let me know. I'm running Flash 8, currently.
Thank you for your help.
Won't Change Scene...neither With Actionscript,neither From Scene To Scene
I have a big problem...why won't my movie change from my intro to scene one...I built my intro, i built my scene one but it won't skip from one to another. At the begining i had a loop problem on my intro,and it would never go on to the next scene,and now even if i build a new page it won't change to another scene either....HELP PLEASE!!!
[F8] Flash Site, Multiple Scenes, Button Moves Scene To Scene Instead Of Navigating
Hi...I am very new at flash, so forgive my ignorance in advance...I really really need help!
I created a site, separated into scenes (intro, main-home, about, portfolio, press, contact).
About half the time the navigational buttons work fine. However, the other half of the time one of the buttons, the Press button, instead of bringing me to the Press scene, just moves scene to scene (for example, say I'm on the home page and I want to go to the Press page, it just goes to the about page...I hit the button again it goes to the Portfolio page, etc.). I think the problem lies somewhere in bypassing the intro prematurely (you can skip intro and go straight to the site/home-main scene), but I'm not positive.
Here's the code for the Press button:
on (release) {
gotoAndPlay("press", "pressframe");
}
where pressframe is the name of the first frames in the Press scene.
I can upload the fla file to my own site for download and review if necessary....
Please help!....I am losing sleep and hair over this.
Help With Passing Number From Scene 1 To Scene 2's Dynamic Text Field
hi all ,
i have 2 scenes on the first i retreve user information from flash and through php to a mysql database then send it back to flash. on one of the lines i retreive a id number
content.htmlText += " <a href='#" + this["id"+i] + "'>" + this["id"+i] + "</a><br><br>";
when the user clicks on this ahref i want to goto scene 2 and insert the id into a dynamic textfield with an instance name of "recorde_id"
this scene is complete and works it retreives more infor about the user..
but i have to manualy enter a id number into a INPUT filed i want it to be automatic that why i have changed it to be dynamic so it can capter the ahref from scene 1.. if you need more code or information just ask and ill deliver, im a flash newbee..
cheers aron.
Targeting Frame Label In Scene From Movie Clip In Same Scene
Hey Pals,
I'm trying to target a frame label on the timeline of a scene from a movie clip within the same scene, using Flash MX 2004 Pro. The scene is ultimately used as a .swf to load as a page of a website. The frame label is called "miscOn", the scene is called "misc". The below code is attached to a button within the movie clip.
on (release) {
loadMovieNum("tajwebsite_main.swf",1);
gotoAndPlay(miscOn);
}
Thanks!
Stu
Simple Gotoandplay - Animate The Scene Out Before Playing Selected Scene?
Hey there again,
Just wondering if you guys could point me in the right direction.
Before, when I made full-flash websites, when I clicked a button I'd have it gotoandplay frame 60 or whatever (or scene 2 or 3 or 4 etc.) and that page would start up there and have a nice little animating intro but it would be a very abrupt start because anything on the previous page would just disappeer jaggedly.
But I've seen a lot of nice sites, that once you press a button, it'll clean up the current scene, say have everything burn out or fade or or something instead of just having the next option just appear, then go to the selected page. Say they clicked News or Contact, and they were on products. It would allow me to have a timeline to animate all the objects out (just a simple tween) then once it reached the end and all the objects were out, it knew which button they pressed and where to gotoandplay.
This is probably easy actionscripting (or not, I have no clue) so it would be greatly appreciated if someone could direct me, thanks!
Scene 2 Works Fine, But When Preloaded Added Scene Will Not Work
I have a website at wosso.com which I needed a preloader. So currently the site works fine. I am toying with a preloaded, but when I add it the main part of the site does not function.
There are two scenes, PRELOADER and SCENE 1. My preloader includes this script in the first frame of the preloader: ifFrameLoaded ("Scene 1", 105){
gotoAndPlay ("Scene 1", 1);
}
I have also inluded this line at the end of the preloader, but also tried it without this line:
gotoAndPlay ("Preload", 1);
I haven't used Flash in some time and I am not good at scripting. It seems to make sense, but why is it not working when SCnene 1 works fine by itself.
Any sulotion/suggestions?
Thanks,
Wayne
Play The Rest Of Current Scene, THEN Gotoandplay Another Pre-determined Scene
Hi,
Im my scene contains 6 buttons, I want button '1' to play the rest of the current scene (for example scene '0' then goto and play scene '1'
I want button '2' to play the rest of the current scene (for example scene '0' then goto and play scene '2'
I want button '3' to play the rest of the current scene (for example scene '0' then goto and play scene '3'
etc....
any ideas? this is for actionscript 3. My current script just makes the button goto a certain frame, can I edit it? here it is:
stop();
thumbbtn1.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler1);
function mouseDownHandler1(event:MouseEvent):void {
gotoAndStop(2);
}
thumbbtn2.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler2);
function mouseDownHandler2(event:MouseEvent):void {
gotoAndStop(3);
any help greatly appreciated.
Ger
|