Trying To Figure Out How To Pass A Php Varible In Flash 4
Can someone point me in the right direction on how to pass a php varible in flash 4. I have a flash header and the buttons needs to call random members from a mysql database before going to a payment page. Kind of like a rotator but with clickbank Id's.
Any help would be a huge help!
Sharuperdi
FlashKit > Flash Help > Flash Newbies
Posted on: 07-20-2006, 08:56 PM
View Complete Forum Thread with Replies
Sponsored Links:
Cant Get Flash Varible Into Php :|
var SenderLoad:LoadVars = new LoadVars();
var ReceiveLoad:LoadVars = new LoadVars();
saved.onRelease = function() {
SenderLoad = changes.text;
trace(SenderLoad);
//It traces what I typed in the textArea...
SenderLoad.sendAndLoad("http://www.fmj.sirx.org/writeit.php", ReceiveLoad, "POST");
};
<?PHP
$flashData = $_POST["SenderLoad"];
$myTextFileHandle = 'testfile.txt';
fopen("testfile.txt","r+");
fwrite($myTextFileHandler, "$flashData");
fclose($myTextFileHandler);
print("&receiveLoad=$flashData");
?>
I seriously cant figure out why it wont write... I have file permissions set for the swf, php, and the text file I'm tryin to write to. If somebody could help me out I'd really appreciate it!
View Replies !
View Related
Flash Varible
flashvars
Hello im trying to build an mp3 player that reads the playlist from the flashvars code in the html. I've got the player to load the playlist with this code
loadSongList("playlist.xml") ;
My varible name is "var1" . I tried this code but it dosent work.
loadsonglist = var1;
this is my html code
Code:
--------------------------------------------------------------------------------
param=flashvars value="var1=www.mysite.com/playlist.xml" />
--------------------------------------------------------------------------------
how do i set this up?
Edited: 05/10/2007 at 09:44:49 AM by samuels2921
View Replies !
View Related
Getting A JavaScript Varible Into Flash
I have a variable in JavaScript called s1. It alerts great on the HTML page but now I need to pass it into Flash. How can I do this?
I have this but it is not working in IE, it does in netscape and firefox and in all browsers in mac but not on pc IE
document.write('<param name="FlashVars" value="'+query+'" />');
document.write('<embed src="argumentGenerator.swf" quality="high" bgcolor="#ffffff" width="1017" height="514" name="argumentGenerator" align="top" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" FlashVars="'+query+'"></embed>');
help if you can,
Thanks, Dvl
View Replies !
View Related
Load Varible Into Flash From URL
I am trying to load one varible into flash from a url query string.
so it would look like this www.whatever.com/test.php?PRD=1
flash would change frames depending on what PRD is equal too. Does anyone know how to correctly pull that varible into flash from the url query string?
Thanks
-The version of flash I am using Flash mx 2004 professional
View Replies !
View Related
Flash MX Logic/varible Syntax
Hello all
New around here
I cut my teeth on Flash4 and havent had a chance to jump onto FlashMX until recently, so I guess I count as a Newbie
(I was never a good coder or a good actionscripter in the first place, so bear with me anyway)
Layer1 is the Frame/Control level
Layer2 has my buttons
Layer3 I have a MovieClip sitting on the Stage
Frame1 of Scene1 - I set my variable:
set(open, false)
inside the movieclip Instance (named content) on frame1 I have it looping with the actionscript:
if (open = true) {
gotoAndPlay("tween")
} else {
play()
}
Back on the main stage, my button has the script:
on (release) {
tellTarget (content) {
set(open, true)
}
This is based on my rudimentary knowledge of actionscripting from Flash4, which seemed to work fine (thank god for the syntax error alerts)
FlashMX seems a bit more of a confusing bundle
I've set traces for everything and;
- The button can find the movie (and can move the timeline around)
- the varible is recognized and switches the movieclip on and off correctly
BUT
- The button doesnt seem to trigger the varible for the movieclip
- And even worst - it affects the Instance by triggering the varible without a 'release'
any clues? somebody told me the 'logic' to this incorrect
View Replies !
View Related
POST FLASH VARIBLE TO FORM
I need another set of eyes.
Does this scrip look right? I'm getting no errors but no results.
var artist_name2 = _root.artist_name;
this.onEnterFrame=function(){
forindex.text = _root.artist_name;
}
this.submit.onPress = function() {
loadVariablesNum("
View Replies !
View Related
Simple Varible Problem(with Php, A .txt File, And Flash)
I am makeing a poll of my web site... I am doing it mainly to learn php... Ok so i have it set up like this:
I have a file called poll.php. When you click on which answer you want, flash sends all of the varibles to it. Now that part works fine. Then the poll.php writes to a file called poll.txt. It writes to that file fine. Then I have a last script to use the include function.The include function includes poll.txt.It is called results.php.And then flash reads from results.php to get the varibles back and to turn everything into percents and stuff. It sends it back fine. But the only thing is, is it still isn't numerical. So when you click on one of the answers to the poll, instead of doing +1 it actually adds a 1
Example:
2 people have voted on the first selection so then the value is 2. When you click on it, Instead of going up to 3
it goes to 21. And with it doing that, it still isn't numerical so i can't use action script to turn it into a percent. I had trouble with this once before. I had it working by using the Number function: var=Number(var)
For some reason it isn't working. I am putting the number function in the flash movie, so it will get the string from the php script and turn it numerical. Should i put the Number function in the php script?
[Edited by mike6888 on 03-02-2002 at 10:45 AM]
View Replies !
View Related
Still Can't Figure This Out - Flash 8
I apologize in advance for posting a similar post, but this one is much more descriptive...and im desparate!
I am loading swfs to level0...and one loads from the other and vice versa...they both call the same custom class that I wrote "XMLShape.as" in the .as file I have an array of movieclips which are booths...these booths highlight when their respective exhibitor is clicked in the list...now the problem is that the movieclip array gets all screwed up when I load the second swf from the first...here is code that I am using to test this problem, and I have figured out that it is losing the reference but how?
code:
function highLight(booth:Number)
{
trace("List Index: " + booth);
trace("MainWin Booth: " + booths[booth]);
trace("MiniWin Booth: " + miniBooths[booth]);
trace("wtf is going on?");
var trans1:Transform = new Transform(booths[booth]);
var trans2:Transform = new Transform(miniBooths[booth]);
tempColor = trans1.colorTransform;
var myColor:ColorTransform = new ColorTransform(1, 1, 1, 1, 250, 200, 0, 75);
trans1.colorTransform = trans2.colorTransform = myColor;
}
--trace from first swf loaded
List Index: 1
MainWin Booth: _level0.CAD_mc.zoomControl.mapContainer.2
MiniWin Booth: _level0.CAD_mc_mini.zoomControl.mapContainer.2
wtf is going on?
List Index: 2
MainWin Booth: _level0.CAD_mc.zoomControl.mapContainer.3
MiniWin Booth: _level0.CAD_mc_mini.zoomControl.mapContainer.3
wtf is going on?
List Index: 3
MainWin Booth: _level0.CAD_mc.zoomControl.mapContainer.4
MiniWin Booth: _level0.CAD_mc_mini.zoomControl.mapContainer.4
wtf is going on?
-trace from second swf loaded...
List Index: 1
MainWin Booth: _level0.CAD_mc.zoomControl.mapContainer
MiniWin Booth:
wtf is going on?
List Index: 2
MainWin Booth: _level0.CAD_mc.zoomControl.mapContainer
MiniWin Booth:
wtf is going on?
List Index: 3
MainWin Booth: _level0.CAD_mc.zoomControl.mapContainer
MiniWin Booth:
wtf is going on?
as you can see...the reference to the actual booth mc number is missing and its referencing the whole map...I cannot understand why...
one issue that I have noticed is that the first time the app is run...the booths array looks like this...
_level0.CAD_mc.zoomControl.mapContainer.1
_level0.CAD_mc.zoomControl.mapContainer.2
_level0.CAD_mc.zoomControl.mapContainer.3
.
.
.
.
_level0.CAD_mc.zoomControl.mapContainer.326
_level0.CAD_mc.zoomControl.mapContainer.327
_level0.CAD_mc.zoomControl.mapContainer.328
when you load the second swf...the array is supposed to be cleared...but it ends up looking like this...
_level0.CAD_mc.zoomControl.mapContainer
.
.
.
_level0.CAD_mc.zoomControl.mapContainer..328 times
then
_level0.CAD_mc.zoomControl.mapContainer.1
_level0.CAD_mc.zoomControl.mapContainer.2
_level0.CAD_mc.zoomControl.mapContainer.3
.
.
.
.
_level0.CAD_mc.zoomControl.mapContainer.326
_level0.CAD_mc.zoomControl.mapContainer.327
_level0.CAD_mc.zoomControl.mapContainer.328
so it seems like the array is just getting bigger...and these _level0.CAD_mc.zoomControl.mapContainer values are being added 328 times each time I load another swf from the previous one...can anyone help? I know this is f-ed up but I cannot get my head around it....
View Replies !
View Related
Still Can't Figure This Out - Flash 8
I apologize in advance for posting a similar post, but this one is much more descriptive...and im desparate!
I am loading swfs to level0...and one loads from the other and vice versa...they both call the same custom class that I wrote "XMLShape.as" in the .as file I have an array of movieclips which are booths...these booths highlight when their respective exhibitor is clicked in the list...now the problem is that the movieclip array gets all screwed up when I load the second swf from the first...here is code that I am using to test this problem, and I have figured out that it is losing the reference but how?
ActionScript Code:
function highLight(booth:Number)
{
trace("List Index: " + booth);
trace("MainWin Booth: " + booths[booth]);
trace("MiniWin Booth: " + miniBooths[booth]);
trace("wtf is going on?");
var trans1:Transform = new Transform(booths[booth]);
var trans2:Transform = new Transform(miniBooths[booth]);
tempColor = trans1.colorTransform;
var myColor:ColorTransform = new ColorTransform(1, 1, 1, 1, 250, 200, 0, 75);
trans1.colorTransform = trans2.colorTransform = myColor;
}
--trace from first swf loaded
List Index: 1
MainWin Booth: _level0.CAD_mc.zoomControl.mapContainer.2
MiniWin Booth: _level0.CAD_mc_mini.zoomControl.mapContainer.2
wtf is going on?
List Index: 2
MainWin Booth: _level0.CAD_mc.zoomControl.mapContainer.3
MiniWin Booth: _level0.CAD_mc_mini.zoomControl.mapContainer.3
wtf is going on?
List Index: 3
MainWin Booth: _level0.CAD_mc.zoomControl.mapContainer.4
MiniWin Booth: _level0.CAD_mc_mini.zoomControl.mapContainer.4
wtf is going on?
-trace from second swf loaded...
List Index: 1
MainWin Booth: _level0.CAD_mc.zoomControl.mapContainer
MiniWin Booth:
wtf is going on?
List Index: 2
MainWin Booth: _level0.CAD_mc.zoomControl.mapContainer
MiniWin Booth:
wtf is going on?
List Index: 3
MainWin Booth: _level0.CAD_mc.zoomControl.mapContainer
MiniWin Booth:
wtf is going on?
as you can see...the reference to the actual booth mc number is missing and its referencing the whole map...I cannot understand why...
one issue that I have noticed is that the first time the app is run...the booths array looks like this...
_level0.CAD_mc.zoomControl.mapContainer.1
_level0.CAD_mc.zoomControl.mapContainer.2
_level0.CAD_mc.zoomControl.mapContainer.3
.
.
.
.
_level0.CAD_mc.zoomControl.mapContainer.326
_level0.CAD_mc.zoomControl.mapContainer.327
_level0.CAD_mc.zoomControl.mapContainer.328
when you load the second swf...the array is supposed to be cleared...but it ends up looking like this...
_level0.CAD_mc.zoomControl.mapContainer
.
.
.
_level0.CAD_mc.zoomControl.mapContainer..328 times
then
_level0.CAD_mc.zoomControl.mapContainer.1
_level0.CAD_mc.zoomControl.mapContainer.2
_level0.CAD_mc.zoomControl.mapContainer.3
.
.
.
.
_level0.CAD_mc.zoomControl.mapContainer.326
_level0.CAD_mc.zoomControl.mapContainer.327
_level0.CAD_mc.zoomControl.mapContainer.328
so it seems like the array is just getting bigger...and these _level0.CAD_mc.zoomControl.mapContainer values are being added 328 times each time I load another swf from the previous one...can anyone help? I know this is f-ed up but I cannot get my head around it....
View Replies !
View Related
Still Can't Figure This Out - Flash 8
I apologize in advance for posting a similar post, but this one is much more descriptive...and im desparate!
I am loading swfs to level0...and one loads from the other and vice versa...they both call the same custom class that I wrote "XMLShape.as" in the .as file I have an array of movieclips which are booths...these booths highlight when their respective exhibitor is clicked in the list...now the problem is that the movieclip array gets all screwed up when I load the second swf from the first...here is code that I am using to test this problem, and I have figured out that it is losing the reference but how?
Code:
function highLight(booth:Number)
{
trace("List Index: " + booth);
trace("MainWin Booth: " + booths[booth]);
trace("MiniWin Booth: " + miniBooths[booth]);
trace("wtf is going on?");
var trans1:Transform = new Transform(booths[booth]);
var trans2:Transform = new Transform(miniBooths[booth]);
tempColor = trans1.colorTransform;
var myColor:ColorTransform = new ColorTransform(1, 1, 1, 1, 250, 200, 0, 75);
trans1.colorTransform = trans2.colorTransform = myColor;
}
--trace from first swf loaded
List Index: 1
MainWin Booth: _level0.CAD_mc.zoomControl.mapContainer.2
MiniWin Booth: _level0.CAD_mc_mini.zoomControl.mapContainer.2
wtf is going on?
List Index: 2
MainWin Booth: _level0.CAD_mc.zoomControl.mapContainer.3
MiniWin Booth: _level0.CAD_mc_mini.zoomControl.mapContainer.3
wtf is going on?
List Index: 3
MainWin Booth: _level0.CAD_mc.zoomControl.mapContainer.4
MiniWin Booth: _level0.CAD_mc_mini.zoomControl.mapContainer.4
wtf is going on?
-trace from second swf loaded...
List Index: 1
MainWin Booth: _level0.CAD_mc.zoomControl.mapContainer
MiniWin Booth:
wtf is going on?
List Index: 2
MainWin Booth: _level0.CAD_mc.zoomControl.mapContainer
MiniWin Booth:
wtf is going on?
List Index: 3
MainWin Booth: _level0.CAD_mc.zoomControl.mapContainer
MiniWin Booth:
wtf is going on?
as you can see...the reference to the actual booth mc number is missing and its referencing the whole map...I cannot understand why...
one issue that I have noticed is that the first time the app is run...the booths array looks like this...
_level0.CAD_mc.zoomControl.mapContainer.1
_level0.CAD_mc.zoomControl.mapContainer.2
_level0.CAD_mc.zoomControl.mapContainer.3
.
.
.
.
_level0.CAD_mc.zoomControl.mapContainer.326
_level0.CAD_mc.zoomControl.mapContainer.327
_level0.CAD_mc.zoomControl.mapContainer.328
when you load the second swf...the array is supposed to be cleared...but it ends up looking like this...
_level0.CAD_mc.zoomControl.mapContainer
.
.
.
_level0.CAD_mc.zoomControl.mapContainer..328 times
then
_level0.CAD_mc.zoomControl.mapContainer.1
_level0.CAD_mc.zoomControl.mapContainer.2
_level0.CAD_mc.zoomControl.mapContainer.3
.
.
.
.
_level0.CAD_mc.zoomControl.mapContainer.326
_level0.CAD_mc.zoomControl.mapContainer.327
_level0.CAD_mc.zoomControl.mapContainer.328
so it seems like the array is just getting bigger...and these _level0.CAD_mc.zoomControl.mapContainer values are being added 328 times each time I load another swf from the previous one...can anyone help? I know this is f-ed up but I cannot get my head around it....
View Replies !
View Related
Flash Gurus, See If You Can Figure This Out
I have a problem with my web site that I can't figure out. I have a page set up with input text fields. There is a submit button that runs a perl script. The perl script takes the values of the input text field and writes them to a text file. The text file is then read by the main page and shows the updated dynamic text fields. Everything works fine from every computer I have tried except one. Using the one computer, I got on the internet (via modem if that matters, all other attempts were via DSL/T1) and went to the web page.
Here's the problem:
I tried the submit button to change the dynamic text fields and a pop-up window came up and displayed "HTTP error 405-Resource not allowed." What does that mean? I tried to look the error up and all I could find was some technical jargon saying "the request line is not allowed for the resource identified by the request. Please ensure that you have the proper MIME type set up for the resource you are requesting."
Also, on the same computer, it did not even read the text file to even be able to see the updated dynamic text. The flash just uses a standard load variables command with a random function so that it always uses the most up to date text file.
Here's the web address of the dynamic text fields (the input text fields are in a secure directory using htaccess)
http://www.cvillefood.com/andersons/
To see the dynamic fields click on "Specials" or "Coupon"
Please help, I am very confused
View Replies !
View Related
Think You're Good? Figure This One Out (Flash MX Bug)
Here's the problem:
--------------------------------
Use the .restrict action to enable all keys to be entered into a text field but exclude the ENTER key. (The trick here is to exclude the ENTER key!)
Additional info:
--------------------------------
the ^ (carrot) means to exclude so It should be at least ONE of the following to exclude the Enter Key:
myTextfieldInstance.restrict = "^13" -or-
myTextfieldInstance.restrict = "^Key.ENTER" -or-
myTextfieldInstance.restrict = "^x20943" -or-
myTextfieldInstance.restrict = "^ 15" -or-
myTextfieldInstance.restrict = "^uD" -or-
myTextfieldInstance.restrict = "^IDS_ACTIONHELP_KEY_ENTER2" -or-
about a zillion other ways to represent the enter key.
- HOWEVER -
If you want to ONLY ALLOW the Enter key try this:
myTextfieldInstance.restrict = Key.ENTER
you'll notice it "seems" to work, all the keys are disabled except the ENTER key.. that is untill you type a "1" or a "3" (LOOKS LIKE A BUG TO ME)
Try it out and see for yourself, and if you figure it out.. let me know how you did it!
Frequent-C
http://www.Freq-Fest.com
View Replies !
View Related
I Can Not Figure Out Text In Flash
I can't figure out the flash text situation - no matter what I do, the text looks blurry and horrible. All I want is for the text to be crisp and resemble the font size I choose (I'm using size 10). I tried the following things, all to no avail:
1) Changing the text to all three formats - Dynamic, Static, and Input Text. Static is what I want, but it still looks blurry.
2) Placing the text on an integer coordinate (i.e. x = 26.0, y = 52.0). Contrary to popular belief, this does not work.
3) Importing the text from Illustrator. Not a chance.
4) Converting the text to outlines Illustrator, then importing. Not only is it still blurry, but for some reason, the quality is lower! How does that happen?!
5) Converting the text to a symbol. Nope.
6) Using the system fonts, like "_sans". No.
This is really perplexing. I'm really not asking that much here. Everything looks really anti-aliased.
Any help would be greatly appreciated.
View Replies !
View Related
Link To Something I've Been Trying To Figure Out In Flash
I have always been curious to learn how to make buttons much like the red ones seen here:
http://www.aquicurso.com.br/principal.htm
I love how they quickly make a white flash so subtle like and have seen this on many sites...however, i have never been able to accomplish results like this. I'm only a beginner but I'm wondering if anyone knows any online tutorials that I could learn from that is similar to this?
Or, if anyone is interested in providing a step by step how to that a goof like me could even understand I would certainly appreciate it!
Thanks again!
View Replies !
View Related
Font Figure In Flash
Hi, Can anybody tell me how this was done www.typorganism.com click on ASCII-O-MATIC, the site is really owesome, but this is class. Check it Out.
Does anybody know?
Thanks in advance..
Vini
View Replies !
View Related
Stick Figure Flash?
hey guys.
I justed wanted to know if this stick figure cartoon was made in flash or other animation programs.
if this is in flash, how does he do the 3d view or camera rotation at the end of the short film?
thanks
Here is the link.
http://www.stickpage.com/flair1play.shtml
View Replies !
View Related
ASCII Figure In Flash
Hello Friends out there, Can anybody tell me how this was done www.typorganism.com click on ASCII-O-MATIC, the site is really owesome, but this is class. Check it Out.
Does anybody knowhow is this acheived? How they have derived the ASCII in flash. Thanks in Advance
View Replies !
View Related
Can't Figure This Out (can't Even Figure Out How To Describe It Lol)
I have a function that is getting the dimensions of a textfield so I know how large I will need to create it later on. Problem is, when loading big blocks of HTML w/ embedded images, the textfield may change size a few times before completely loading. If I trace out the "h" property in this function inside a loop, it looks like this:
1107
1107
1153
1208
.
.
.
until it gets to around 1350. I need a way to return that 1350, not the 1107, as my textfields are being sized to small. Any idea how to modify this function below so it returns the correct values? I've tried do/while, just a while loop, and onEnterFrame, but just can't figure out a way to get those values. Any help would be appreciated.
ActionScript Code:
private function getHtmlTextExtent(mcTest:MovieClip, strHtml:String):Object
{
var w:Number = 0;
var h:Number = 0;
var fw:Number = 0;
var fh:Number = 0;
var objExtent:Object;
_txtTemp = mcTest.createTextField("txtTemp", 100, 10, 1, 530, 400);
_txtTemp.embedFonts = true;
_txtTemp.multiline = true;
_txtTemp.wordWrap = true;
_txtTemp.antiAliasType = "advanced";
_txtTemp.selectable = false;
_txtTemp.html = true;
_txtTemp.htmlText = strHtml;
w = _txtTemp.textWidth;
h = _txtTemp.textHeight;
fw = _txtTemp._width;
fh = _txtTemp._height;
objExtent = {width:w, height:h, textFieldWidth:fw, textFieldHeight:fh};
_txtTemp.removeTextField();
return objExtent;
}
View Replies !
View Related
Animating A 3D Human Figure In Flash
greets all,
Has anyone ever modeled a relaistic human figure in Flash?
What I'm wanting to do is pretty simple. Not a lot of animation involved really. Imagine a Leonardo Da Vinci type thing--a basic human figure, say with the arms extended, that simply rotates round and round, and you would simply be seeing a side-profile perspective of this figure as it turns at a slow rate.
Like something you might see on some school computer in a human biology class or something. If a line extending from the top of the head to the bottom of the feet created the axis, it would rotate on that axis. I'd like to make the human figure at least somewhat realistic, but it doesn't have to be absolutely photo-realistic, if you get my meaning.
What would be the best tool for the job? Flash? Swift?
Is it possible to import some kind of 2D image into Flash or Swift and then extrude and shape it to get it to look how I want? I'm not really great at using any 3D programs so you'll have to explain it in layman's terms.
By the way, I have Lightwave 7 3D if anyone knows how it could be done in that or has any samples they might want to educate me with
Thanx!
View Replies !
View Related
Stick Figure's Walking In Flash MX.
Hey, I've got a question.
I'm making Stick Figure's for a long while. But I made that with Flash 5. Everybody said that Flash MX was better, so I installed it.
Now I don't know how to let my Stick figure's walk.
please help me out of this one!
View Replies !
View Related
Please Help Me Figure Out This Issues On My First Flash Site
Source: http://filebox.vt.edu/~gyanez/flash_test/source/
To see website: http://filebox.vt.edu/~gyanez/flash_test/index.html
Let me explain what I am trying to do with this portion of the site.
(1) Flash intro plays and you have the option to skip intro thru a button on the lower right corner
(2) Once intro done playing or user hits "Skip Intro" button the site loads an external jpg (from images/mainpic.jpg). This jpeg once loaded is revealed by an animated tween mask that goes left to right.
(3) Also there is an invisible button over the loaded jpg thta tells swf to animate a dynamic text box when user rollsover the image. This text box is filled by use of external txt file using LoadVars.
Ok my main issue are that:
(1) When the mask finishes revealing the jpeg (mainpic.jpg) the jpeg just goes away from the screen. Why is this? I put a stop() action in last frame of home.fla.
(2) After the intro is done playing and the preloader launches to let me know that the jpeg is being loaded the invisible button becomes enabled so the scrolling text box shows up over the preloaded even though the jpeg isnt up yet (I only want the text box to be revealed once the jpeg is fully shown and not before). How can I do this?
(3) Lastly. The text inside the dynamic animated text box shows the contents of the .txt file but then the text goes away and never shows up. Why is this?
Thanks and sorry for all the questions. I'm new at this and been at my wits end getting this done. Also, if you see any room for improvement (ex: if I am doing this the hard way, etc) would be appreciated.
Thanks.
View Replies !
View Related
Aw You Cant Figure It Out(IE 100% Refresh Breaks Flash)
ok here it is...
i have my flash movie set to 100% width using the flashobject in the HTML.
if you take a look at it in IE it works fine... untill you press the refresh button in the browser. then everything gets all jacked up.
but wait... if you right click on the movie(when its all jacked up) and set the quality to "low" or "medium" it goes back to normal... WTF?
check it out... this is the way i need it to be(width: 100%)
http://www.pokerdirect.com/Dad-Son/index.htm
this is it with the movies correct width(width: 960px)
http://www.pokerdirect.com/Dad-Son/index2.htm
has anyone seen this problem before? any ideas
stupid IE
View Replies !
View Related
I Wonder... About The Varible
i brought a book teaching flash actionscript .
one example is as following:
onClipEvent (mouseMove) {
x0 = _root._xmouse;
x1 = this._x;
y0 = _root._ymouse;
y1 = this._y;
x2 = x1-x0;
y2 = y1-y0;
distance = Math.sqrt((x2)*(x2)+(y4)*(y4));
setProperty (this, _alpha, distance/.5);
updateAfterEvent();
}
i am confused that why they can use "y4".
also the footnote of the page tells reader that the "x2" in line 8 can be changed to "x4",as well as "y4" in line 8 can be changed to "y2", in order to show the different effect on the movie.
actually the movie works when i open it.
i think my origin of the problem is whether:
flash can recognize the varible as x1 x2 x4 .....?
i wonder...
View Replies !
View Related
Varible Mc Name
hallo!
ive got an variable which contains the name of an mc i want to switch x, y corrdinates for
how would i do that?
ActionScript Code:
myMcName="ss1";
myMcName._x=200;
how would i do that in a way that worked
Thanks
//VoS
View Replies !
View Related
AS3 - Flash To Php Back Flash ... I Can't Figure Out Whats The Issue
ERROR MSG
Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs.
at Error$/throwError()
at flash.net::URLVariables/decode()
at flash.net::URLVariables$iinit()
at flash.net::URLLoader/flash.net:URLLoader:nComplete()
MY AS3 CODE
Code:
public class UpdateCMS extends MovieClip {
public var article_id:Number;
private var variables:URLVariables;
private var request:URLRequest;
private var loader:URLLoader;
public function UpdateCMS()
{
addEventListener(Event.ADDED_TO_STAGE, init);
}
private function init(event:Event) : void
{
this.insert_btn.stop();
sendAndLoad();
}
public function sendAndLoad () {
request = new URLRequest("http://localhost/JOURNAL/cms_update.php");
request.method = URLRequestMethod.GET;
variables = new URLVariables();
variables.article_id = MovieClip(this.parent).article_id;
request.data = variables;
loader = new URLLoader(request);
loader.addEventListener(Event.COMPLETE, dataLoaded);
loader.dataFormat = URLLoaderDataFormat.VARIABLES;
loader.load(request);
}
private function dataLoaded (e:Event) : void
{
var vars = new URLVariables(e.target.data);
title_txt.text = vars.title ;
article_txt.text = vars.article;
}
Code:
MY PHP CODE
PHP Code:
<?php
include('includes/conn_mysql.inc.php');
include('includes/corefuncs.php');
// remove backslashes
nukeMagicQuotes();
// initialize flag
$done = false;
// prepare an array of expected items
$expected = array('title', 'article', 'article_id');
// create database connection
$conn = dbConnect('admin');
// get details of selected record
$article_id = $_GET['article_id'];
$sql = "SELECT * FROM journal WHERE article_id = $article_id";
$result = mysql_query($sql) or die (mysql_error());
$row = mysql_fetch_assoc($result);
echo "title=" .urlencode($row['title'])."&"."article=".urlencode($row['article']);
?>
View Replies !
View Related
Flash Presentation Slow - Figure Out This Equation
I've got a flash presentatino that is running off a pc. It will be displayed on 3 flat panels, each with a resolution of 1366 x 768. The presentation will be running horizontally using window's extended desktop feature, so I assumed I would create it at 4098x768. Flash, however is unable to creat a movie higher than 4000px wide. I decided it make it at 50% - 2049x384 and just zoom in when I get it going. The problem is, we tested it out today and it runs VERY SLOW at the actual size. Is there something I can do to fix this? I also have audio that needs to play. Any solution would be appreciated. Thanks in advance!
View Replies !
View Related
Flash Beginner Here - Gotta Figure Out How To Put A Site Together
I'm starting out with Flash, and at this point I know how to make a simple flash site with a menu and different sections, by making different content on different frames along the timeline and then programming buttons that jump between frames. But now I need to make a site with this kind of functionality: http://playdigital.ca/
What I don't know how to do here is:
How do I put together transitions between different parts of the site, like when the user clicks on a menu item, have the current content fold in or scroll out of view or whatever, and then have the selected content come in? I know how to animate things along the timeline, but not how to get flash to play through an animation of one section closing while another one opens. Is there an actionscripting way of saying "whichever button just got clicked on, play through this part of the timeline that shows the current section disappearing, and then go to the sequence for the button that just got clicked"? Or am I thinking about this wrong?
If there's a tutorial on this that somebody wants to link me to that'd be rad, any help would be appreciated big time!
View Replies !
View Related
Trying To Figure Out Text Variables In Html To Flash
I helped produce this site over 4 years ago, and i can't remember how to use the variable text that appears in the main header:
http://www.shastadrivingschool.com/services.shtml
"Services Shasta Driving School Offers"
embed src="header.swf?header=Services Shasta Driving School Offers"
i tried to recreate this. I made a small flash file, dynamic text box, added "header" as a variable name, also mirroring my embed src HTML code to match variable name... I feel like i'm missing something else.
can someone help? I know i'm over looking a simple item here.
View Replies !
View Related
Flash Player Isn't Appearing In Content - Cannot Figure Out Why
Hello,
I am trying to include a small swf into my blog. The player itself is here , and after a short loading time, you'll see it plays properly.
It is SUPPOSED to go in the upper right hand corner of this single page, but it isn't appearing. I'm using this code to call up the swf:
Code:
<div id="flash_player">
<object width="75" height="35" class="movie" data="http://www.oipmusic.com/flash/LoopPlayer.swf"
type="application/x-shockwave-flash">
<param value="http://www.oipmusic.com/flash/LoopPlayer.swf" name="movie" />
</object>
There is one other small thing: I'm running wordpress to run this blog. But as far as I can tell, I don't see what is going wrong with it, or any reason that means it shouldn't work. I've tried various plugins, etc to get the flash player to work, but no dice.
Thanks in advance to anyone who can help me
S*
View Replies !
View Related
Set Varible, Tell Target
Hi, everyone.
Sorry, I know this must be a very simple question, but I can't figure out what I am doing wrong. I'm still fairly new to Flash 5 actionscript, and have been experimenting lately with a "Rock-Paper-Scissors" type game.
I have two instances of a movie clip on my time line, one name "char" the other called "comp". The first frame declares the varibles "choice" and "compchoice" as follows:
var choice=1;
var compchoice=random (3);
The next frame stops. I have 4 buttons in this frame, 3 to alter the "choice" varible and one to continue to the next frame. Button script is as follows:
on (release) {
choice = 1;
}
With the other two being 2 and 3. Then another button continues the time line and the next frame has this script:
if (choice=1) {
tellTarget ("/char") {
gotoAndPlay ("rock");
}
}
if (choice=2) {
tellTarget ("/char") {
gotoAndPlay ("paper");
}
}
if (choice=3) {
tellTarget ("/char") {
gotoAndPlay ("scissors");
}
}
The problem is that the "char" instance always plays the "scissors" animation. I set up dynamic text fields to track the varible (I've heard there's another way to do this in F5, but I can't remember how) and although it starts as 1 and I can change it with those 3 buttons, when I hit the "Go" button to play the animations, I always get scissors, which kind of kills the game.
Any help would be greatly appreciated.
Thanks!
JG
View Replies !
View Related
Little Varible Problem
Just cant figure out what is wrong with this...I'm sure it's simple.
MC "expand"(in main timeline) sets a variable on frame one, open="closed"
on frame 20 there is a stop action and open="open"
a button has the following script
on (release) {
trace (_root.expand.open);
tellTarget ("_root.expand") {
gotoAndPlay (2);
if (_root.expand.open=="open") {
loadMovie("workingband.swf", "_parent.bandtarget");
}
}
}
the trace command doesn't read the change to "open" until the movie is replayed. Does it only check one time after the button is hit? Shouldn't it continue to check and see if the variable is "open"? I want the load movie to happen after the MC "expand" has gotten to the last frame and the variable has changed to "open". thanks for any help.
View Replies !
View Related
Varible Question
Ive have this in the main stage. >>
function createButtons(){
playerTurn = 2; <<< MAIN PART of my question
// create the invisible buttons!
j=0;
for (i=0; i<6; i++) {
for (k=0; k<6; k++) {
attachMovie("masterpiece","button"+i+k, j);
eval("button"+i+k)._x = 211.3+(i*56);
eval("button"+i+k)._y = 50.1+(k*50);
j++;
}
}
}
stop ();
ok and i have a button with this code
on (press){
_root.playerTurn = _root.playerTurn++;
if (_root.playerTurn == 4){
_root.playerTurn = 2;
}
}
HOW COME PLAYER TURN DOESNT INCREASE???
View Replies !
View Related
TellTarget Varible
I have a stop button that tells a movie clip to stop. The name of the movie clip is set by the variable "slide". Below is the action, which works fine if the stop button is in the main timeline.
on (release) {
tellTarget ((slide)) {
stop();
}
}
However if the button is in a different movie clip it does'nt work. Below is what I thought would be the answer but is NOT.
on (release) {
tellTarget (_root.(slide)) {
stop ();
}
}
I also tried it without any expresions, but no luck. Any items anyone?
View Replies !
View Related
Varible Issues
i have three text fields (variables). i need to be able to dynamically be able to set the value of of these fields, but more importantly i need to be able to dynamically select which field to set the value of. in other words i need to store the variable name of the text fields value in a variable and then set the value to the dynamically selected variable. hehe this really is starting to sound more confusing than it should be. anyways the problem is when i try to set the value of a variable from within another it seems to convert everything to strings. any help would be usefull. also been having problems concatenating variables with strings to access other variables and functions. help. thnx.
View Replies !
View Related
Tutorial Varible Help - Im New
I was going through this and I dont understand how to do this: (I am very new at flash)
To create hidden information that is passed to the script and eventually the e-mail, all you have to do is set a variable. For example you can set a unique Subject line in each e-mail you send by creating a variable named Subject. Another example would be if you wanted to set a different destination e-mail address for each occurrence of the form. This is important if you want to be able to use the same exact form to be able to send different e-mails in different locations in the main Flash movie. And then give it a value. Here's an example:
Subject = "This is the Subject";
ToEmail = "joeBob@example.com";
These variables must be located on the same level in the same movie clip as the rest of the text fields. Additionally, the button that will eventually call the script and send the information to your server and on to the specified e-mail, must reside at that same level.
Can you help???
View Replies !
View Related
Assigning Value Of A Varible
Hi All,
I am trying to assign some variables value which are placed on the main stage
lets say
var1, var2,.........., varN
_level0.varN
On the main movie another movie is loaded which has some movieclips, whoes shape and color values are changed with the users input (by clicking on the buttons) even can uload the movie but if he further loads the movie he should get the same (last view). There are about 100 such movies and movie clip.
I am saving a varible to store that.
but when I want to reset these variables
lets say
_level0.varN = 1
for(i=1; i<=myMCvar.length; i++)
{
var setVAR = eval("_level0.var"+i);
//default value is
//I want to set it to 2
//I tried this way
trace (setVAR);//output is 1;
setVAR = 2;// but this doesn't work ...
trace (setVAR)//output is 2;
trace (_level0.varN);//but the output is 1, where as I want it to be 2
}
Can Any one Help me in This..
Bids
View Replies !
View Related
Loading A JPG From A Varible
Hi there,
I want to be able to open a html pop window of a specfic size, loading a jpg in it from a varible from within flash.
I have messed around with it, but can't get anything working. - gettingflash to pass the url for the jpg and getting the html to load it??
Can anyone help
Many thanks in advance.
Kaan.
View Replies !
View Related
Random Varible
I have varible
number_of_tracks
that i read for an external file, it reads it in fine.
i then want to create a random number using it but for some reason all i get is 1 coming out
myRandom = random(29)+1;
it works fine if i replace the varible name with an integer
Andrew
EDIT : i myRandom has to be a whole number
View Replies !
View Related
Get URL Button To Use Varible As The Www.com
Ive got a text box with the varible "link1" ive then got a external txt file loaded telling "link1" to be ......www.microsoft.com ...for instance.
ive then got a button next to the text box... which i want to add some sort of Get URL action to it so that it takes the varible from the txt file or text box then opens a new window with that link.
The reason for this is because i want to only have to change the txt content to change the links included in my flash movie...
Sounds great ...with hardly no messing around....
Can anyone help me.....
DONT REPLY with JUST get URL command ...a no brainer can do that...i just need it to get the url dynamically........ASWELL
anyone!
Ta
View Replies !
View Related
Sendto Varible
so i have this form which is going to be used to sell things, like a shopping cart. i have it all worked out but now i need it to be sent to a email address with all the information and headings...
How is this done???
View Replies !
View Related
Sendto Varible Help
sendto varible
so i have this form which is going to be used to sell things, like a shopping cart. i have it all worked out but now i need it to be sent to a email address with all the information and headings...
How is this done???
View Replies !
View Related
Loading Varible From Php
is it possible to tell flash to get a varible from a php file which the flash movie is embeded in.
for example i have a mp3 page mp3.php which contacts a mysql database and gets 1 (only 1) mp3 by calling it by id mp3.php?id=2 if i embeded a flash player into mp3.php how would i go about getting the url from mp3.php so that the embeded flash player would play it ???
any comment would be helpful at this point!
View Replies !
View Related
How Write This Varible
Heloo, i'm a beginner in flash..
i have some problem with my flash..
i'm sorry if my english is not well..
can u help me:>
i have some movieclip that the name are node1, node2, node3 ... etc.
then, i want to access them with function FOR, just like :
for (i=1; i<10; i++)
{
_root.node[i]._visible=false;
}
my question is how to write in the action script to access my movieclip?
Is that ...node[i].. true or false?
but, it's not working 2 me..
i can't find the answer in actionscript dictionary.
after that how to write it if :
//i have a variable car.
car=2;
//and then i want to set the property of my movieclip
setProperty("assembly/nav", _x, getProperty("assembly/node[car]",_x));
setProperty("assembly/nav", _y, getProperty("assembly/node[car]",_y));
is that ...node[car]... true or false?
how to write in the action script?
thanks for anyone who can help me.
View Replies !
View Related
|