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
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.
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:
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.
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.
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
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.
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.
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]
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).
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);
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
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?
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.
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!
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.
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.
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.
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.
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?
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
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.
"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;
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.