ActionScript 2.0 :: Incorporate A Variable Into A GetURL?
Aug 21, 2005
how to incorporate a variable into a getURL like so -
getURL ("javascript:NewWindow=window.open('I want to insert a variable HERE','','width=600,height=500,left=0,top=0,toolbar=No ,location=No,scrollbars=No,status=No,resizable=No, fullscreen=No'); NewWindow.focus(); void(0); return false;");
}
I want to be able to generate a new window that just loads into it an image that's in the sites directory. I know it can be done in javascript, cause this code works in a html page
<a href="" " onclick="window.open('#fullSiteTextImage#/#uploadTextImageDirectory#/large_#strTextImageImage#','', 'width=600,height=500,noscrollbars'); return false;>
The green bit is a CFM variable, which contains something like flash/flash_images/image.jpg
So how can I do this from flash? I KNOW it can be done. It must be possible, someone please help me. The thing that seems to stuff it up to me is the fact that I have to enclose the getURLs URL parameter in quotes, so flash doesnt evaluate the variable.
View 6 Replies
Similar Posts:
Apr 4, 2005
I am loading in some text which is stored in a text object with the var name of jslink
I also have one button which upon press I would like to get the url of "jslink"
View 2 Replies
Apr 4, 2005
I am loading in some text which is stored in a text object with the var name of jslink
I also have one button which upon press I would like to get the url of "jslink"
View 2 Replies
Jul 29, 2007
I've been playing around and still can't get this to work. My thumbnail gallery is loaded dynamically using xml and I have a link included with each thumbnail but can't seem to get it to work to load the link with each thumnail.In xml I have:
Code:
<pic>
<image>http://www.yoursite.com/images/image1.jpg</image>
[code].....
View 5 Replies
Aug 11, 2007
Why am I not able to pass variable to PHP using getURL?I have this actionscript ...
Code:
var bb_debugcount:String = "4";
getURL("myserverpage.php", "_self", "POST");
[code]....
View 1 Replies
Aug 24, 2007
i have a link setup in my xml attributes so that when i click a button it will use that link. ex. of xml
Code:
<song name ="Test Track 1" band ="Band1" file="test1.mp3" lyrics="http://www.theskooks.com" />
lyrics attribute is the link i'm trying to use for the button i have made an new rray and everything for it and then created on release functions to getURL from that attribute from the xml but my code doesnt work properly it doesnt get the url.
Code:
playlist = new XML();
playlist.ignoreWhite = true;
playlist.onLoad = function(success) {
[Code].....
View 6 Replies
Jan 13, 2011
how to add a variable to a getURL Javascript function. I have; ActionScript Code: getURL("javascript:JavascriptFunctionNAme(ASVariableName?);"); It works fine when I replace ASVariableName with "1" or some other plain text.
View 5 Replies
Jun 13, 2006
all I want to do is add a variable to a getURL line of code.EG:getURL("/index.asp", "_self");I need to add a variable (_root.myvariable) to the end of the link so that it goes to:index.asp?myvar=thevalueofmyvariable
View 3 Replies
Mar 19, 2007
I'm trying to make a small email capture form, but I'm having trouble getting Flash to pass the email address to the server. I've since given up trying to use getURL and I'm simply trying to trace the variable instead. The form consists of a text box w/ instance name "email_txt" and a button w/ instance name "btnSignUp." the actionscript is placed on the button.
Here's PHP Code:
on(release) {
trace("email_txt says: " + email_txt);
// getURL stuff here
}
My trace statement reads:
Code:
email_txt says: undefined
View 5 Replies
Sep 25, 2011
I was working on a simple game app using Xcode, but when I saw that image manipulation is much easier using the Flash SDK, I reprogrammed the game using Flash.
Unfortunately, I don't know how to incorporate iAds into my Flash iOS app. I tried searching on Google, but all I got were references to the ongoing battle between Apple and Adobe.
View 2 Replies
Feb 26, 2009
I'm trying to do a project using Lee's Math 2 tutorial. It's done in AS2, and I'm really trying to make it work in AS3. "vernbaby" kindly helped someone out in this post:URL...[code]But I can't seem to figure out how to incorporate sound, which is one of the features of Lee's tutorial (I think that the user that vernbaby helped out didn't need this information). I've got movie clips with sound attached (they're videos of people talking), and am unsure of what property, etc. I should be adding in to get the volume to increase with the proximity of the mouse to one of the movie clips.[code]
View 2 Replies
Jan 27, 2010
I did Lee's "Full Browser Flash" tutorial, and have got the full browser part to work, but now I need to add my actual site swf to this. In his tutorial, he simply uses a jpeg image, so I'm not necessarily sure how to load my actual site into the movie clip (cover).
View 3 Replies
May 29, 2009
i have a nice piece of code to set the fullscreen with dynamic text formatting (below)
what i am trying to do is add in a key event listener for the escape key, so that if the user hits esc instead of the button, it will also reset the button's 'normal view' settings
i have tried to do a test in a separate fla but even with just a trace on the function, when i hit esc all the swf does is stop (odd!)
Code:
//bu for fullscreen clicks
goFull_bu.addEventListener(MouseEvent.MOUSE_OVER, fullOver);
goFull_bu.addEventListener(MouseEvent.MOUSE_OUT, fullOut);
[Code]......
View 2 Replies
Nov 17, 2009
We have used Enliven before to create interactive 3d apps for the web. Enliven uses the Viewpoint Media Player to work. We would like to be able to get the same results using Flash.
Is there a 3rd Party software out there that allows you to create interactive 3d objects and animations in Flash?
Here's a sample of something our company created using Enliven. HHI 3d Viewer
View 3 Replies
Jan 10, 2011
I would like to have a map of the 50 U.S. states. I would like to click on a state and have a small pop-up window that displays the temperature of the capital of that state. After 5 seconds the pop-up closes. Behind the scenes I would also like the clicks being tracked by a database. I am digging around weather.com trying to figure out linking RSS feeds to Flash and I am thinking MySql to count the clicks. Does anyone have any tips or a quicker, easier way to set this up?
View 3 Replies
May 11, 2011
I'd like to incorporate some flash animation (a 2d character animation) into my objective c app.
I heard you can create and export a flash cs5 app into iphone. But I don't want to export an entire app. Just a small component...
for example, I want to get an animation of a 2d character waving that was made in flash and just incorporate that into my objective c app.
View 3 Replies
Oct 20, 2011
I want to incorporate a commandlist into robotlegs, the way i've done it now is to have a commandlist actor funnel out all the commands when not busy, but when the commands are executed robotlegs loses its' reference to the 'contextView'. Meaning i'm doing somehting wrong.
View 3 Replies
Jul 9, 2009
I'm trying to incorporate shadowbox into my flash. I'm very confused with the shadowbox flash instruction from their website, but this is what I have so far.I imported flash.net and created a button as follows
ActionScript Code:
mybtn.addEventListener(MouseEvent.CLICK, mybtnClick);
function mybtnClick(e:MouseEvent):void
{
[code]....
I placed the downloaded shadowbox folder onto my server along with the example.swf, but when I click the button on the site, nothing happens!
View 0 Replies
Jul 7, 2005
I am making the following call...
Code:
on (release) {
_root.imopen = "girl1";
_root.girls.imopen.gotoAndPlay("in");
}
And it's not working, it should, of course, be calling
_root.girls.girl1.gotoAndPlay("in");
How to incorporate the variable "imopen" into the path.
View 2 Replies
Mar 21, 2007
However, digging through the SWFAddress forums (as well as their brief documentation), I'm left with the idea that a site must have a very linear navigation in order to take advantage of SWFAddress's deep linking feature. Basically, the Nav must be timeline based, rather than AS based.The site I've designed uses a very common dynamically loaded swf architecture. Does this mean that any site using this architecture will not support deep linking at allSome background on what I'm trying to achieve: I'd like a unique URL that links directly into a section of the Flash site. The 'section' of the site is reached by simply having the right swfs loaded into their container clips.
View 3 Replies
Apr 28, 2010
I'm trying to incorporate a scoring code into the current game.
View 3 Replies
Sep 28, 2010
I have been working creating a fla file that loads several swfs and random background images. However, I have a custom form that I want to implement and I am having a problem figuring out how to do so. I want to have it work like an inner popup where it blurs and unblurs the background image (like the schedule from hbo.com).
Here's my setup:FLA file contains-UILoader for swf sectionUILoader for random background image
Lets say I load a section called home.swf into the section loader. Within the home.swf I have a button for someone to call up the form.swf. Is it possible for the form to blur the random background image when loaded then unblur it when it's done? If so how would you recommend I go about programming it. **I also have no idea how to unload it.
View 1 Replies
Feb 25, 2012
I cannot publish anymore my Web site. When I do "test animation" I got no error and my site is Cool! But When I try to publish is, it stop at the middle of the bar and say that the police should be incorporated with "Texte -> Incorporate the Police". I did it many times, saving the doc and tring to republish my doc with no result. Everytime I try to publish I got the same mistake! I cannot compile my server anymore and make any progress.
View 1 Replies
Mar 21, 2005
I have this script assigned to a button.
homebutton.onRelease = function() {
if (_root.section != "home.swf") {
_root.section = "home.swf";[code]....
I'd like the "home.swf" to be a random clip chosen out of three .swf's. Is there a way to expand this script to include a random choice script?
View 4 Replies
Nov 1, 2005
I am trying to incorporate the same effect as this. How is it done? Thank you~
View 3 Replies
Jul 23, 2009
is it possible to incorporate a checkbox system into a contents page, so that depending on whether or not the boxes are checked, movieclips will be shown?
usually it looks like this
contents page
section 1
section 2
section 3
section 4
with each section having a few mc's each the navigation works by just loading a new mc for each page.. eg: each time you press next it loads the next MC
however i want to add the checkbox to the contents so if section 3 is unticked, the mc's in it will cease to exist or be inaccessible or something, and will be skipped when navigating through the rest of the sections
View 1 Replies
Aug 29, 2011
I'm making my own dynamic 2D polygon pathfinder and have reached the point where i need to incorporate the actual pathfinding between the vertices. I figured Dijkstras algorithm would do the trick. If you know of better algorithms for mesh-pathfinding, please tell me. I know i could write it from scratch with reference to C, but I'm sure there are more efficient algorithms out there than the one I'd come up with.
View 8 Replies
Jan 8, 2004
"256 levels of recursion were exceeded in one action list." I've been trying to incorporate one of R.Penners equations into a prototype. it works, but appearantly not 100% scratch scratch
Here's the code. 'tester' is an MC instance
Math.easeInOutExpo = function (t, b, c, d) {
if (t==0) return b;
if (t==d) return b+c;
[Code]...
View 1 Replies
Mar 4, 2005
I am comletely new to AS. And i am now facing a problem of designing a preloader for one of our presentations. I went through the preloaders on this site, but am unable to incorporate them.
View 14 Replies
Mar 23, 2010
I am working on a training simulation and would like to incorperate a right mouse click function. I have been using the code below with no problems.
[Code]....
View 6 Replies