DON'T BOTHER, Problem Fixed.
.
Attach Code
Hey all,
We've got a client's PHP website that we're converting to ASP(*sigh*). The big challenge is that we've got a Flash navigation movie that's being fed PHP page session variables for highlighting selected nav items.
Here's the PHP code:
<?php session_start(); $_SESSION['page']='music'; ?>
And here's the corresponding Actionscript:
_root.home = page;
if (_root.home == "music") {
trace("music");
_root.subnav.gotoAndPlay("music");
}
else if (_root.home == "radio") {
trace("radio");
_root.subnav.gotoAndPlay("radio");
}
Does anyone have an ASP solution that's similar to this?
Edited: 12/27/2006 at 01:10:55 PM by oskom
Adobe > Flash Data Integration
Posted on: 12/27/2006 12:29:58 PM
View Complete Forum Thread with Replies
Sponsored Links:
A Little Bit Of Bother
Howdee peepz! Its been a while since I posted :(
I'm building an .ap with a cursor preloaded like windows but I can't it to work properly.
This is on the _root
Code:
//
// BUTTONS //////////////////////////////////////////////////
////////////////////////////////////////////////////////////
image1_btn.onRelease = function():Void {
fStartPreload("load/beach.jpg", "content_mc.mcholder");
};
//
image2_btn.onRelease = function():Void {
fStartPreload("load/building.jpg", "content_mc.mcholder");
};
//
// LOAD FUNCTION ////////////////////////////////////////////
////////////////////////////////////////////////////////////
function fStartPreload(sURL:String, sTarget:String):Void {
cursor.url = sURL;
cursor.target = sTarget;
cursor.gotoAndPlay("egg");
trace(sURL + " " + sTarget);
}
and this is inside the cursor on a frame marked "egg" (for egg timer)
Code:
stop();
this.onPress = null;
//
this.target.loadMovie(this.url);
//
onEnterFrame = function ():Void {
var bytes_loaded = this.target.getBytesLoaded();
var bytes_total = this.target.getBytesTotal();
if (bytes_total > 0) {
var percent_loaded = bytes_loaded / bytes_total;
preloader_mc.value = percent_loaded;
if (percent_loaded == 1) {
delete onEnterFrame;
play();
}
}
};
thanxInAdvance();
.
View Replies !
View Related
Button Bother
Hi, what am I doing wrong?
please take a look at http://myweb.tiscali.co.uk/just4tests
sorry I haven't done the preloader yet.
the second hand that you see(the cursor)is loaded into the movie
with the loadMovie command. My problem is I cant get it to interact with the rest of the movie. For example clicking on the buttons has no effect.
could anyone please let me know what script I am missing.
Thanks for your help.
View Replies !
View Related
[CS3] Why Bother With Packages?
I know this a real noob question but I can't seem to get an answer in plain english from anywhere. I've been creating games in AS3 with .fla files. I type all code on the one frame, no imported packages or custom classes at all.
I've been avoiding document classes, custom classes and packages for a while now. The process appears to be a very round-about way of doing what I already do. The way I understand it, at least two files are needed (the .as file and the .fla) I need to import the .as into the .fla and the .as needs to be saved every time I want to test the movie.
I suspect I'm missing something here. Please enlighten me. What are the advantages of going to trouble of setting up packages and classes?
View Replies !
View Related
Sorry To Bother You With Another Component Question...but This One Is A Bit Different
I have somewhat of a simple survey dillio that I am attempting to create in flash using some components that come loaded w/ flash. The problem is that certain components (only checkbox's and a combobox so far) move from thier placement on the stage in development mode. I have tried assigning them positions via actionscript, which didnt work, and also I have tried deleting them all and trying again. I am sorry for the bother, but I have really tried to figure this one out on my own and nothing is happening for me. Any help out there?
View Replies !
View Related
Rulers ? Why Does Flash Bother
why is it when I click on an object on the main stage the x and y axis are related to Rulers but an object in an MC has no relevants at all?
If i select an object in an MC and it is smack in the middle of my stage, the info pallet keeps telling me that it is 6px away from the edge. what is with that. whats the point in having rulers if it doesnt rated to Levels???
Am I missing something here?
View Replies !
View Related
I'm Just Curious About Something So Don't Bother Comig In This Room
<HTML>
<HEAD>
<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
<TITLE>Untitled-2</TITLE>
</HEAD>
<BODY bgcolor="#FFFFFF">
<!-- URL's used in the movie-->
<!-- text used in the movie-->
<OBJECT classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
WIDTH="260" HEIGHT="70" id="Untitled-2" ALIGN="">
<PARAM NAME=movie VALUE="Untitled-2.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="Untitled-2.swf" quality=high bgcolor=#FFFFFF WIDTH="260" HEIGHT="70" NAME="Untitled-2" ALIGN=""
TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT>
</BODY>
</HTML>
View Replies !
View Related
Spot Of Bother Loading External Swf
Oh dear oh dear
I need to load an external swf into a movie clip.
the path is:
_root.mcInfo.mcPanel.mcGallery1
I've tried:
loadMovie("gallery.swf",_root.mcInfo.mcPanel.mcGal lery1);
with no success.The movie loads, into the mcGallery but decides that it wants to be bigger than the mcGallery. Doesn't matter if I make it the same dimensions as the mcGallery.
What am I doing so wrong
Regards
Simon
View Replies !
View Related
Don't Bother Reading My Last Post Just Read This One
Hey, if you answered my last posts, thanks but you didn't need to. i think it would be better if someone was to send me the Fla file of a pretty complex movie. Doesn't have to be to complex but i would really appreciate it if someone was to send me something,
So if there's anyone out there that is willing to do this that would be good. And no i'm not going to use it as my own or anything like that.
Thanks in advance. cyaz
View Replies !
View Related
Loadmovie(image...)... Oh Bother, A New Page
k, sorry if i seeem a little blunt or pokey... its late.
i have a button which is in a movie clip; this clip is duplicated to a number of records...
when the button is pressed it will load its target in a new window instead where it is directed.
evening giving it a direct link _root.imgholder.loadMovie("back.jpg") it will load to a new page whereas if the button is moved to the root, it works fine ? ? ? ive never come across a problem like this before, as i have a simular one working.
Any ideas?
thanks,
Matt
View Replies !
View Related
Exception-Handling Cycle - Why Bother?
I've got a basic understanding of how the try/catch/finally block works, but I can't seem to figure out why I should bother using it.
If I know an error is occurring or about to occur, why build a try/catch/finally architecture to 'gracefully' handle the error when I could write code to prevent the error from occurring in the first place?
Thanks in advance for any enlightenment on this subject.
View Replies !
View Related
Exception-Handling Cycle - Why Bother?
I've got a basic understanding of how the try/catch/finally block works, but I can't seem to figure out why I should bother using it.
If I know an error is occurring or about to occur, why build a try/catch/finally architecture to 'gracefully' handle the error when I could write code to prevent the error from occurring in the first place?
Thanks in advance for any enlightenment on this subject.
View Replies !
View Related
I Hate To Be A Bother: Buttonover To Change Dynamic Text
This is probably simple, but I've searched tutorial after tutorial, torn apart the Flash Help, and gone through 35 pages of this very board looking for something relevant, but I haven't found anything this close(simple). Just so you know, I DID try to do this myself.
I'm attempting to create a wegpage, that allows a user to see the title of a song in a lower feild using dynamic text, activated by a mouseover up above.
The button is a simple button, and appears in a movie in the tenth frame, after a short animation. The button itself is a layer above the animation, and appears exactly on the tenth frame, with the lower frame having a stop action in the same frame. Here are the button actions I have listed as following:
on (rollOver) {
songInfo = "passing for priviledged";
}
on (rollOut) {
songInfo = "";
}
I created a Dynamic Text box in the same tenth frame, with the variable name "songInfo". (No "")
I'm trying to get it so that the dynamic text changes according to buttonover(there will be six eventually), and then reverts to blank when the mouse rolls off.
The movie with the button itself is accessed as a 2nd frame of a movie on the main timeline.(Using a gotoandPlay command from a menu button) It seemed at first that the Stop action was affecting it, but I have to use it to end the animation, so it doesn't loop, right?
I also tried just putting a plain button, using the same rollover action, and targeting a dynamic text feild on the main page. It refuses to change text, whatsoever.
What am I doing wrong?
View Replies !
View Related
Fixed That, Now Another
OK, I got PRev to work but another problem, there is actually audio playing along with text that pops up on each label, so if the voic over is at label 4 and the function hasnt been fired off yet when you hit next frame it will go to frame 1!! how do I fix this??
View Replies !
View Related
Fixed
i just fixed it...and im going to post how to help end all php questions. username is an input field, as is password. the php file returns either passok=1 or passok=0. then you check for _root.passok==1 or ==0.
on (release) {
passok="";
admincheck = new loadVars();
admincheck.load("http://www.url.com/folder/admin.php?username="+username.text+"&password="+pa ssword.text);
admincheck.onLoad = function (success){
if(success){
_root.passok = this.passok;
_root.checkAdmin.gotoAndPlay(2);
}
}
}
hope this helps people out.
View Replies !
View Related
Thanks..it's Fixed :)
Another member suggested using the transform palette and it showed a minor discrepancy..once I used that palette to adjust the sizing it woekd perfectly. I suppose this is the same as what you suggested. Thanks for your input. You guys rock !
View Replies !
View Related
Fixed FPS
Hi!
I am currently working on a small side project which attempts to emulate Ouendan, or Elite Beat Agents ((I think)) in the US. Anyways, I'm having a problem with the frames per second. For now, I have all of the different songs in different swf files, so dynamically changing the FPS isn't the problem. However, I have a fps counter, and it's reading a different number than the one I have it set to. However ((again!)), one computer can run a 70 fps song at around 65 and a 35 fps song at 32, while another will run them both at the correct fps.
In addition, I tried using a setInterval method to go to the next frame at 1000/70 and 1000/35 milliseconds, but then the program wouldn't catch the gotoAndPlay() actions.
Thank you so much for your help!!
View Replies !
View Related
Can't Get It Fixed
I would like to load this in level 2 of my movie, does enyone know how to fix this so it wil load in level 2??
newsText = "";
loadVariablesNum("fetchnews.php?"+(Math.random()*1000000), 2);
stop();
View Replies !
View Related
Fixed Width
Anyone know how to create and set a rectangle to be a fixed width so that when scaled and tweened it will remain at a fixed width?
Any examples of tweening lines would greatly be appreciated
View Replies !
View Related
Fixed Windows
Hi, I'm havin' trouble figuring out how can I open a window with a fixed size (eg. 300x220) when I make a flash button. I know how to open a blank page but I need it with fixed dimensions; can you help me?
thanx in advance
View Replies !
View Related
How To Have A Fixed Console?
Hi, i'm a newbee,
I have a console with buttons, and i would avoid reloading it for every page.
But i want to avoid too to have a huge movie, so i would like to have the console loading at the beginning and every new page loaded only when you push the relative button...
thanks.
You can see the movie attached
View Replies !
View Related
Problem Fixed
I figured out what the problem was. I seems that in MX 2004 the nextScene(); doesn't work with multiple scenes. I just changed it to gotoandPlay("Scene 2"); and that worked fine.
View Replies !
View Related
Fixed Movement
I have this code to make my zombie follow the mouse;
onClipEvent (enterFrame) {
_root.yChange = Math.round(_root._ymouse-this._y);
_root.xChange = Math.round(_root._xmouse-this._x);
_root.yMove = Math.round(_root.yChange /20);
_root.xMove = Math.round(_root.xChange / 20);
this._y += _root.yMove;
this._x += _root.xMove;
}
He slows down as he approaches the mouse. Anyone know how to make him move at a fixed speed?
View Replies !
View Related
Fixed Distance Between 2 Mc?
Hi,
I have two movieclips, and i want them to repel (only _x) from the mouse, but only until say 100 pixels away from the mouse, then slow down.
If the mouse goes over the middle axis of the mc, then repel the other way, and so on..
also, if this was done and working, how would i keep the distance between the two mc at a fixed distance, so that if one were to move (_x), then the other would move accordingly so that the distance is fixed.
thanks in advance
View Replies !
View Related
Fixed Windows
I am publishing my first website and am having trouble getting the window so that the window is fixed and the scroll area is absent. Everything else is ready to go but the information I have found on it so far has not been helpful. Any tips or resources?
View Replies !
View Related
Fixed Width Or 100%
Hi, I've recently got hold of a template which I've succesfully managed to modify. I have an html page which loads the falsh movie. Currently it has a fixed width and height and I know on certain PC's such as laptops, the flash movie doesn't fit on the page. I know that I'm able to change this to 100% on each. I'm just wondering if there is any issue with this?
Thanks in advance
View Replies !
View Related
Bug From 2yrs Ago Still Not Fixed
I reported this bug 2 years ago and received official notice from Bentley Wolfe that is was an error and had been added to the list of things to be fixed - it still has not been done
In Edit/preferences/General when the Span based selection box is ticked it causes a problem on the timeline. Clicking a frame no longer makes that layer active - anything pasted does not go into the highlighted frame but into whatever layer is still active.
Brian
View Replies !
View Related
Fixed Menu
Hi
How can I make a information (menu, movieClip... ) be locked at the bottom, left, right, top no matter the browser size?
like in http://www.unit9.com/creativemind/
thanks!
View Replies !
View Related
Fixed Decimals
Arh! I've forgotten how to make decimal variables fixed.
I'm making a small game with a timer that have to show the time in seconds with 2 decimals all the time (i.e. 34.71 sec. or 51.00 sec.)
How do I force the time-variable to always have two decimals?
View Replies !
View Related
SWF Fixed Size...
Hello there,
I want to be able to people enter a site and then click on a language choice and then a pop up window opens with the Flash movie with a fixed size
and with no browsers toolbars....
Can anyone tell me how do you publish the swf file ?
and what kind of html do you need to make the SWF pop-up that way?
thanks
View Replies !
View Related
Fixed Carousel
Hi,
I need to make a dynamic AS2 xml carousel and am looking for any advice/pointers. It's like the typical fake-3D carousel (like from gotoandlearn) but I need the carousel to always display 5 items at the front regardless of the number of items in the xml and be controlled by arrows and not by the mouse position (that should be easy though). The items round the back of the carousel will be hidden so it doesn't really matter if they become a bit messy.
I've been toying with the carousel but the code is quite complex to adjust for what I need. Was wondering if anyone has made anything like this and could offer me advice etc.
Thanks in advance, any help would be appreciated.
Steven.
View Replies !
View Related
Fixed Decimals
Arh! I've forgotten how to make decimal variables fixed.
I'm making a small game with a timer that have to show the time in seconds with 2 decimals all the time (i.e. 34.71 sec. or 51.00 sec.)
How do I force the time-variable to always have two decimals?
View Replies !
View Related
Fixed Mask
Tjoflöjt!
What I want to do is making a mask follow the mouse within a certain area. Is this possible?
The follow-the-mouse and masking is no problem, just the rest :-)
View Replies !
View Related
Pop-Up Fixed Window
Hi there,
I'm going from a flash movie to a simple HTML page to load. Now, the HTML is loaded to open to a specific size. But when I've linked from the movie to the HTML it resizes the page to the size of the movie.
Is there a way to get some code in my button where it has the getURL to just open the URL at a specific size?
thank you in advance
View Replies !
View Related
Fixed Pixelshift
Hi People,
we found a solution for the pixelshift that happens when the Flash player (up to Version 6), displays dynamically loaded Jpgs.
Our implementation extends the built-in loadMovie function of the MovieClip prototype. So the syntax can stay the same, and we added a few extra thingies to make preloaders and similar fun stuff easier.
http://labs.thetainteractive.com
Hope that still helps some people here (now that Flash 7 has reached 90% penetration).
If you find any issues let me know.
Christoph
View Replies !
View Related
Fixed Map And AI Sprites...help Me...
hi.
i want to make a game like eets and lemming version for our thesis.its like 2months im finding some codes but i cant get the logic. i used some codes but the map is in scroll like mario. T.T in eets and lemming the map is fix.
the ai character. i dont know how to make one. we make a moving .gif sprite but how to move it on its own?
pls help me.. thx..
View Replies !
View Related
What Am I Doing Wrong Here? / Fixed
Hi I cant seem to understand what it is that im doing wrong.. Im making a scrollHandler, as a MC, and add an Event Listener for the MC but If i run the script bellow and call the startDrag function it tells me that " A term is undefined and has no properties." in the startScroll function. So i have to adress it differently? Or am I placing it the wrong way?
Code:
var scrollBarHeight:Number;
function thisFunction():void
{
var scrollHandler:MovieClip = new MovieClip();
scrollBarHeight = (menu.menuScrollBar.height/menu.contentBox.height)*menu.menuScrollBar.height;
scrollHandler.graphics.beginFill(0x0F0F0F);
scrollHandler.graphics.drawRect(0,0,menu.menuScrollBar.width,scrollBarHeight);
scrollHandler.name = "scrollHandler";
scrollHandler.addEventListener(MouseEvent.MOUSE_DOWN, startScroll);
menu.menuScrollBar.addChild(scrollHandler);
}
function startScroll(e:MouseEvent):void // This function trows an error..
function startScroll(e:MouseEvent):void // This function trows an error..
{
menu.menuScrollBar.scrollHandler.startDrag(false,new Rectangle
(0,0,0,menu.menuScrollBar.height-scrollBarHeight));
}
EDIT:
apparantly this was sufficient
Code:
function startScroll(e:MouseEvent):void
{
scrollHandler.startDrag(false,new Rectangle(0,0,0,menu.menuScrollBar.height-scrollBarHeight));
}
View Replies !
View Related
Keeping Spacing Fixed
what's the best way to kept the _x.spacing consistent between say 5 mcs in a row. ie where the gap between mc1._x and mc2._x is the same between the rest of them. even if the width of a mc would change the gap would remain fixed
any help would be much appreciated....
View Replies !
View Related
GetURL() To A Fixed Window?
I've tried the following code, but somehow the URL keeps appearing in a new window as if I've used "_blank" as my target. I meant for the output to be targetted to "mywindow" all the time... any ideas??
getURL ("http://www.abc.com/test.php?option=1&setting=2", "mywindow" );
View Replies !
View Related
Looping Problem Fixed (by Me)
Many thanks to all who attempted to assist me on the endless looping problem of the animation. Unfortunately, it wasnt very helpful, as there is clearly a button to stop the animation from looping in the actions list. No need to write any code. If anyone else is having this problem or just wants the animation to play only once...do this instead:
Go to the last frame of the animation
Click twice
Click on the "Actions" tab
Click the small diamond next to the word "Add Action"
A list of choices will be displayed.
Click on "Stop"
That will kill the animation at that frame.
That's the answer to that question.
View Replies !
View Related
Drag Around Fixed Point
Hi Guys,
really need some help on this one.
I have an object (turn-table arm), that I wish to rotate around a fixed point when dragged (as turn-table arms do!). The drag needs to be constrained to a circlar path, and be for about 20 degrees.
I have searched various threads concerning constraining dragged objects to a circle but non seem to fit what I'm trying to do.
Any help please
cheers
View Replies !
View Related
Scrolling An MC To A Fixed Position
I am desperately trying to achieve an effect which can be found on this site:
http://www.fme.fujitsu.com/employmen...ine/index.html
What I want to achieve is this:
Click on a relevant section on the nav and the 'content' MC will scroll to the corresponding position.
So in effect you end up with a very wide MC that is divided into sections.
I know it must be something like:
on (release) {
setProperty (_root.scroller, _x, "50");
}
but this will just move the MC to that position, not scroll it. Does anyone know of a code that will scroll the movie clip to a specified position?
Many thanks
Simon
View Replies !
View Related
Fixed Size Pop Up Window
heres the deal
i have some pictures in my swf file and i want to open up in a fixed size internet explorer browser of 500x500px when they are clicked.
how should i do this?
i have tryied some scripts put nothing is working out.
(heres some more info
my pic names are facillities....facillities7.jpg
every pic has its own htm file.
the facillities htm's are in a different directory from the swf file.
they are located to a facillities folder)
i dont know if that were info worth mensuning it, but i really dont know what to do.
also my photos are inside of a movie clip
thanx anyway for the help
View Replies !
View Related
|