Using URL Encoded Variables
Hi,I'm trying to create an array from text contained within an external file. In the external file are multiple variable names. I am passing the variable name to be turned into an array using a query string (based on the directory name). From my page source, I can see the correct string is being passed to the swf file. Previously, I had the variable name hardcoded in the external file ie: myAr1=this.myAd1.split("|"); , myAr2=this.myAd2.split("|"); etc. External variable names being myAd1, myAd2.I now want to have the external variable name taken from the URL query string 'myAdvertiser'My html page source shows the passing of this variable name to be correct: <param name="movie" value="/sync/directory/flashtest2/flash/glist_acid_version_myAdvertiser.swf?myAdvertiser=flashtest2" />and<embed height="404" pluginspage="
Adobe > ActionScript 1 and 2
Posted on: 09/18/2007 03:38:29 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Get Variables That Are Not Url Encoded.
my boss wants to return a string of stuff when i loadvariables from a script. does the returned sting have to be url encoded? can i manipulate the string and put it into my own variables?
in the string he gives me, it will contain "&" in many places. will this effect anything?
Non-url Encoded Variables Out Of Flash?
I have a variable that includes a hash mark in the value.
In a getURL function, I need to send this variable. Unfortunately, flash encodes that hash mark, and it no longer functions as it should in the .asp page that recieves it:
the variable:
aspMonth=8#29
the url sent to the .asp page:
http://pc8/springsguide2002/calendar...spMonth=8%2329
Is there some way to make flash not url encode this variable??
Cheers,
Quasi
Sending Url Encoded Variables
this will be an easy one for you guys, i am stumped and stressing, still a bit new to actionscript.
anyway heres my dilema
i have a form in flash ten text fields that must have the variables sent out in a URL format to a perl script that will send emails accordingly.
the variables are
_root.textFields_mc.firstName_txt
_root.textFields_mc.lastName_txt
_root.textFields_mc.email_txt
ect...
this is the URL it must hit:
Code:
http://www.nottherealdomain.com/cgi-bin/test.pl?firstName=eddie&lastName=harris&email=eddie@soul.com&address=4960&city=LA&state=California&zip=95123&dayPhone=8315661005&sponsor=horaceSilver&auth=stax
this is on the MC with the text fields
on (release){
_root.textFields_mc.getURL("http://www.suckywebsite.com/email.pl?firstName''&lastName=''&email=''&address= ''&city=''&state=''&zip=''&dayPhone=''&sponsor=''& auth=''", "POST")
}else{
_root.Play(67);
}
that is what i need help with... how do i format this to send url encoded variables out to hit the mark??
also i have this on the parent MC
onClipEvent(data) {
_root.gotoAndPlay(96);
}
is this the best method to ensure that the data is loaded to the cgi?
thanks guys i appriciate any help you can give me.
Loading URL Encoded Variables [error]
Hi,
I read this tips:
http://www.kirupa.com/forum/showthre...36#post2120336
write in my way
Code:
stop();
var loader:URLLoader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.VARIABLES;
loader.load(new URLRequest("test/links/getVideo.txt"));
loader.addEventListener(Event.COMPLETE, sendAndGetVars);
function sendAndGetVars(Void):void {
trace(loader.data is URLVariables);
}
//FLVurl
but get:
Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs.
Why?
"#" URL-encoded Variables?
I'm just looking around, and I see more and more flash sites displaying the query string like so:
http://www.thinkswedish.com/#Content...:0=entry+1=816
What is the advantage of passing variables this way? And how would you load this query string into your application?
Url Encoded - Mx ?
I've got this problem with updating an older site:
The previous version was made in flash 4, changed and maintained in flash 5, but now I've made some changes that require flash mx... the damn thing stops working correctly:
We've imported data into textfields through url-encoded-scripting. But MX doesn't seem to bother when to split it's sentences, even though there's a script for it.(the field is in an mc with three frames, 1 to check, 1 to go back, and this final one)
awArr = aw.split("#");
for (i=0; i<awArr.length; i++) {
myCompet += awArr[i] add newline;
}
stop();
And everything works fine in Flash 5... even if I export my new project to 5... but when I use MX... Everything gets messed up!
what's been changed??
robin
XML Or URL Encoded ?
I am working on a project and I need to load several text files into flash. I have heard that XML is very good for this so I have started a tutorial about XML in Flash. I am very surprised on how BADLY XML and Flash comunicate. From all that I have read so far I've seen that XML has a larger filesize, it takes flash more time to get the data and it is much more complicated than using simple text files. I see that text files are much better than XML. So what is the point in using XML in flash ? Is the fact that XML has arranged text worth that much complication ?
About my project, I mill make an admin for it that would automatically write and update the text files so there is no point in the text being arranged. So is it ok if I simple use urlencoded instead of XML ?
URL Encoded Anchor
Any ideas if this is possible.
My site will have 10 sections, each pulled into a master movie using load movie. In order to allow users to book mark areas i wanted to be able to url encode links.
i.e. default.asp?area=about
or
default.asp?area=contact
How can i grab the above variable 'area' in order to use it at run-time.
Really urgent, any ideas will be VERY appreciated..
Thanks in advance,
Kris...
Url Encoded Chars
my flash movie loads a .txt file into a dynamic text field. my .txt file has an ampersand '&' within the copy and ive tried replacing all instances of it with %26 to no avail. it just puts a space where there should be a &.
am i missing something?
XML Response Is Encoded, But Why....
Hey guys,
I wrote a simple script to make a request to the server and trace the output thus:
function sendForm(evt:MouseEvent):void {
mc_viewStack.gotoAndStop(2);
variables.senderDob = txDob.text;
variables.senderEmail = txEmail.text;
variables.senderNews = newsletterUrlVar;
variables.senderOptin = optinUrlVar;
req.data = variables;
req.method = URLRequestMethod.POST;
loader.load(req);
showBusyCursor();
loader.addEventListener(Event.COMPLETE, receiveLoad);
loader.addEventListener(IOErrorEvent.IO_ERROR, handleIoError);
}
function receiveLoad(evt:Event):void {
processXML(evt);
hideBusyCursor();
}
function handleIoError(e:IOErrorEvent):void
{
trace(e.text);
}
function processXML(e:Event):void
{
var myXML:XML = XML(e.target.data);
trace(myXML.toXMLString());
}
This is all good and fine, and it works, but the returned string is encoded in what I believe to be some sort of html entity encoding. Some of these characters are too strange to be html character entities, though. For one thing less than symbol is represented here by %3C, but it should have been <.
%3C%3Fxml%20version=%221%2E0%22%20encoding%3D%22UT F
%2D8%22%3F%3E%0A%3Cresponse%3E%0A%3Cerror%20field
%3D%220%22%3EYou%20must%20accept%20the%20official% 20rules
%3C%2Ferror%3E%0A%3Cnoprize%3E0%3C%2Fnoprize%3E%0A %3C%2Fresponse
%3E
Any help woul dbe great.
URLLoader And UTF-8 Encoded PHP
This is really frustrating. I have a URLLoader that gets some data (in valid XML format) from a PHP file. Then i do something like:
ActionScript Code:
var xmlData:XML = new XML(e.target.data);
on the Event.Complete of the URLLoader.
Now the problem:
When the PHP file is in ANSI encoding (saved as "ANSI" with notepad for example), the above code works fine!
When the PHP file is saved in UTF-8 encoding (the code inside remains the same of course!) the above line of code throws an error. Not well-formed root element or something...
I had to go with saving it as ANSI since time is pressing me, but i'd like to know why that happens or if there is a way to fix it.
Thanks!
Does The Video Have To Be Encoded To A .flv?
My question is...do I have to use the flash encoder to import a video? Basically, I have compiled a .flv file from within Adobe Premiere Pro using the Adobe Media Encoder within Premiere. Now, I have to compile the frame size at 320x240 in order for the video to fit within the stage area (600x320) our developer has defined. He's referencing the .flv file, not importing it directly. Now, it looks fine when the flash player window is minimized; however, when when the player window is expanded to fit the screen the video looks very pixelated. I was wondering if anyone knows if I have to import a .flv file or can I import a .mov file without encoding it into a .flv?
Thanks,
jaime
How Do I Play An Encoded Flv?
I have done one flash job before for a site that looked terrific, and I enjoyed the experience. But it didn't have any video in it.
In this new job I've downloaded the 30-day trial version (I did the last job on someone else's computer). I want to have a video on the index page of my client's website.
I opened the video encoder. As a film editor, I found all its functions easy to understand. I've now endcoded 3 different Quicktimes. None of them will play in SAFlashPlayer. I try to open them and nothing happens. I've studied the manuals, and I can't find anything that I've done wrong.
I'm using a G5 with 3 GB ram.
Any help appreciated. Hal
Resize Already Encoded FLV?
hi, this is probably something basic but i couldn't figure it out... is there a way to resize an flv? i have a client that gave me a set of FLVs that a previous designer made for him. the client no longer has the original mpgs. these flvs are much larger than we need them for the new site, and if i just resize them from flash on playback they look terrible and are an unnecessary longer download. i tried importing the flvs into flash's encoder, flixpro and squeeze and haven't had any luck. thanks for any help!
URL Encoded Characters
Hi everyone
I am wondering why Flash can't handle URL Encoded characters from C on ? I can use %B9 perfectly for example, but I can't use %E9 ? I'm not using it for anything, I'm just wondering ...
URL Encoded É Character (%E9) Won't Appear In SWF
Hello all,
I'm trying to load some text into Flash containing an accented e character - é - in the phrase 'my fiancée is'.
It's coming out of the database via ASP, to give a URL-encoded text string, so Flash is receiving 'my+fianc%E9e+is'.
However all the SWF is displaying is:
'my fiancis'
The SWF won't display the é character and for some reason it's removing the final 'e' in fiancée and the space after it.
I've tried embedding all character sets into the text field as well as explicitly embedding the é character.
Does anyone have any idea what I'm doing wrong?!?!?!?
I'm on Flash 8, Actionscript 2.
Thanks for any help you can give,
Gareth Jones
Encoded Mystery Mouse
Hi.
I know how to transform the mouse cursor into another graphic..
HERE'S THE QUESTION>>
I need to know if it is possible to transform the cursor into an object on one side of the screen, but reverting back to it's cursor form on the other half.
thanks.
Grabbing URL Encoded Data
I need my flash movie to grab data from it's own URL much like a server script would (i.e. http://www.domain.com/flash.swf?data=value). I thought I remember reading once that there's an action script to do this automatically but I can't find any information on how to do this.
Is there a way or do I have to write an actionscript to parse the data?
HOW: UTF-8 Encoded XML Data To Flash MX ?
XML to Flash and back is EASY. Now i am creating an application that works with Japanese. I know i can load my Japanese Text from text files but as it seems loading Japenese from XML is impossible because quitefrankly Flash does not understand XML's encoding that I specify in the XML tag, this is what i have:
<?xml version ="1.0" encoding="UTF-8"?>
So far the only thing i can think of is instead of text I have file names to .txt files and then do another LoadVariables command in order to get the text encoded. Is there any way of making Flash understand the XML encoding?
Please help !
Thanks. Arseniy
URLForm-Encoded Viewing
I have a flash file that has an object called _root.out.
Inside this object is all sorts of variables:
out.z
out.y
out.x
out.0r0a0
out.0ra01
out.s
et nauseum..
Anyways, I also have a dynamic text field called _root.textOutput
What I want to do is output the URLForm Encoded format of all the variables in _root.out into a viewable format inside _root.textOutput.text
So basically, when I (say) press a button to cause this all to happen, _root.textOutput.text will be equal to:
z=1&y=2&x=3&0r0a0=73&0r0a1=283&s=200
So basically, I want to see the URLForm encoded variables INSIDE flash
Is there a way I can do this? (even if I have to resort to manually encoding it?)
Getting URL Encoded Values Into Flash MX
I am having difficulty trying to load URL encoded values into my Flash MX file.
On my first keyframe i have the following code.
loadVariablesNum("FlashPage.asp", 0, "GET");
The 2nd keyframe contains 2 dynamic text fields with the same names as the url encoded variable names.
Questionmark Not Encoded By EncodeURI ?
hi,
shouldn't the encodeURI function also encode questionmarks ?
this code:
Code:
var uri:String = 'string?with?questionmarkand"quotes"';
trace(encodeURI(uri));
generates the following string:
HTML Code:
string?with?questionmarkand%22quotes%22
I'm not that familiar with url encoding, but from my understanding the questionmark needs to be encoded as it is a reserved character.
URL Encoded String Error
I am passing a URL encoded string as a Shockwave Parameter to my flash movie in the form of:
myPage.asp?myVar=%CB%0A8%D7W%C8j%ECU%3C
if I get this value and try to display it in a text box, all I get is a single number 8. What is the problem? I've tried embedding the fonts wondering if that had something to do with it but with no luck.
Someone must have some idea?
Chris
Help With URl Encoded Text File
Hi all
I have a text file which is loded into Flash and displayed accordingly as content. Within the text file I have used URL encoded characters to represent special characters, such as %25 is a percent sign (%). I need to show the sterling pound sign (£) but every time I state %A3 it does not show up. Its just an empty space on my flash page.
I am using this link for reference:
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14143&sliceId=1
My dynamic text field has the following options selected in the Character Embedding panel:
uppercase
lowercase
numerals
puctuation
basic latin
If i put the sign in for the $ sign (%24), it works perfectly, but the pound sterling sign will never show up - aaaarrrgggghhh!!!!!
Any suggestions pleeeeease?
Hex Encoded Email Problems
I tried using a hexidecimal encoded email in the "GetURL - mailto" action, but its not working - does anyone know how to do this? When i use a regular email address, it works - just not a hex encoded one.
Masked Txt With Url Encoded Characters, Possible?
(reposted from flash mx forum)
hello.
I've gotta scroll some dynamic txt from a txt file under a mask. As I have to embed the characters, so I lose my ability for HTML formating and url encoded characters. I want to url encoded characters so i can do that spanish e thing and ambersands...
Is there any way to make this happen?
Url Encoded Chars And Xml .. Not Working?
hi there folks,
I am building an xml file.
i need to use é. This doesn't seem to work as everything breaks when it gets to that character. So i tried replaceing it with "%E9", but it just prints as "%E9" in flash? My text field is set to "html" and ive tried embeding all characters and embeding no characters.
I've also tried to use the "include these characters" feature of the embed dialog with good results. The é simply disappears and takes out 1 character following it (even if its the "<" from the closing xml tag, which is what i assume is breaking things.)
What am I missing? Do i need to us CDATA? I hope not as that would require a massive rewrite of both the xml and my application.
EDIT:
just want to add extra info if it helps:
this is what i'm doing now as far as this example xml node:
<CLIENT_NAME>Little Village Café</CLIENT_NAME>
if i send it to flash that way it ends up like this:
<CLIENT_NAME>Little Village Caf�CLIENT_NAME>
the party ends at this point....
my ghetto fix at the moment is to have my XML writing zinc app take every é and .split().join() it the url encoded equivelant. Then, in my flash app i .split().join() it back to é ... pretty lame as this only solves for a é when it happens to be needed. In fact encoded equivelant really has no meaning in this senario, just a place holder.
please help
Looking For A Text To URL Encoded Converter
Ok I'm looking for a converter that will convert Plain text (or a word doc) to URL encoded text so I can easily update my site
No my site per-se, for a client... they want to be able to have a non-html person update the content on the site...
Can any body help?
-Mopie
Hex Encoded Email Problems
I tried using a hexidecimal encoded email in the "GetURL - mailto" action, but its not working - does anyone know how to do this? When i use a regular email address, it works - just not a hex encoded one.
Why Is My Encoded FLV Video Slanted?
Hi,
I am trying to encode videos from .avi to .flv, but the .flv always ends up distorted and slanted. I am using Flash CS3 Video Encoder, with settings such as 400kbs, with cropping and resizing. Any ideas?
Error In URL-encoded Variable Passing
I have 3 varibles to pass from my Flash to my ASP file: cpuname, xmouse and ymouse. The problem is in the URL-encoded info it passes to my ASP page:
http://localhost/newposition.aspx?ym...20%20%20%20%20
ymouse supposed to be only 232 but it's shown here as 232%2E45
xmouse supposed to be only 256 but it's shown here as 256%2E5
cpuname supposed to be CPG08WT024
How do I get rid of the unwanted special charaters?
My Actionscript code:
myPosition = new LoadVars();
myPosition.cpuname = this.CPU_Name;
myPosition.xmouse = _root._xmouse;
myPosition.ymouse = _root._ymouse;
myPosition.send("newposition.aspx",myPosition,"GET ");
Thanks in advance.
Displaying Base64 Encoded Images
Hi Guys
We are writing an application which is heavily reliant on a PHP backend database which will be running oracle. We want to cut down the number of calls to this backend to the minimum to free up server resources.
One of the major calls to the backend is in loading jpg's and sw'f to display in the client flash movie. Most of these images are very small - some only a few bytes so we want to find a way of loading multiple images in one hit to the backend. At the moment the php interface returns the images in a base64 encoded format.
So my question is - how can I display an image that is returned in a sendandload request encoded as a base 64 string.
Can it be done?
Is there any other way of loading more than one image per back end hit?
Thanks
Giles Roadnight
Converting Array Into URL Encoded String
i am trying to convert an array into URL encoded format to save to a text file.
I have been joining the array with .join(",") but when i convert it using .escape it also converts my comma's which Im using to split the array when I import.
can anyone suggest some code to URL encode my data in the array and then join it with commas seperating the array elements?
Url Encoded(Query Strings) Whatever You Call Them..
hey FK!
question, i am trying to figure out how to do this or explain it for that matter.
http://www.mysite.com/myVDS.html?item=1911 (this is the link to my as3 app)
i want to bring in the item and its value to flash. and just simply trace it or display it in a textbox. (for the time being.)
I have tried external interface, swfobject 2.0 and a bunch of other methods to accomplish this. the thing is i am trying to make this dynamic so that no matter the value of item , it can be displayed.
can anyone help me?? any source snippet that can help me to accomplish this?
Encoded Flash Has Ripples In Movement
Hi all,
I have an avi file I encoded via flash's 'Flash 8 Video encoder'. I used best quality encoding and my source avi play fine but when encoded and replayed the flash file has rippling when the camera moves suddenly.
See here: http://ely.blip.tv/file/173570/
Are there any setting I can adjust to remove this effect?
Thanks
Karl
Show Image At End Of Encoded Movie
I have encoded a wma movie and have it streaming on a page. Thing is the screen goes black at the end of the movie. I don't want to repeat the movie, rather I would like to display a jpg once the movie has finished. I'm assuming I need to use a cue point, but I have no idea what the parameters mean or what event type I should use or any of that. It seems like this should be simple but I cannot figure it out. Any help is appreciated.
Masked Text With Url Encoded Characters. Possible?
hello.
I've gotta scroll some dynamic txt from a txt file under a mask. As I have to embed the characters, so I lose my ability for HTML formating and url encoded characters. I want to url encoded characters so i can do that spanish e thing and ambersands...
Is there any way to make this happen?
Resize Previously Encoded FLV (not With Code)?
hi, this is probably something basic but i couldn't figure it out... is there a way to resize an flv? i have a client that gave me a set of FLVs that a previous designer made for him. the client no longer has the original mpgs. these flvs are much larger than we need them for the new site, and if i just resize them from flash on playback they look terrible and are an unnecessary longer download. i tried importing the flvs into flash's encoder, flixpro and squeeze and haven't had any luck. thanks for any help!
Encoded Unicode Won't Display Correctly (/u2020)
Encoded Unicode in XML wont display correctly (u2020)
Hello,
I am having a problem with ecoded unicode chars that are loaded from an xml file.
I have it working in flash:
Code:
test_txt.htmlText = "2014 u2014 2020 u20202264 u2264 220F u220f 03c0 u03C0";
that displays this:
2014 —
2020 †
2264 ≤
220F ∏
03c0 π
This also works (very hard to get it to display in forum right -- php+code+php):
PHP Code:
<?xml version="1.0" encoding="UTF-8"?>
<data>
<text><![CDATA[
Code:
2014 —
2020 †
2264 ≤
220F ∏
03c0 π
[php]]]></text>
</data>
[/php
However none of this works and it is what I need to work:
PHP Code:
<?xml version="1.0" encoding="UTF-8"?>
<data>
<text><![CDATA[
-#x-encoded
<p>2014 #x2014 2020 #x20202264 #x2264 220F #x220f 03c0 #x03C0</p>
-u - encoded
<p>2014 u2014 2020 u20202264 u2264 220F u220f 03c0 u03C0</p>
]]></text>
</data>
It displays the codes, it does not decode them in flash. This is what appears in the text field:
-#x-encoded
2014 #x2014
2020 #x2020
2264 #x2264
220F #x220f
03c0 #x03C0
-u - encoded
2014 u2014
2020 u2020
2264 u2264
220F u220f
03c0 u03C0
How do I make flash decode the unicode encoded special character entities?
I could really use some advice here. I have already tried different encoding="" and the codepage thing, but none seem to do the trick. If flash can decode the unicode in basic action script i don't unserstand why it can't decode the unicode entities when loaded from xml!!
thanks for help
--mm
Display A Base64 Encoded Image In Flash?
Hi all,
I am using a service on the net which provides dynamic map images. The idea is basically that you make a "GET" request to the mapping server providing them with co-ordinates of what area of the map would you like to view and the scale to display, and then they send you back XML which has details of the area inside it - and most importantly, a map image which has been dynamically generated for you (can be any format you choose including jpg, gif, png etc).
The image is inside the XML in Base64Binary encoded format (raw image data), for example (truncated this example a lot):
<Image>/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODw...etc</Image>
You are then supposed to base64 decode this, and that will give you your map image.
I have flash/actionscript code that will make a GET request to their server and retrieve the XML. It then goes through the XML and obtains the data between the <Image></Image> tags and puts it into a myImage variable.
My question is...what would I then need to do in flash/actionscript to get this raw image data into something displayed on the screen to the user as a proper image? Is there any way to create a new image on the fly using raw image data?
The only thing I can think of is that I would make the actionscript write the data out to the hard drive as "newfile.jpg" and then make it read the image back in and display it from there...but I am wondering if there is a better way since a lot of people will be using this and I would like to avoid creating tons of temporary image files on the hard drive.
Does anyone know how to solve this problem (or alternatively, can provide me code on how to write the image data out to a file on the hard drive, and then make flash display the newly created image file on the fly?)
Thank you in advance!
Display A Base64 Encoded Image In Flash?
Hi all,
I am using a service on the net which provides dynamic map images. The idea is basically that you make a "GET" request to the mapping server providing them with co-ordinates of what area of the map would you like to view and the scale to display, and then they send you back XML which has details of the area inside it - and most importantly, a map image which has been dynamically generated for you (can be any format you choose including jpg, gif, png etc).
The image is inside the XML in Base64Binary encoded format (raw image data), for example (truncated this example a lot):
<Image>/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODw...etc</Image>
You are then supposed to base64 decode this, and that will give you your map image.
I have flash/actionscript code that will make a GET request to their server and retrieve the XML. It then goes through the XML and obtains the data between the <Image></Image> tags and puts it into a myImage variable.
My question is...what would I then need to do in flash/actionscript to get this raw image data into something displayed on the screen to the user as a proper image? Is there any way to create a new image on the fly using raw image data?
The only thing I can think of is that I would make the actionscript write the data out to the hard drive as "newfile.jpg" and then make it read the image back in and display it from there...but I am wondering if there is a better way since a lot of people will be using this and I would like to avoid creating tons of temporary image files on the hard drive.
Does anyone know how to solve this problem (or alternatively, can provide me code on how to write the image data out to a file on the hard drive, and then make flash display the newly created image file on the fly?)
Thank you in advance!
Flash 8 Encoded Video To Play In A 7 Player
I've been to a site ( www.thebreakdown.tv ) where they are using Flash 8 skins for the player and the video looks so good I strongly believe it's encoded with Flash 8. However, this site works with computers that only have Flash 7 plugins installed.
Is there any way that this is possible?
Our target market will most likely want to access our site at work from corporations and the like. My collegue works at a place where it is impossible (without hacking in as an administrator) to update the flash plugin. But we don't want to affect the quality of the video either.
Any suggestions please let me know.
Thanks,
How To Open Dynamic, Encoded URL In Sized Window
Hi all,
This is my first post. I started a new job that has me doing a lot of Flash. I am using CS3. I must admit that I am not much of a programmer, but I have some exposure to Actionscript, Javascript, and little VB.
Using this forum and Google searches I have figured out how to pass an URL into my flash movie and open it up in a new window.
I have also figured out how to encode the URL and decode it in Flash and open that in a new window. I have also figured out how to open a new specific sized window using javascript within the getURL().
I just can't figure out how to put it all together:
- Pass encoded dynamic URL into flash
- Decode URL
- Add the decoded URL into the javascript open window
Here is the code I have messed with thusfar:
Decodes and locates URL passed to flash using Flashvars called "url":
Code:
on(release){
getURL(unescape(_root['url']), "_blank");
}
Creates sized Javascript popup, (code generated by, The Flash-DB):
Code:
on (release) {
getURL ("javascript:NewWindow=window.open('http://www.google.com','newWin','width=400,height=300,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No'); NewWindow.focus(); void(0);");
}
How can I change "http://www.google.com" in the Javascript popup to the unescaped "_root['url']"? I have tried a few different things but they arent working. I am either getting Actionscript errors when I test or Javascript errors when in the HTML page.
Thanks, in advance, for the help.
millis
Loading Url-encoded Special Symbols Into Flash
Hi, I've got a problem loading special symbols from a text file into an embedded flash textfield. I particularly want to load ” and “ but when i use the correct url encodes - %93 and %94 - it doesn't work. The text simply displays a gap. The & encode works ok so why shouldn't these others? Are only the basic special characters recognized or something?
Flash 8 Encoded Video Cross Hatch
I took a .mov video file, encoded it in the Flash 8 Video Encoder with these settings:
-Flash 8 High Quality (700kbps)
-Codec: On2 VP6
-Frame rate: Same as Source
-Key frame placement: Automatic
Then in a blank Flash 8 timeline, I imported the video, using a skinless video player component, resized the video player on the flash stage to 635 px wide (the width of the stage), maintaining the aspect ratio. (The original .mov video file is 1440x1080 px.)
But on both my computer and on the internet, the video plays well but when the speaker walks onto the stage and off the stage, there's a strange cross-hatch/block-like distortion on the borders of the speaker.
I have no idea what is causing this, and would appreciate any ideas as to what in my work flow is causing this. When I play the original .mov video in QT, the strange cross-hatch/block-like distortion does not appear.
|