Display Variable From Flash In ASP Page Not Working
I've search high and low for a simple answer and am now at my wits end.
I just want to take a single variable from a flash file, and using getURL, send it to an asp file to display the results.
I have tried attaching the string in the URL:
getURL("webpage.asp?var=anything", "_blank)
This resulting URL seems to ignore everything from the "?" and on.
I have tried just using the web page link w/ both GET and POST methods and using request("var") and request.querystring("var"):
getURL("webpage.asp","_blank", "POST")
The result w/ POST is the web page comes up but launches the web page as if it were a text file, and GET doesn't even launch the web page at all.
Using loadVars or any of its counterparts does not seem to do anything at all...does not launch a web page w/ the results.
It's soooo simple to send a single variable from asp to Flash using the querystring ... why is it not the same going from Flash to asp??????
Please help!
ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)
Posted on: 09-15-2005, 06:43 AM
View Complete Forum Thread with Replies
Sponsored Links:
Display 150 Page Text File In Page Format In Flash
What i would like to do is grab the text from a 150 page text file and display it in flash. Sure i could just open up a pdf from the file but thats not what i want to do. I want the text to be in the flash frame.
How would i go about this? I don't know anything about VB or mysql. I saved the file as an xml file could i somehow import that?
View Replies !
View Related
Flash Last Display On Page?
How can I make on page to flash *.swf files opens last.
So, first whole page is displayed and than flash files. It is not important if it is last file on a page.
Please help. It looks like **** when flash file is opened first and than rest of the page.
Nikola
URL
View Replies !
View Related
Flash .swf Wont Display On Web Page
Hi everybody,
I will be very grateful if you can help. I have made a flash gallery using flash and xml. The .swf file, the xml file and the images are all places in the same folder. The .swf file works perfectly when run it locally in the flash player and when testing in flash 8, however, when I embedd the file in my html pages, all i get is a blank where the flash is meant to be.
I am puzzled.
Please can anybody shine some light?
Cheers!!!
Savio
View Replies !
View Related
Display An Html Page Within Flash?
I am building a tour management application for my band, And I want to know if it's possible to view html content from inside flash. Is there an HTML Viewer component or something?
If not I'll have to use an iframe and update it that way.
I need to be able to see google maps based on where the next gig is.
thanks
View Replies !
View Related
Flash Page Display In Dreamweaver
I'm new to this but it seems a bit confusing. I've created a flash.swf that has external loading swf files that work great in flash but when I move them into a page in Dreamweaver they don't display. If I'm in the property inspector they work great but when I view them in internet explorer the external clips do not load???
View Replies !
View Related
Php Flash Variable Does Not Display Value
I am a newbie and having a problem with the values returned from PHP to Flash. I have tried using third party codes and the problem still persists. I will try to make a brief description here of what I have done and what is happening.
==============================================
I have just used three controls on my flash form:
1) One Input box - variablename (firstname)
2) One button - clickHandler(go)
3) One dynamic Text box - variablename (message1)
In the Action for the Button I have put the following Code:
function go()
{
loadVariablesNum("hello.php",0,"POST");
}
In the hello.php I have put the following Code:
<?php
echo "&message1=".$firstname;
?>
In the dynamic text box I am getting the value as $firstname
In the debug window corresponding to Message I get th is value
"".$firstname;
?>"
Please inform me why is it so.
I am using Win2k Server with Flash MX and PHP server on Windows.
Thanks in advance.
View Replies !
View Related
A Flash Area To Display Text In A Page
I need a flash area which will display all the text available in a sepcific page
So, if i have a page http://www.somepage.com?ID=50
and this page contains: Hi, my name is mark, iam a good boy, etc...
i want the flash area to display all the text which is on this page
is this hard to do?
what script should i put on my first frame
View Replies !
View Related
I Can't Get The Flash Movie Controls To Display In A Web Page
Hello,
(I have posted this in the DW forum as well)
I'm fairly confident in DW but still getting to grips with Flash, however...
I created a flash movie from a small .wmv sample clip went through the Flash standard import and convertion steps, chose the standard buttons and published it!
The video worked fine in the flash preview (and in the HTML preview) and the video controls also work just fine, I even have all the files saved into a single folder.
I then embedded the .swf file into my page on DW and still got the grey box which shows there is a flash file I then previewed it in a browser and the controls do not show, I even uploaded it to my server to try it live on the net and still the same problem.
I'm much more of a designer than a coder and I looked over the coding and it 'appeared' to be fine.
What simple idiotic thing am I not doing...?
I'm using Dreamweaver & Flash CS3
Many thanks, Jack :)
View Replies !
View Related
How Do I 'tell' A Flash Menu To Display A Different Image On Each Page?
Hi,
I'm creating a new website for a client which will feature a flash menu for the navigation with rollover images. The rest of the site is in html and there will also be a html menu at the bottom of each page for accesibility and search engines.
My question is: how do I 'tell' the flash menu to display a different (rollover) image on each page depending on what page the visitor is?
Example: when rolling over the 'About us' page image 1 appears in the flash menu. It fades out when rolling over another link. When clicking on the 'About us' link and arriving on the page this image is to be displayed in the menu.
Hope this makes sense!
Thanks,
Konrad
View Replies !
View Related
How Do I Tell My Flash Movie Which Frames To Display Depending On The Page?
Hi,
I'm creating a php website with a flash movie that incorporates the navigation. The movie shows an image for each section and this image doubles as the navigation. The website uses the same php template throughout the site for each page.
Here's the thing: I would like each page within the site to display the rollover / active state of the section that the page is in, rather than the movie playing fully each time the visitors visits a different page.
The .fla file and .swf can be viewed here:
http://preview.hosts.co.uk/~swinsidelodge-hotel.co.uk/templates/swinside/img/header.fla
http://preview.hosts.co.uk/~swinsidelodge-hotel.co.uk/templates/swinside/img/header.swf
So when a visitor is on a page in the hotel section, I want the flash movie to play frames 201 to 205 and when in the booking section frames 221 to 225 rather than the whole movie.
Is there any way of doing this?
Thanks,
Konrad
View Replies !
View Related
Display A Html Page Within A Flash Site (like Iframe)
hello friends,
is it possible at all if i have a full flash web-site to display html content in some of the flash sections? Just like you would do with an iframe in html. Is there such a function for flash? To be more specific, I have a nice photo gallery that i would like to display in my flash movie.
if thats no possible what would the best alternative be? link to the external html page? create something in flash? ...
thanks for any help,
florian
View Replies !
View Related
Display A Simple Php Variable In Flash
Hello
I have a php page with a simple variable:
<?php
$myVar="hello world"
?>
And a flash file embedded:
flash.swf
How do i display $myVar in the swf file?
Do i have to send it from php first?
Do i need to use loadVariables? If so, where? on the timeline (actions line) on a movieclip, in a dynamic text field
I did try to search the forums first, but could not find any help that i could understand. (ie it just said "use loadVars" without explaining how)
Any help would be greatly appreciated.
Many thanks,
Calum
View Replies !
View Related
Display A Variable In FLASH Using LoadVars And PHP
What I'm trying to do:
Send a user input to PHP
Use this input to query a MySQL DB (This works fine)
Get the result back to Flash and put it in a dynamic Text Box - How???
The communication from Flash to PHP works fine. The variable I pass from Flash to PHP are used in the query as intended.
Then Im trying to send a variable back to flash. I cant display this variable in Flash, only in a new explorer window........
<?php
require 'Include.php'; //Data about $DBhost,$DBuser,$DBpass
$user=$_GET['name'];
// Connects to the database.
mysql_connect($DBhost,$DBuser,$DBpass);
mysql_select_db("$DBName");
// The SQL query.
$query = "SELECT * FROM $table WHERE user ='$user'" ;
$result = mysql_query($query);
/* This just gets the number of rows in the Query */
$numR = mysql_num_rows($result);
// If the number of rows is 0--> no hits on query
if ($numR>0) {
for($i=0; $i < $numR; $i++) {
$row = mysql_fetch_array($result);
print $row['fname']; //This prints 'Bruno' when user = 'test'
}
}
else {
print "not connected ";
}
?>
--------------------------
Actionsript:
on (release) {
var my_vars = new LoadVars();
//Get the text from Input Text
my_vars.name=userName.text;
//Send input (my_vars) to PHP and assign result to my_vars
my_vars.send("http://localhost/lms/Login.php",my_vars,"POST");
//Set the result in Dynamic Text box with Var name status
status=my_vars.name;
}
-------------------------------------------------------------
I've read all the tutorials I was able to find, looked at the macromedia site, and still not able to solve it.
This problem has been driving me crazy for one week now. I scanned through this forum, but haven't found anything useful for my case.
Hoping for replies, best regards
Jarle
View Replies !
View Related
Display A Variable In FLASH Using LoadVars And PHP
What I'm trying to do:
Send a user input to PHP
Use this input to query a MySQL DB (This works fine)
Get the result back to Flash and put it in a dynamic Text Box - How???
The communication from Flash to PHP works fine. The variable I pass from Flash to PHP are used in the query as intended.
Then Im trying to send a variable back to flash. I cant display this variable in Flash, only in a new explorer window........
<?php
require 'Include.php'; //Data about $DBhost,$DBuser,$DBpass
$user=$_GET['name'];
// Connects to the database.
mysql_connect($DBhost,$DBuser,$DBpass);
mysql_select_db("$DBName");
// The SQL query.
$query = "SELECT * FROM $table WHERE user ='$user'" ;
$result = mysql_query($query);
/* This just gets the number of rows in the Query */
$numR = mysql_num_rows($result);
// If the number of rows is 0--> no hits on query
if ($numR>0) {
for($i=0; $i < $numR; $i++) {
$row = mysql_fetch_array($result);
print $row['fname']; //This prints 'Bruno' when user = 'test'
}
}
else {
print "not connected ";
}
?>
--------------------------
Actionsript:
on (release) {
var my_vars = new LoadVars();
//Get the text from Input Text
my_vars.name=userName.text;
//Send input (my_vars) to PHP and assign result to my_vars
my_vars.send("http://localhost/lms/Login.php",my_vars,"POST");
//Set the result in Dynamic Text box with Var name status
status=my_vars.name;
}
-------------------------------------------------------------
I've read all the tutorials I was able to find, looked at the macromedia site, and still not able to solve it.
This problem has been driving me crazy for one week now. I scanned through this forum, but haven't found anything useful for my case.
Hoping for replies, best regards
Jarle
View Replies !
View Related
How Do I Display A GetURL Target Within Same Html Page As Flash Menu?
Hi
Have made a flash menu that sits in with my HTML website. I would like to link it with my HTML websites current navigation and have got stuck!.
How do I get my flash menu to display its target URL (my.html file) within the current web page that it is incorporatied into?. Would it involve using frames? or would it mean creating the website in flash?
Can anyone let me know please??
Much appreciated
THanks
Munza
View Replies !
View Related
Display Variable From Separate Flash File
Hey,
I was wondering how (or if it's possible) to display a variable declared in a separate swf file. eg. I have a game with a highscore variable called _level0.punteggio and I wan't to display that variable in a different flash file. I don't want to have to edit the original flash file with the variable I want to display. Please, i fiyou know anything about this, i encourage you to post a reply or even email me at ryanetjoel(at)wintallo(dot)com. Thanks
Ryan et Joel
wintallo.com
View Replies !
View Related
Flash Not Working On Web Page
I'm totally new to all this so please be patient. I am presently building a web site on my computer using Yahoo Site Builder. I was finally able to save what I designed (saved to my pictures) as a HTML file. I was then able to insert my HTML file on to my web page. It looked great, but, when I previewd it in browser it would not load. I know it is something I am not doing or doing totally wrong. Please, could someone take the time and walk me through this step by step using a language I can understand. I would really appreciate it.
Thanks
View Replies !
View Related
Flash On Php Page Not Working
hi everyone,
i have inserted a .swf file on my php page here http://www.orangeowl.com/en/cv/login.php
somehow the flash movie doesnt appear though, it just keeps on "loading" without a result.
does someone know why this is???
thanks for any help!
View Replies !
View Related
Flash Variable To ASP Page.
Hi, submitting a variable to an ASP page. 3 variables in total, one is the result of a couple of Date() variables, the other is a numeric variable from an array. These work fine. The last one is giving me problems. I switched hardcoded values in order to narrow it down to this variable. It's the result of an array loop. I read through the array values and stick in a delimeter "|" so I can seperate the variable later. I am using LoadVariables and POST, and I am using the FORM collection to retrieve and place the values in the database. when I use a test HTML form and input the same values for this variable then submit.. it works great. Should I be doing something to this variable before it get's sent... maybe a URLencode server side ot some other Actionscript string function. My ASP page does process but when I list the database values I see that no value has made it.. though the other two do. Here is an example of what the final variable in flash looks like prior to sending:
3|2|1|4|3|2|5|4|1|2|4|3|This is the question variable q1 and this is a default value for testing purposes|This is the question variable q2 and this is a default value for testing purposes|This is the question variable q3 and this is a default value for testing purposes|This is the question variable q4 and this is a default value for testing purposes|This is the question variable q5 and this is a default value for testing purposes|This is the question variable q6 and this is a default value for testing purposes|
And this is the code that makes the string:
Code:
var newAnswerString = "";
for (k = 1; k<= totalQuestions; k = k + 1) {
newAnswerString = newAnswerString add answerArray[k];
if (k<= totalQuestions) {
newAnswerString = newAnswerString add "|";
}
}
Thanks in advance.
View Replies !
View Related
Links Not Working On My Flash Page
Im sure this is basic but I have been editing a flash page and none of my links are working.
For example I click on text for a link in flash cs3 pro and I get a bar with a chain link next to it among other thing. I put the html link I want to goto when I click the text but it still taking me to the old flash page.
http://www.arachnocharlotte.com
is the flash site. If you click on Tarantula Community it takes you to the old pop up flash home.02 stuff instead of taking me to the forum.
How do I make it take me to http://www.arachnocharlotte.com/forum
I just found the action window and I think it controls the links I should go and remove all the links I added but let me show you what I mean
http://www.arachnocharlotte.com/assets/junk/flash1.jpg
This link appears in 2 places here.
http://www.arachnocharlotte.com/assets/junk/flash2.jpg
and here
It's like a whole new code *Cries* I guess now I need to figure out how to convert this
Code:
on (release) {
if (_root.m<>1) {
_root.scrHEIGHT = 200;
_root.scroller._x = 100;
_root.scroller._y = 150.7;
_root.scroller.scroller.gotoAndStop(2);
_root.TM_title = "Home.02";
_root.READ = 2;
}
}
into maybe
Code:
<weblink href="http://www.arachnocharlotte.com/forum"/>
Thanks so much for the advice I really need it hah
View Replies !
View Related
Pass A Page Variable To Flash?
Hi guys
Does anyone have a simply explanation on how I can pass a page variable from my asp page to a flash mx movie within the same page.
Basically I have a swf audio player code below
My Play Button
on (release) {
stopAllSounds();
}
on (release) {
loadMovie("/members-audio-file.swf", "tg");
}
and I want to pass my asp page variable “audio-file-name e.g. jhon-smith.swf” to
loadMovie("/jhon-smith.swf", "tg");
Hope this all makes some sense.
View Replies !
View Related
Capturing A Page's URL As A Variable In Flash
I have a dynamically launched jsp page that has an swf. Now depending on what the session id is for that page, I want my swf to display different info.
For instance, if my url is this:
"http://mydomain.com/content/my-portfolio/secure/showcase.jsp?id=5"
Note the "id=5" at the end? I want to be able to capture that as a variable.
Now I've tried this._url, that will only give me the path of the swf itself, which isn't what I want.
I also tried:
var host:LocalConnection = new LocalConnection();
trace(host.domain());
Which only gives me the superdomain, not the full url.
Is there a way to do this within Flash? Or would I be better off reading the session id from the jsp page, using the loadVar method or something?
Any help is always appreciated.
Thanks
Chris
View Replies !
View Related
Post Variable To Php Page From Flash
I am trying to set up a form in a flash movie that will post the users entry to a php page. I then need the php page to re-direct the user to a page to show a result.
I have the following AS in the flash form. It seems to post to the php page but from within the flash movie. Rather than taking them to the php page, as a non-flash form post would.
on (release) {
loadVariablesNum("search.php", 0, "POST");
}
Is there a way I can get the flash form to post to the php page in the same way a non-flash form would post.
Hope this makes sense! Basically, when the user clicks the submit button, I need the browser to load another php page that gets the user's input via post.
View Replies !
View Related
Flash Load Asp Page With Variable
Hey, i have a ASP website and a flash on it.
on a page, i have a button that links me to this page "pacientes.asp?id=<%=session("adm")%>", so, it returns me the page "pacientes.asp?id=#"...
however, i want to control this link through flash!!
how can i make flash get the "adm" variable and attach to the end of the url?
i've searched the forum and found something that may be similar to what i want... i dunno. =P
http://forums.devshed.com/t155316/s.html
View Replies !
View Related
Simple Flash .php Contact Page Not Working
I am building a contact info page in flash and using a php file to e-mail contact into back to me. it is also supposed to move to a success or failed frame depending on status. I am using Flash 8 AS 2, and her is what I have so far;
actionscript;
stop();
var senderLoad:LoadVars = new LoadVars();
var receiveLoad:LoadVars = new LoadVars();
sender.onRelease = function() {
senderLoad.theName = theName.text;
senderLoad.theEmail = theEmail.text;
senderLoad.theMessage = theMessage.text;
senderLoad.sendAndLoad("http://stubelshe.com/turnaround-solutions/send.php",receiveLoad);
}
receiveLoad.onLoad = function() {
if(this.sentOk) {
_root.gotoAndStop("success");
}
else {
_root.gotoAndStop("failed");
}
}
sender=the name of my send button
here is my php script;
<?PHP
$to = "platinum2151@yahoo.com";
$subject = "Flash Contact Form Submission";
$message = "Name: " . $theName;
$message .= "
E-mail: " . $theEmail;
$message .= "
Message: " . $theMessage;
$headers = "From: $theEmail";
$headers .= "
Reply-To: $theEmail";
$sentOK = mail($to,$subject,$message,$headers);
echo "sentOk=" . $sentOk;
?>
not only is the mail not being sent, but it wont send me to the success or fail frames i have named.'
I have all of my actions set up on one layer of the timeline and all of the fields and send button on another. If I can get this working I am going to add more info, but this is a pain. Not a hard scritp and I cant fiure out what's wrong. I get no output errors or nothing. Any ideas?
Thanks alot
View Replies !
View Related
Swf Working Fine In Html Page But Showing In Asp Page In Ie Only(not Firefox &Opera)
Hi friends,
I am stuck in a weird problem.
A simple code for displaying flash slider in asp page is wrking fine in IE but not wrking properly in firefox & Opera browser.
same piece of code is wrking good in HTML file and showing properly in IE, firefox & Opera.
I am placing the piece of code and also attaching the asp page containing the code.
Please help me to solve the issue.
Code:
<table border=0 cellspacing=0 cellpadding=3 align=<%=imgAlign%>>
<tr>
<td align="center" width="50%">
<OBJECT classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" WIDTH="420" HEIGHT="730" id="slideShow">
<PARAM NAME=movie VALUE="slideShow.swf">
<PARAM NAME=quality VALUE=high>
<PARAM name="wmode" value="transparent">
<EMBED src="slideShow.swf" quality=high bgcolor=#FFFFFF WIDTH="420" HEIGHT="730" NAME="myMovieName" ALIGN="" TYPE="application/x-shockwave-flash"PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT>
</td>
</tr>
</table>
regards
View Replies !
View Related
Can I Get A JavaScript Variable In A Flash Movie On The Same Page?
Hi All,
I created a simple flash movie that loads a .TXT file and shows the text from the file.
loadVarDoc = "assets/swf/past.txt";
loadVarsText = new loadVars();
loadVarsText.load(loadVarDoc);
loadVarsText.onLoad = function(success) {
if (success) {
scroller.text = this.var1;
} else {
scroller.text = "Data Not Found...";
}
};
I want this to be a generic movie for all the pages on my site so all I need to do (I think) is change the value of LoadVarDoc. So for each page, this value points to the right .TXT file for each page.
I was thinking of including a JavaScript variable on each HTML page that has the value for the right TXT file. The FlashMovie would somehow readout this value (or gets it pushed??) and shows the right text.
Is this possible?
I allready tried the 'SetVariable' option but I guess this only works for variables set for objects, NOT actionscript variables. Is this correct.
Help is much appriciated
View Replies !
View Related
Pull Variable In Flash SWF From HTML Page
Here's what I want to do... HTML pages home.htm, about.htm, contact.htm all have the same Flash SWF in the page for nav buttons. Each page loads with target _self, and I want to have the flash movie load on each page at a different frame number BUT I want to use the same SWF.
For Example:
home.htm starts on frame 1 and stops at frame3, when you click the About link, it loads about.htm and sets the goandplay on frame 4. Then with the contact.htm page, it loads and starts on frame 7.
I'm guessing I need a some variable in the HTML code of each .htm file to tell it were the target is to start at whatever frame I decided.
Can this be done.. and if so, where would I start?!?!
thanks,
Basher
View Replies !
View Related
Pull Variable In Flash SWF From HTML Page
Here's what I want to do... HTML pages home.htm, about.htm, contact.htm all have the same Flash SWF in the page for nav buttons. Each page loads with target _self, and I want to have the flash movie load on each page at a different frame number BUT I want to use the same SWF.
For Example:
home.htm starts on frame 1 and stops at frame3, when you click the About link, it loads about.htm and sets the goandplay on frame 4. Then with the contact.htm page, it loads and starts on frame 7.
I'm guessing I need a some variable in the HTML code of each .htm file to tell it were the target is to start at whatever frame I decided.
Can this be done.. and if so, where would I start?!?!
thanks,
Bash3r
View Replies !
View Related
Pull Variable In Flash SWF From HTML Page
Here's what I want to do... HTML pages home.htm, about.htm, contact.htm all have the same Flash SWF in the page for nav buttons. Each page loads with target _self, and I want to have the flash movie load on each page at a different frame number BUT I want to use the same SWF.
For Example:
home.htm starts on frame 1 and stops at frame3, when you click the About link, it loads about.htm and sets the goandplay on frame 4. Then with the contact.htm page, it loads and starts on frame 7.
I'm guessing I need a some variable in the HTML code of each .htm file to tell it were the target is to start at whatever frame I decided.
Can this be done.. and if so, where would I start?!?!
thanks,
Basher
View Replies !
View Related
Flash Working In Flash Player, But Not When Inserted In A Html Page
Hello guys. I have a very strange problem.
I have created a dynamic banner, made up of two simple combo boxes, with 3 parts actionscript.
The ideea is, when first loading the banner, the first combo box receives a lists of artists and it populates itslef with them. After selecting an option, it will send the id and receive a second list of tracks that belong to the selected artist.
After you select a track, you will be redirected to the page where you can listen to it.
MY problem is that while testing it, it works just fine in flash player, but after publishing it, my computer gets frozen up, untill a popup message appears, saying that my computer will become unresponsive do to the script.
This happens when i've uploaded the swf on the server. On my local computer, it only started to work in HTMl after i've modified the settings and set it up as trusted script.
ANy ideea how i can make it work in the browser?
Thank you for your help and here is the code of the banner:
!st code goes int he first frame:
Code:
myData = new LoadVars();
myData.load("http://website.com/banner/banner.php");
myData.onLoad = function() {
total_var=this.variabile;
myComb_cb.addItem({label:["Select an artist"]});
for (var i:Number = 1; i<=total_var; i++) {
myComb_cb.addItem({label:this["variabila"+i] },{data:this["variabila"+i]});
}
};
2nd code goes in the first combo box:
Code:
on(change) {
_root.myComb2_cb.removeAll();
var reply_lv = new LoadVars();
var send_lv = new LoadVars();
send_lv.id = this.selectedIndex;
send_lv.sendAndLoad("http://website.com/banner/banner.php", reply_lv, "POST");
reply_lv.onLoad = function() {
total_var=this.variabile;
_root.myComb2_cb.addItem({label:["Select a track"]});
for (var i:Number = 1; i<=total_var; i++) {_root.myComb2_cb.addItem({label:this["variabila"+i] },{data:this["id"+i]} );
}
}
}
And thirs code goes in the second combo box
Code:
on(change) {
getURL("http://website.com/banner/banner.php?id_piesa="+this.selectedIndex, "_blank");
}
View Replies !
View Related
Timeline Variable Now Not Working In Flash 7
Bear in mind this code has been working perfectly published as flash 6, but when published as flash 7 it seems not work anymore.....
simple timeline variable stuff for documenting the position of a menubar thingy.
I set variable on _root.mainmovie timeline...
musicmenu = 0;
then when a menu drops down at different times in clip called "music"
and i set variable with....
_root.mainmovie.musicmenu = 1;
then....
if (_root.mainmovie.musicmenu == 1) {
_root.mainmovie.music.gotoandPlay("close");
} else if (_root.mainmovie.musicmenu == 2) {
_root.mainmovie.music.gotoandPlay("stopper");
} else {
gotoAndPlay("ender");
}
now - all target paths etc should be ok since it all works as flash 6.
the code is so simple that i just can't see why it's changed in flash 7.
i mean - all the "if" statements are the same aren't they and from what i read setting timelime variables is the same.
when i debug i can see it seeting the variable ok, just the "if" statement bit seems now not to work.
I'm pretty sure my frame names of "close" "starter" "stopper" "ender" etc aren't now flash 7 reserved names...
but when of course i re-publish as flash 6 and test - it works again == weird!!
must be a simple answer here i think...........hmmm
any tips appreciated
View Replies !
View Related
Pass A Variable From Flash With Java To Html Page?
I know this is possible without ASP or anything.
Basically I want the user to enter their name into a text field in a flash movie, click a button and this opens up an html page with the message "hello [NAME]". Thats basically it, I can do it with ASP but this needs to work locally so I guess Java is the way to go.
Ta.
View Replies !
View Related
Passing A Simple Variable From An HTML Page Into Flash?
Okay...so here it goes....
Okay the first part isnt as important to my question but I have to set up the scenario for you... Inside a flash file I have like 5 buttons that control the x position of a movie clip (the movie clip is called "mc_maincontent".The movie clip is longer than the stage itself and when I click one of the 5 buttons it tells the movie clip to position itslef accordingly. Basically it makes the movie clip slide into position depending on which button you push.The main timeline is only 3 frames long.. So here is the actual code that I have:
//this is what is in the first frame on the main timeline.
currentPos = _root.mc_maincontent._x;
clickedPos = currentPos;
//this is what is in the 2nd frame on the main timeline.
//the 7 is just what i dived it by to controll how fast it scrolls
if (currentPos != clickedPos) {
currentPos = currentPos + (clickedPos - currentPos)/7;
_root.mc_maincontent._x = currentPos;
}
//this is what's in the 3rd frame, i just keeps going back to frame 2
gotoAndPlay(2);
Now with all of that said, the five buttons that i have on the main timeline that controll the x position of the movie clip each just have a simple bit of code in them that sets the properties of the "clickedPos" variable...for example button one contains the code:
on (press) {
clickedPos = 386.7;
}
OKAY SO NOW HERE IS THE ISSUE........
What if I have an HTML page, that is seperate from the page housing this flash movie, but if for some reason I want this seperate HTML page to have buttons on it as well (not flash buttons though) and if I click one of these buttons it tells the flash file in the other page to change that "clickedPos" variable to another value. How would one do this?
View Replies !
View Related
Html Button Passing Variable To Flash Next Page
Hi
I hope someone can help me here or direct me to somewhere. I would like to pass a variable to a flash file from the previous html page. I thought I could add a php query and the flash file would automatically pick it up, but obviously I am being naive.
Basically is it possible to add a variable to the html that an embedded flash file can read.
any help greatly appreciated if you can understand the drivel I have written above
many thanks
adam
View Replies !
View Related
Passing A Variable/object To Flash From An Online Page
Hi,
I was wondering, is it possible to pass a variable from a normal online page back to a flash file (offline) residing on a user's pc? That variable will invoke that flash to go to the next frame. My main purpose is to get a variable from the internet back to the flash so it will go to the next frame. Else, it will not. Thanks in advance.
View Replies !
View Related
|