Talking to a specific frame
Quick question,
I was wondering if this statement even works? I want to be
able to locate what frame my movie is stopped on, and depending on
its location run a certain function. My code is below let me know
if this is even possible. When I test the movie I do not get an
error, but nothing happens.
TIA
i think rotating_mc.currentFrame is what you want. You could
also use currentLabel if you labeled the frame.
I would also suggest creating 2 onClick event handlers to
simplify your conditional statement (you wouldn't have to check the
event.target prop) ;o)
Similar Messages
-
Going to a specific frame in a clip on another page
As may be self evident I am not an expert..... Is it possible
for a button (or series of buttons) on one page which, when
clicked, opens another html page with an embedded swf movie and
then goes to a specific frame in that movie ???
If that makes senseno - simply put, if the html page/SWF and frame isn't loaded
when button is pressed - there isn't a
way because it doesn't exist yet.
Chris Georgenes / mudbubble.com / keyframer.com / Adobe
Community Expert
LindnArden wrote:
> As may be self evident I am not an expert..... Is it
possible for a button (or
> series of buttons) on one page which, when clicked,
opens another html page
> with an embedded swf movie and then goes to a specific
frame in that movie ???
>
> If that makes sense
> -
Hello,
Form POST targeting to specific frame or dialog popped up via window.open() no longer works in IE11.
It worked fine in IE10 and all previous versions of IE.
Please see screenshot attached with simple test that reproduces this problem.
Direct Link to screenshot:
http://173.231.98.44/cgi/TestFolder/IE_11_widow_frame_targeting_BUG.jpg
Direct link to simple test page demonstrating this problem:
http://173.231.98.44/cgi/TestFolder/page2.asp
Note: IE11 doesn't report any errors, doesn't complain about anything, even when debugged via F12 developer tools. The only thing it complained initially was missing doc type declaration on top of page, but even after adding doc type definition, problem still
persists, makes no difference.
I tested this on fresh install of Windows 2012R2 while testing our web application with the new IE11.
I believe doing this on Windows 8.1 with IE11 will result in same bug/problem.
Our web application uses a technique whereby it launches a popup window via call to window.open(), passing blank URL and specifying a name for the new window. It then does a from post targeting the name of new dialog.
In IE11 this functionality has been broken and no longer works.
Problem is that IE11, instead of posting form to the newly created dialog, it launches a new instance of IE and then loads the requested form in this new instance of IE, while the dialog launched via window.open() remains on screen and is empty. If user repeats
launching same form post request (via button click for example), IE 11 keeps creating new empty dialogs and new IE instance for every form post executed. This totally breaks our application because we use many so called "wizards" that encapsulate
specific functionality in separate web page launched in a popup window.
Another related problem is that if a dialog is launched with window.open(), the java script code in the dialog can not target the parent frame that opened the dialog anymore. In our application, when a dialog is closed, it typically needs to trigger a refresh
of a specific frame within the parent window (again targeted by name) to reflect saved/updated info that user entered in the popup dialog. The result is that we can't refresh the parent frame after the pop up dialog closes. Instead, IE11 launches
a new instance of IE (not just a tab, but a whole new instance) and loads the parent frame in it.
The problem seems to be caused by broken frame name targeting mechanism in IE11.
Note that we force IE to compatibility mode 5, but even without specifying any compatibility, the problem remains.
Typical java script to reproduce this is:
<input type="button" onClick="Popup(this.form);" name="btn2" value="Popup Dialog">
function Popup(f){
window.open("","MyNewDialogName","width=200,height=150");
f.action = "page3.asp";
f.target = "MyNewDialogName";
f.submit();
Expected: IE11 should correctly post form to and load targeted page in the newly popped up dialog, without opening new IE instance and new tab. Repeatedly posting form to existing popup window should reuse that window, not keep on launching more popup windows
and then more IE instances.
Steps to reproduce the problem (include URL if applicable):
URL with sample page: http://173.231.98.44/cgi/TestFolder/page2.asp
1) Create page1.htm: <html><body>display "I'm in a popup window now ..."</body></html>
2) Create page2.htm with a button and onclick() event calling function to open dialog, and do form POST targeting new dialog calling page1.htm, like below.
<input type="button" onClick="Popup(this.form);" name="btn2" value="Popup Dialog"> function Popup(f){
window.open("","MyNewDialogName","width=200,height=150");
f.action = "page1.asp";
f.target = "MyNewDialogName";
f.submit();
3) Open IE11, navigate to page2.htm, click the "Popup Dialog" dialog button. IE 11 will popup the new dialog, but then it will also launch new instance of IE11 and display the page1.htm in it, instead of in the popup dialog.
Has anyone else encountered this problem?
Any insight or help is appreciated.
Regards
Peterthe default action of <input type="button" is submit. Note also that the default type of <button> elements is 'submit' also.
add a return false to the onclick inline event handler (which constructs the form submit attribues) to cancel the default form.submit behavior.
form elements have a target value with which you can specify the name window into which you want the form to open in.
<form action="process.aspx" target="popup">
you can use the window.open method with a query uri to achieve the same outcome.
window.open('process.aspx?s=search+term&foo=bar','popup',{features})
the outcomes of all scripted windows are affected by
your IE Popup blocker and tabbed browsing settings
which in turn is affected by your IE Security zone settings (for popup blocking handling)
and the settings of any third-party popup blocker you may have installed and enabled... it may not necessarily be visible on your browser toolbar.
The first step in troubleshooting web browser issues is to test in no-addons mode.
Use the Developer Tool to find out what documentMode the test page is opening in on your system. On Modal/Modeless popup windows use the f12 key to display the Developer tool positioned on the contentWindow.
Use File>Properties to find out what IE Security zone it maps to... there is a security setting to prevent navigation into zones of lower integrity.
Rob^_^ -
Can an swf movie be opened on a specific frame?
When I call up an Flash-generated swf movie in its own
browser window via a navigation bar button, it always open on its
first frame. Is there a way to tell the browser in conjunction with
the getURL command to open at a specific frame other than frame 1?
I can't find an Actionscript code sample that allows this while
using getURL. Or is there some other way -- e.g. appending the swf
file with frame number in its HTML page in some way, using
Javascript, FSCommand, etc?
JodyMaybe this will help
http://www.adobe.com/devnet/flash/articles/deep_linking.html -
How link from html page to a specific frame in flash cs5 as3
Hi!
I'm kinda new around here. I am interested in knowing how to link from a specific html page to a specific frame in flash cs5 as3.
I have a website that I originally began to design in flash but later started developing new pages for it in html. The flash part of it has several pages on different frames and I have created links from the flash part to the other html pages, but, I can only link the html pages back to the main flash home page, and not the other pages in the flash part of the website.
I have read that in cs3 it was possible using the flashvars skip variable, but I don't know how to do it. I have not yet seen any working examples and I could not find any instructions / tutorials online for cs5.
Can someone help here?add a query string, to the swf's embedding html, with variable/value indicating the frame you want to display in your swf. add a javascript function to return the query string (or entire url), call the javascript function from flash using the externalinterface class. and finally add code to your swf to parse the returned url or query string, parse it and then direct your timeline to the appropriate frame.
-
Linking to a specific frame from JSP page
I am trying to link to site that has frames. I want to load a specific jsp in frame 3. Does anyone know how to pass the target and source values? I have been looking for tutorials unsuccessfully.
You can not point to a specific frame ina document from an external document.Your best bet might be to pass the parameters using URL and on the recieving end write some javascript to parse the url adn if it has a parameter then process that else just load standard document.
Khalid -
Jumping to a specific frame in another movie
I'm wondering how to jump to a specific frame in an external
movie. I'm not using the loadmovie command so I don't think the
_level command will work. I just have two swf movies playing on the
same page. I need to have a button in Movie A when released will go
to a certain frame in Movie B. Thanks!well this certainly should work if the code is on the main
timeline, and there is nothing else. However when you say
'scrubber' do you mean that your 'testing' the movie by pressing
'enter' while in the IDE, so that you're actually 'seeing' the
playhead move? If this is the case, yes, no actions will execute.
To test the swf file, use Ctrl+Enter (or Command+Enter on Mac) to
run an actual 'test' -
Button link to a specific frame in time line
Ok I have created my buttons and the content for the specific
frames. I have named the button and given it an instance name. I
have also given my specific frame a name and set that label type to
Name.
Whats the code for turning getting my button to link to a
specific frame?
I've also done the stop() code in each frame as I want it to
stop at each frame until the button is clicked again.
I have more than one button and each will link to a different
frame.
Thanks.I've duplicated an FLA with exactly the assets you have in
the same places, with the code on the main timeline. And mine
didn't work, just the same problem as you had. The solution I
proposed above works, but it is not the only way (See #2 below).
On Frame 1, select the UIScrollbar. if you look in the
Parameters tab of your UIScrollbar component, you'll notice that
the
scrolltargetName refers to
Instance_0. This is a default instance name assigned by the
Flash compiler, because you did not give your dynamic textfield an
instance, and your UIscollbar is referencing that. Now go to Frame
4. You will find that your dynamic textfield has the same instance
name, and the UIScrollbar is referencing the same instance. Problem
is, you have more than one textfield on more than one frame using
and referencing the same instance name, your UIScrollbars will get
confused as to which textfield is actually "Instance_0". The moment
you click to another frame, you've confused the UIScrollbar(s), so
they never work again.
The solution is simple.
First, put a stop() action on the first frame, if you have
not already done so, so your timeline stays put until you click on
a button.
Then you can solve the problem in one of two ways:
Give your textfields different instance names, and make sure
the
scrolltargetName property of each UIScrollbar refers to its
respective textfield.
Or set the text dynamically, which after all is what a dynamic
textfield is for. Have only one textfield/UIscrollbar combo, on the
first frame, and place code on a keyframe for each section which
changes the
text or
htmlText property of the textfield.
That should work. It did on mine. -
Linking to a specific frame from html?
Hello all:
Does anyone know if it is possible to have an html page that
links to a swf file, but ALSO goes to a specific frame or label
within that file? I'm trying to avoid having to start the Flash
file from the very beginning, but I can't say that I've ever seen
this done.
Thanks,
WayneThe simplest way:
in the HTML you expand the two occurences of "movie.swf" (in
the object and embed tag) to "movie.swf?jump=50", where "jump" is
the variable name and "50" is the frame somewhere in the middle of
your movie.swf that you want to start with.
In the first frame of movie.swf you have actionscript
if(this._framesloaded<jump) {
this.gotoAndPlay(1)}
else {
this.gotoAndPlay(jump)}
Of course, this doesn't check for error conditions and has
other weaknesses, but I hope you get the point.
Good luck
Wolf -
GotoAndPlay specific frame in external swf from main swf
I have a main swf that loads 2 external swfs.
I click on button to see content of external swf #1 and see stuff. I do something that causes external swf to show other stuff (i.e. not at beginning state)
In the main swf I click on button to see content of external swf #2. External swf #1 content is made invisible and I see content of external swf stuff.
NOW, if I click on button to take me back to see external swf #1, I see it's content in current state. I want to force it to start over again at frame #1 which will reset content.
However, no matter what I try, I can't seem to control which frame to go to in external swf using gotoAndplay.
Here is code in frame #1 of main swf to load external swfs:
//load academic movie
var swfLoader1:Loader = new Loader();
container1.addChild(swfLoader1);
var url1:URLRequest = new URLRequest("academic.swf");
swfLoader1.load(url1);
//load wisdom movie
var swfLoader3:Loader = new Loader();
container3.addChild(swfLoader3);
var url3:URLRequest = new URLRequest("wisdom.swf");
swfLoader3.load(url3);
Here is code in frame 2 of main swf that checks button to see where to go in external swf:
//academic button clicked
function academicClick(event:MouseEvent){
container3.alpha = 0;
container3.visible = false;
container1.visible = true;
container1.gotoAndPlay(1); //this is where I am trying to force it to start at frame 1
container1.alpha = 1;
I don't want to reload the external movie to force it to start over.
Any help would be much appreciated.You can easily control this by making the external swf to load with your movieclip, The below is the code snippet that clear on accessing the specific frame on external swf.
//Loading clips content
var ldr:Loader;
var mcExt:MovieClip;
//Loading
loadswf("external.swf");
function loadswf(tmp:String):void{
unloadSwf();
ldr= new Loader();
ldr.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, progressListener);
ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, swfLoaded);
ldr.load(new URLRequest(tmp));
function progressListener (e:ProgressEvent):void{
ploader.visible=true;
function swfLoaded(e:Event):void {
mcExt = e.target.content as MovieClip;
ldr.contentLoaderInfo.removeEventListener(Event.COMPLETE, swfLoaded);
mcExt.addEventListener(Event.ENTER_FRAME,onEnterfn);
ploader.visible=false;
addChild(mcExt);
//UnLoading
function unloadSwf():void{
if (ldr!=null){
ldr.unloadAndStop();
removeChild(mcExt);
mcExt=null;
//Intervals (The part you work on the specific frame within the external swf
function onEnterfn(e:Event):void{
var num:int=mcExt.currentFrame;
if (num==1) mcExt.play();
if (num==9) {
mcExt.skipmc.addEventListener(MouseEvent.CLICK,skipfn);
function skipfn(e:MouseEvent):void{
mcExt.stop();
mcExt.removeEventListener(Event.ENTER_FRAME,onEnterfn);
gotoAndStop("help");
if (num==mcExt.totalFrames){
mcExt.removeEventListener(Event.ENTER_FRAME,onEnterfn);
gotoAndStop("help");
hope it solve -
Print Specific Frames and Dynamic XML content
Hello, I am trying to print specific frames of my Flash movie
with the dynamic text loaded from an XML file. The code below only
prints the current frame I am on and does not print the XML text.
The dataOK that is commented out is a function I have before that
loads the XML content. The XML content is loaded to dynamic text
boxes. Any help on this would be greatly appreciated.I am still having difficulty loading the XML data and the
frameNum parameter does not seem to work. Argghhhh....
function printTut(myevent:MouseEvent):void{
var myPrintJob:PrintJob = new PrintJob();
var mySprite:Sprite = new Sprite();
var printArea:Rectangle = null;
var options:PrintJobOptions = null;
var frameNum:int = 2;
mySprite.addChild(stage);
mySprite.rotation=90;
mySprite.scaleY=.80;
mySprite.scaleX=.80;
myPrintJob.start();
myPrintJob.addPage(mySprite,printArea,options,frameNum);
myPrintJob.send();
print_btn.addEventListener(MouseEvent.CLICK,printTut); -
Motion 3 Crashing at specific frame - only in Best Quality setting!
Hello everyone,
I've got several Motion projects that show the same problem:
The project behaves and exports fine as long as I don't set the Render Quality to "Best". When I set the Quality to "Best", Motion will always crash at a specific frame (not the same frame in different projects, but always the same frame for a specific project). E.g. Motion exports the clip fine (Image Sequence or Quicktime movie) up to the problematic frame. When it reaches that frame it simply crashes. If I check that frame in Motion, Motion crashes instantly if I have the Render Quality set to Best. If I set it to anything else, it shows the frame without problems.
This behaviour is the same on my MacBookPro 2 GHz, 2 GB Ram as on a G5 Dual 2 GHz, 3 GB Ram.
I hope anyone has an idea how to fix this, I need to render those clips!
Thanks in advance!
BjoernNo one at all?
That's too bad. I can't imagine that I'm the only one having this problem.
I sure hope that Apple releases an update to Motion that fixes the numerous bugs. -
Using Flach CS4 and action script 2.0 how do I advance to a specific frame of the main timeline when a movie clip instance come to the end of its timeline?
code on the last frame of your movieclip instance:
_root.gotoAndStop('whatever_frame'); // will work unless this swf is loaded into another swf. in that situation, you should use a relative path to the main timeline (eg, _parent or _parent._parent etc). -
Goto a specific frame on a scene
Hello everybody
I was wondering: I know that we can access a frame by its
name. For example: gotoAndPlay("Transition"). Can I have, in two
different scenes, two Transition frames and access them by
something like <gotoAndPlay("Scene1.Transition")> or an
another similar command or do they need to have a unique name?
Thanks
RickYes you can move between scenes to specific frames but the
code for it depends on which version of actionscript you are using.
If you look at the gotoAndPlay Flash documentation for the version
of AS you are using, it will define what you need to use where, and
will likely provide examples. -
Can you have a button play a specific frame in a different Edge Animate page?
I'd like to create a movie that can open other HTML files and go to a specific frame within those other pages. Is there any way to handle that inside of Edge Animate?
Thanks for the suggestion, but I'm looking for something a little different.
I'm looking to figure out a way to pass along some information from one movie to another.
For example. If I have a page (Movie1.html) that has Button A, Button B and Button C. Is there a way for me to open a different page (Movie2.html) AND point to a different frame based on what they clicked in Movie1.html?
So if they click Button A, it will open Movie2.html and go to frame label "IntroSection"
But if they click Button B, it will still open up Movie2.html, but this time it would jump to the label "AboutUs"
And if they click Button C, it will open up Movie2.html, it would jump to the label "End"
The idea is to have a few different files, but be able to point to specific frames or labels within an external movie.
Thanks!
Jeff
Maybe you are looking for
-
Photoshop CS5 not working with my epson 1640xl scanner on Mac OS Lion
Just loaded CS5 on Mac 10.7. I downloaded and installed the latest OSX Epson 1640xl scanner software, and also copied the Twain plugin from the Adobe Goodies CD to the Photoshop > Plugins > Import/Export folder. Rebooted the computer, power off an
-
Sequence w 23.976 fps exporting as h.264 QT with 22.69fps
I exported an h.264 QuickTime from Premiere Pro CC (Mac). The project/sequence was set to 23.976 fps. The export settings for the QuickTime was also set to 23.976 fps. However, the QuickTime that was created had a frame rate of 22.69fps. I have ne
-
How to access application server path in sap
Hi All, Could you please help me how we can navigate application serverpath; for example in my job the file is placing at this directory /usr/sap/interfaces/WAP/100/MM/OUT/SOFTCONQAG/ARCHIVE in application server, How can I go to that path to check
-
My wife's InDesign will not open-how can I fix?
My wife and I are using InDesign. For the first time-she could not open InDesign. She's getting a configuration error message 11. How can I correct? Bob C.
-
Querying CGPL_HIERARCHY using RFC_READ_TABLE
Hi, Does anyone has any idea how this could be done? It seems CGPL_HIERARCHY.GUID is a RAW data type and when using RFC_READ_TABLE and providing a where clause - GUID EQ '5D29E4460A487750' (as an example) doesn't yield any result , when the fact is t