Flash :: IDE - Gallery - When Click Next And Then Go Back The GetURL Function No Longer Works
Mar 5, 2010
I have a flash gallery in side my movie I have a next button and a prev button that works just fine. The issue I am having is when you click next and then go back the getURL function no longer works. It might be easier to view the issue. here is the link [URL]
I have a simple Flash button with the following script attached:
on (release) { getURL("http://URL/sample.pdf", "_new"); }
And I've also tried this:
[Code]...
my client (Who uses Firefox, on a PC) has to click on the button twice to view the PDF. The first time they click on the button, they have to close the blank window that pops up and then click on the Flash button again to view the PDF. It opens fine the second time. Is this just a PC problem? On my Mac (Safari) it works fine, but (Firefox) seems to want to save the document before I can view it.
I have 2 'getURL' functions on one keyframe, one a text (converted) button, the other an image. They are both next to one-another however only the text (converted) one works. The top bit of code is the text (converted) button:
bt_url.onRelease = function (){ getURL("[URL]","_blank");}; bt_ethicaltrading = function (){ getURL("[URL]","_blank"); };
The code for each is exactly the same, I have checked instance names, tried different url's and even created an invisible button for the image based one. I have also tried putting the buttons on the same layer.
I want to add two buttons in as2 for a photo gallery. The funtions must be: go to next picture or go back. I've created my buttons "imageBack" and "imageNext".I'm not familiar with scripting and I need to create the script that does this operation.The current status of the gallery is this script that enables to go on the next image when i click on the image but i have no options to go back
HTML Code: over.onPress = function() { if (pic<total-1) {
I created what I though was a pretty simple function for a mouse event listener. The funtion goes to a frame in the current movie clip as well as the parent movie clip. For some reason however the first time you click the button, it only effects the parent movie clip. When you click on it the second time, both movie clips are effected. Here is the script,
I just ran into something pretty interesting, if i attach a sprite and then call startDrag it works great, however.if i set the sprite to say a rotationY of 20 or any value the startDrag no longer works? any solutions to this?
I've been developing a fairly simple presentation in CS4, AS3, OSX, which runs as a standalone projector.Everything was working for a while, but now for no apparent reason, any file I publish as a projector starts the Flash Player app, but the projector does not appear or play.Older versions that I had already published will play correctly, but if I re-publish them they do not work any more.
I'm using a template to redo my site, since im too lazy to redesign my own. What I would like is when the full size image is loaded, there is the ability to click on the image and it will open up a URL in a seperate window. Just not having luck with it.Anyway, here is the script that I would like to have Flash load the URL added from the XML file.The MC that the photo loads into is "flashmo_photo_area"
ActionScript Code: // Copyright flashmo.com // Developed by Min Thu
Whenever I remove an event listener to a button then that button no longer works. Does it cause memory leaks to not remove these listeners.....come to think of it I have about 30 eventListeners that I cannot remove otherwise the application ceases to function correctly. Is my application a memory black hole? How should i proceed with garbage collection?
I have a button in a Flash project I've made. It's used to jump to another place on the root timeline, labelled "Why". It used to work perfectly.I have now placed the button inside a movie clip (it has to be in an animated sequence), but now it no longer works. It appears to work fine, the rollover state works and all. But when clicked it does nothing.The code I use to work the buttons goes on the main timeline, the code for this button is:mc_anim_backdrops_menu.btn_subsection1.onRelease = function() { gotoAndStop("Why"); _global.swfloaded = "";}Why does it no longer work? and what can I do to fix it?The question is posted here over at Experts Exchange URL...what we've tried there is tracing the problem. The code seems to be pointing to the right place, but none of the actual function works.. as you'll be able to see if you open up the attached file (and change it's extension from .txt to .fla to get it working)
Just thought I'd share that after the windows update I did this week, the browser cache blocking trick described in many places where you put ?r=<randomnumber> at the end of a URL no longer works. Not exactly sure what happened, but it now causes a URL not found error, at least for me when I'm loading local files off my disk.
I have a container movieclip called cont_mc then inside that I have a series of pins which are called pin1_mc then inside the pins I have a final movie clip the size of the pin head to act as the hit state.You can see what I talking about here: http:[url]... Before I had the pins in the container movie clip I was able to bump them to the top of the display list using this code in the on over function.this.setChildIndex(event.target.parent,this. numChildren-1); Now I have wrapped them in the container mc this code no longer works and I get an error, must be a child of the caller?How can I change this?
Changed AS3 defualt linkage to merged into code, and now my flash file will not load into firefox. It works fine in Chrome, but IE8 and firefox site at frame 1 of my movie, and no code is executed. Works perfectly in chrome. What do I do?the reason i changed to merged into code is because i made an imbeded preloader, and using preloader method as custom preloader loop and setting default linkage to Runtime Shared Library (RSL) borks the file.
I had FMS 3.5 developer package installed on my server installed about a month ago. I used to be able to go to the /webroot/ page to see the sample RTMP video play and it worked great. Today, I go to view that page and find that it no longer plays. I get "Connection Error. Please preee Play to try again."
Pressing the play button does nothing, so I click the RTMP thumbnail and it reloads ony to give me that same error again. I can click the HTTP thumbnail and see the video play just fine. But, I want RTMP and after over an hour on the phone with my managed hosting tech, we can't find anything wrong.
Here's the thing: I haven't done anything, I have not changed anything, I have not manipulated the server software whatsoever. It just stopped working and gives me "Connection Error."
I have flash files on a page which load and play a sound file, then advance via getURL javascript to the next page when the sound file has finished playing (i.e. the movie is non-interactive, maybe this is part of the problem).
On firefox - both PC and Mac - it works just fine. On Mac Safari and Chrome at least is doesn't seem to do anything, but the same javascript works fine when I issue it to the browser manually.
1. In the html I have used OBJECT with nested EMBED. With all the browsers that I tested, this worked fine, as did having only the EMBED code
2. I have used the allowScriptAccess parameter correctly in both cases (always), and the swf is hosted on the same subdomain as the survey engine too...
3. I'll check now if a simple alert() is displayed
I have a project (see attached) where I need to have the folders seem like they are floating in space, and I need the best way to make it so when you click on a back folder, it slides off the screen and come back in front of all the folders.
This works absolutely fine in Internet Explorer but in Chrome in the question mark is obviously made into "%3F". how I can stop this from happening and still keep it compatible with IE and other popular browsers?
I have read all threads and can not find a solution but i am not somebody with a lots of knowledge about actionscript so here is my problem i am using this script .
[code]....
the problem is that when i click on the first button loads ok but when click on second still showing the first movie clip in the back ,,,,, i have try everything without luck ,,,, i guess i need to keep reading but will like to find an answer to this situation ,
When I click simulate download my custom right click menu only appears once the movie has loaded. I have a layer called "actions" that contains this code:
Code: var myMenu:ContextMenu = new ContextMenu(); myMenu.hideBuiltInItems(); this.contextMenu = myMenu;
How can I make it so that my custom menu works while it's preloading?
Here's the scenario, I have 4 checkboxes I want to select all an so all check appears, but then I want to click back to previously click checkbox to deselect.
am i publishing the movie incorrectly? It works great when I preview the flash file (cntrl+enter), but after I publish it and insert it into the html (in dreamweaver), the file shows up and animates perfectly, but when clicked, no link... It doesn't do anything
I am trying to work out this issue in as3 and I'm sure its simple but can't seem to get my head around it. If anyone can see a sollution I would be very happy to hear from you. [URL]..If you click on the red button and click back and previous you will notice that the speed it goes back when you click previous is much slower the further through the slides you go?
[Code]...
This is a simplified version on the code, I'm sure its in this chunk somewhere.
I've messed around with XML+FLASH menu systems (downloaded from various Flash resource sites) on a novice level . As in, I know how to modify the XML file to have the content I want and where to rename the XML file in the FLA if need be. But I've never had to actually manually modify any functions within the FLA before. I'm really green when it comes down to diggin' within the Flash coding. Anywho, I came upon this really nice horizontal/glide menu from a way talented flash guru who was nice enough to share his source files with me...
I have a hitTest function that keeps checking if two objects contact each other. I'm currently using the following code:
function checkOverlap():Void { if(doorHit.hitTest(player)){[code]....
The message1 MC has a bunch of links that do stuff within the message1 MC, but because the interval keeps running it keeps resetting the message1 MC. Is there any way to pause the interval for as long as the player MC is in contact with the doorHit MC then unpause it when the two MCs are no longer touching? I've thought about making it so that message1 is already on the stage but outside the viewable area. The hitTest function would then move the message1 MC back and forth. But, I want to figure this out so I can also pause functions when the movie moves to a different frame then unpauses when it comes back to the frame with the hitTest. So, is there a way to make this work?