Load another Frame?
Hi,
when user clicked on a button, I want to load another frame(or probably i can say instantiate new browser).
This frame could load another .jsp page.
So, if following code is located in main page, how can i load (let say info.jsp page) when this button clicked.
<input name=info" type="button" value="More info" onclick="">
first you ahve to make a function i javascript that opnes a new window.
function newWindow()
window.open("URL","Windowname","propeties,properies,....")
//then the action of the formmust specify where to load that jsp file
document.formName.action="..folder/index.jsp"
//then specify the target
docuemtn.formNmae.target="Windowname"
document.formName.submit()
<input name=info" type="button" value="More info" onclick="newWindow">
something like that, propably you will have to modify it alittle, this works in netscape as it does also in explorer
Similar Messages
-
Loading second frame with sendRedirect
hey, how do you load another frame from a java servlet, without requiring the user to clink on a printed html link?
i've tried something like response.setHeader("Window-target","_top");
then the redirect statement, and it didnt' quite work...hey, how do you load another frame from a java
servlet, without requiring the user to clink on a
printed html link?
i've tried something like
response.setHeader("Window-target","_top");
then the redirect statement, and it didnt' quite
work...Hi,
you can always generate javascript code in your servlet to redirect.
http://galileo.spaceports.com/~ibidris/ -
How to load another page in a frame?
Hi!
I have a frame with a page where is a button. I need to load another page in the frame when I click the button. How can I make it on the ADF? I work on JDeveloper 10.1.3.4.I found example. Thank you for help. Refresh works very well! This code:
protected void refreshPage(String refreshpage) {
FacesContext fc = FacesContext.getCurrentInstance();
ViewHandler ViewH = fc.getApplication().getViewHandler();
UIViewRoot UIV = ViewH.createView(fc, refreshpage);
UIV.setViewId(refreshpage);
fc.setViewRoot(UIV);
refreshPage("/transfers/ClaimForm.jspx"); -
How can i use this sript and loade another movie?
Hi there, i used the following script to load a movie from the server;
var request:URLRequest = new URLRequest("url string");
var loader:Loader = new Loader()
loader.load(request);
addChild(loader);
How can i use this sript and loade another movie? Can someone help me please?
[edited by moderator]Sir, I changed it from:
var request:URLRequest = new URLRequest("http://agusandelsur.gov.ph/downloads/pdrrmo/agusan_del_sur/StaJosefa/Movies/Dir.swf");
var loader:Loader = new Loader()
loader.load(request);
addChild(loader);
to
var request:URLRequest = new URLRequest("http://agusandelsur.gov.ph/downloads/pdrrmo/agusan_del_sur/StaJosefa/Movies/Warning.swf");
var loader:Loader = new Loader()
loader.load(request);
addChild(loader);
When i expord the movie i get the following error.....
Scene 1, Layer 'Layer 3', Frame 1, Line 6 1151: A conflict exists with definition request in namespace internal. -
Applet navigator to open a page in another frame.
Hello to the Java gurus out there,
I was wondering if someone could give me a pointer as to how I can get an applet navigator to open a page in another frame of the web browser?
Say for example, I have two frames in the main HTML page where one frame contains an Applet navigator, and the other page can be loaded based on where the user clicks on the applet navigator.
Capturing the mouse click event is all good, but then how do I load a page in another frame ??
Any help would be much appreciated.
J. ParkIn your applet class do the following
getAppletContext().showDocument(new URL("somepage"), "Target");
See the AppletContext class in http://java.sun.com/j2se/1.3/docs/api/index.html for more information. -
Hi guys,
I have few questions and hope any of you flash master can
help me on it. I have a 3D carousel spinning gallery loaded with
XML in my content frame (this frame contains different content
pages such as about us, service n etc).
I would like to know how can I make it like when I click on
the carousel thumbnail, it'll bring me to the particular gallery
page for that category. I have the gallery page coded in the
content frame together. Now when I click on the carousel thumbnail,
it'll load another page with the getURL command. (the URL is read
from the XML file)
Is there any way I can make it to load the gallery page
inside my swf instead of loading another html page?
p/s: Hope you can understand what I'm talking about, I know
my description is not clear enough 'coz I don't really know how to
explain it.. =$Hi Landice,
Welcome to the forums!
One problem that you might face is that Flash can load and
render external SWFs but not (complete) HTML pages.
If the contents of the HTML page is simply an SWF, then you
can modify your code to allow Flash to load the SWF instead of
opening a new window. That is, change the XML code to reflect the
location of the SWF, not the HTML file. Then, in Flash, make use of
the loadMovieNum, loadClip, or loadMovie methods to either load the
SWF to a _level or a MovieClip.
Otherwise, you may have to rethink your set-up.
I imagine that this gallery page is mainly comprised of
images? If so, it might be better to represent the gallery page as
another XML page with the URLs of images specific to that gallery.
And then just as your 3D carousel loads in XML, you could load in
the XML for a particular gallery and then load in each image using
the loadMovie or loadClip methods. -
Handling & loading of frames in a frameset
Hi,
We have a frameset page, consisting of a border, left-hand menu,
and body frame.
The application uses a global class, UBSRaiseMessage, which should
load a message page into the body frame using the following code:
public static void loadViewBeanInFrmBody(Class clazz, RequestContext
requestContext)
PeoplePlusViewBean frame = (PeoplePlusViewBean)
requestContext.getViewBeanManager().getViewBean
(PeoplePlusViewBean.class);
frame.getFrBody().setValue(getURLforViewBean(clazz,
requestContext));
frame.forwardTo(requestContext);
The problem is that, if the message is raised from a view bean of
a page in the FrBody frame, then the entire frameset is reloaded into
this frame.
However, if the message is raised from another frame, the message
page is (correctly) loaded into the body frame alone.
What in JATO defines whether the whole frameset, or just one
frame, is loaded?
Thanks in advance,
Christian Ashby
Spiralinks, Inc.Hi Christian--
I believe the behavior you are seeing is consistent with your code--it
appears you are forwarding to the frameset in your method, not the page you
wish to display in the body frame. Instead, I think you should be
forwarding to the ViewBean "clazz" parameter:
public static void loadViewBeanInFrmBody(Class clazz, RequestContext
requestContext)
ViewBean frame = (ViewBean)
requestContext.getViewBeanManager().getViewBean(clazz);
frame.forwardTo(requestContext);
You should combine this code with a target on your form or href of "FrBody".
What in JATO defines whether the whole frameset, or just one
frame, is loaded?Nothing in JATO defines this--it is entirely a browser-side determination.
If you specify a target of "_top" for your form or href, whatever the server
returns will be rendered in place of the entire frameset. If you specify a
target that corresponds to your body frame (say "FrBody"), then whatever the
server returns will be rendered in the body frame.
Todd -
How can redirect the errorPage to another frame?
Please advise, I have been sticking to this problem for a whole day and still can't solve it. :-(
What I basically want to do is to redirect the errorPage to another frame, say, the main frame.
My application has 2 frames, the main frame is a search page, the left frame is a tree which is written by JavaScript and it is a hidden frame. The form code of the search page in the main frame is like that:
<form name="form1" method="post" action="FindAgent.jsp" target="leftFrame">
when the submit button is clicked, it will invoke the FindAgent.jsp which will update the tree and also has codes to catch any exception if there is. The problem is that when exceptions occur, the errorPage will be shown in the leftFrame which is hidden frame so it doesn't show anything. So how can I make the errorPage displayed in the _TOP window?
I would not mind to have the errorPage displayed in the mainFrame by changing the target to "_SELF" or doesn't specify the target attribute at all in the search page. But anyother problem arose by doing that is that the search page will go away and try to display the FindAgent.jsp which doesn't have any appearance code after submitting. So how can I keep the current search page still but the submit() has been called actually, i.e. submit the form without redirecting the current search page.
Any suggestions? Thanks in advance!Here's an idea. Have your error page (in the hidden frame), look something like this:
<%
String strErrorMessage = ... // get your error message text here
%>
<html>
<head>
<script language="JavaScript">
parent.mainframe.location = "ErrorPage.jsp";
</script>
</head>
</html>So the error page loads in the hidden frame, which then extracts the error information from the exception object. Then, using javascript, the hidden frame tells the main frame (using window references) to reload to the desired page. The only issue is how to get the error message text to the new page since your exception object is lost. You can store it as a session variable, and then pass the id of the message in the url to the new page, or you could just pass the text in the url itself.
I hope that gives you some ideas!
Michael -
Loading another page into frameset
Hi,
I have divided my BSP page into 3 frames. On click of a button I want to load another page into one of the frame. Could you please let me know how to do it.
Regards,
Ravi GHi Friend,
I have designed in a way similar to yours.
In one frame, I have tree in which all its leaves have a link.
Clicking a link on one frame will display the corresponding page on the other frame.
All the pages displaying in the frame were designed separately.
tree.do refers to the name of the controller in which this content get displayed in the left and default.do refers to the name of the controller whose content get displayed in the right in default.
Clicking the link on the left specified in the tree will replace the default.do content with a table named deptable.do.
In the below code specified zpgms1 refers to the application name and pagedivider.do refers to the name of the controller in which the page was divided into frames.
Tree.do page holds the codings in which tree was designed and the link attribute holds default.do page initially and clicking the link would activate the deptable page which is assigned to a variable.
In the below code I'm replacing the content of default.do by concatenating the default.do code with deptable.do
<htmlb:form action = "/sap/bc/bsp/sap/zpgms1/pagedivider.do"
target = "_top"
method = "post" >
<htmlb:treeNode id = "subnode2"
link = "default.do?&tag=deptable"
target = "right"
image = "@03@"
text = "Department MasterTable"/>
</htmlb:treeNode>
In the defaullt.htm page specify the codings below.
<%
data: tag type string,
control type string.
tag = request->get_form_field( 'tag' ).
if tag is not initial.
concatenate tag '.do' (deptable name gets concatenated here and assigned to the src )
into control.
endif.
%>
<%
if tag is not initial.
%>
<htmlb:content design = "design2003" controlRendering="sap" rtlAutoSwitch="true">
<htmlb:document>
<htmlb:documentHead>
<frameset rows="75%" MARGINWIDTH="0" frameborder="0" framespacing="5" MARGINHEIGHT="0">
<frame style="border-bottom-style:solid;border-color:#A5B1BF;border-width:1px"
scrolling = "auto" src="<%=control%>" name="control" target= "_top">
</frameset>
With Regards,
SHARMILA BRINDHA.M -
I'm making a handdrawn animation in the timeline using video layers, so each video layer contains the frames for the animation. The method works great..except for this -
If lasso select a section of one frame and try to paste into another frame, it duplicates the the whole frame and pastes it with an arbitrary long frame duration for some reason (not the same duration as the frame its copied from)....not at all what I'm trying to do. Any work around? I've tried all the variations of 'paste special' to no avail.
Thanks.Images and other object can either be floating or be inline. Yours are floating and will not move with the text. Inline object will move with the text but can't be outside the text layer. It doesn't help if you have created section in the document. Floating images doesn't care. Nor will it help if you create several documents that you want to merge later. Doesn't make any difference.
My suggestion is that until your text is finished you have the images inline. Then as a last editing you can start make the images floating and move them a little. -
How to put a string from one Frame to another Frame?
Dear all,
How can I put a String from one Frame to another Frame?
When the application started, the Frame 'WindowX' will be displayed. After you press the 'openButton', a whole new Frame (inputFrame) will be shown. In this Frame )(inputFrame) you can write a String in a TextField. After pressing the okButton, this String will be sent to the first Frame 'WindowX'.
But does anyone know how to realize the sending part?
I've tested this code on Win98 SE and JDK1.2.2.
Hope someone can help me. Thanks in advance.
import java.awt.*;
import java.awt.event.*;
public class WindowX extends Frame implements ActionListener, WindowListener
private Button openButton;
private TextField resultField;
public static void main(String [] args)
WindowX wx = new WindowX();
wx.setSize(300,100);
wx.setVisible(true);
public WindowX()
setLayout(new FlowLayout());
openButton=new Button("open");
add(openButton);
openButton.addActionListener(this);
resultField=new TextField(10);
add(resultField);
resultField.addActionListener(this);
addWindowListener(this);
public void actionPerformed(ActionEvent evt)
if (evt.getSource()==openButton)
inputFrame ip=new inputFrame();
ip.setSize(200,80);
ip.show();
public void place(String theString) //this doesn't work
resultField.setText(theString);
public void windowClosing(WindowEvent event)
System.exit(0);
public void windowIconi......
class inputFrame extends Frame implements ActionListener,WindowListener
String theString = "";
Button okButton;
TextField inputField;
WindowX myWX=new WindowX(); //??
public inputFrame()
setLayout(new FlowLayout());
inputField=new TextField(10);
add(inputField);
inputField.addActionListener(this);
okButton=new Button("OK");
add(okButton);
okButton.addActionListener(this);
addWindowListener(this);
public static void main(String[] args)
Frame f = new Frame();
f.show();
public void actionPerformed(ActionEvent evt)
if (evt.getSource()==okButton)
theString=inputField.getText();
myWX.place(theString); //??
dispose();
public void windowClosing(WindowEvent e) {
dispose();
public void windowIconi......
}Thanks for your reply!
But I got an other problem:
I can't refer to the object (wx) made from the main Frame 'WindowX', because it's initialized in 'public static void main(String [] args)'...
Hope you can help me again... Thanks!
import java.awt.*;
import java.awt.event.*;
public class WindowX extends Frame implements ActionListener, WindowListener
private Button openButton;
private TextField resultField;
public static void main(String [] args)
WindowX wx = new WindowX(); //!!
wx.setSize(300,100);
wx.setVisible(true);
public WindowX()
setLayout(new FlowLayout());
openButton=new Button("open");
add(openButton);
openButton.addActionListener(this);
resultField=new TextField(10);
add(resultField);
resultField.addActionListener(this);
addWindowListener(this);
public void actionPerformed(ActionEvent evt)
if (evt.getSource()==openButton)
inputFrame ip=new inputFrame(wx);
ip.setSize(200,80);
ip.show();
public void place(String theString)
resultField.setText(theString);
public void windowClosing(WindowEvent event)
System.exit(0);
public void windowIconi....
class inputFrame extends Frame implements ActionListener,WindowListener
String theString = "";
Button okButton;
TextField inputField;
WindowX parent;
public inputFrame(WindowX parent)
setLayout(new FlowLayout());
this.parent=parent;
inputField=new TextField(10);
add(inputField);
inputField.addActionListener(this);
okButton=new Button("OK");
add(okButton);
okButton.addActionListener(this);
addWindowListener(this);
public static void main(String[] args)
Frame f = new Frame();
f.show();
public void actionPerformed(ActionEvent evt)
if (evt.getSource()==okButton)
theString=inputField.getText();
parent.place(theString);
dispose();
public void windowClosing(WindowEvent e) {
dispose();
public void windowIconi..........
} -
How can I make media in swc load on frame 4?
I created a project that is rather large... it has 20 or sound sound files, 10 or so fonts, and close to 400 png and jpeg files.
Now, all these assets were loaded in the fla library and over time, compile started getting worse and worse to the point it was almost impossible to debug without a 5 to 10 minute wait per build.
After many many hours and research I learend how to embed my media into an swc. That, and turning off "warning mode" the compile time is now like, 10 secs down from 10 minutes - awesome.
However, now my preloader is not running because it has to wait for almost the full app to download and run before it starts playing.
I would like to know how to delay the loading of the swc media so that the projector will actually start playing before it's fully downloaded.
Here is what I did.
1. Create a new fla, and put a bunch of graphics and media into the library. Each media element has "export for action script" checked, "Export on frame 1", a unquie class name and a base class defined.
for example, let's say I have a png called "MyImage.png" in my library, and I give it a class name of classMyImage.
2. Save the fla as "MyProject_library"
3. In the publish settings, checked export swc. and publish it.
now I have an swc in my project folder.
4. Open my project, called "MyProject.fla" and open the action script settings.
5. Set "Export classes in frame" to 4.
6. Uncheck "Warnings Mode"
7. In the "Library tab" I click the "browse to swc" button and select "MyProject_library.swc"
8. Go to frame 1 of my project and create a blank frame.
9. Go to frame 2 of my project, add a key frame and create my preloader code.
addEventListener(Event.ENTER_FRAME, Preloader_Progress);
stop();
function Preloader_Progress(e:Event):void {
var Loaded:int = this.root.loaderInfo.bytesLoaded;
var Total:int = this.root.loaderInfo.bytesTotal;
var p:Number = Loaded / Total;
var perc:Number = Math.ceil(p * 100);
txtPre.text = perc.toString() + "%"; // this is a text field on the stage on frame 2.
if (Loaded >= Total) {
gotoAndPlay(4);
8. Go to frame 4 of my project, and for EVERY media element in my library, I add them to a dictionary so they get instantisated.
import flash.utils.Dictionary;
var swc = new Dictionary();
swc["classMyImage"] = new classMyImage();
I found that I HAVE to do this or assets will not load properly when I run the project.
9. Build the rest of the project so I can get paid.
10. Publish the swf and upload it to my website.
Now, I don't get any errors, and after MUCH trial and error I have finally got things working, however, before I migrated all my media to the swc, the text field (with other graphics and progress bars and pretty things) would become visible at about 5% and then fill up and when at 100% would proceed to frame 4 and load all my media assets and continue happily.
After the migrating to the swc, I look at a blank background for a while and then the app appears with the text at 99%, this tells me that all my media is loading on frame 1, thus not allowing the app to start playing until it's downloaded.
I have tried exporting my swc with the "Export classes in frame" set to frame 4, but it made no difference.
Anyone have any thoughts?I'm not sure it is possible since the time definition lies in the server/database and not reflect the time zone of the user.
Any way I think it's the correct way to do since if users cross world would like to exchange data among them they will have same referenced time. -
ADF : How to pass a variable from one frame to another frame ?
Hi,
I have an html page divided into 3 frames, all inside a frameset. Each frame are linked to a specific .jsf page (src attribute). When I list a list thanks to a ADF datatable in ONE frame, each row has a "show more" button. When I click this button I succeeded to print row detail inside the same frame thanks to the processScope ADF's native variable. The problem is that I want to display the row detail in another frame, clicking from this current frame. So for this I need to reload the other frame which display the content of the processScope variable.
For this I use the javascript code :
=> parent.frames['bottomRight'].location.reload()
Just before refreshing, I put the variable in the processScope of course like it appears in the backing bean :
FacesContext context = FacesContext.getCurrentInstance();
CLPRMBuilding building = (CLPRMBuilding)
context.getApplication().getVariableResolver().resolveVariable(context, "building");
if (building == null)
return "error";
AdfFacesContext afContext = AdfFacesContext.getCurrentInstance();
afContext.getProcessScope().put("buildingDetail", building);
Next, when the user click on the button "show more" a binding CoreCommandButton component is done. And the accessor's code is executed :
public void setShowMoreCommandButton(CoreCommandButton showMoreCommandButton) {
this.showMoreCommandButton = showMoreCommandButton;
showMoreCommandButton.setOnclick("parent.frames['bottomRight'].location.reload()");
And so the other frame is reloaded ! But the "buildingDetail" variable seems not to be present in the processScope because in the jsf page displayed by the other frame no content is printed, like if the variable were not initialized. How to do then ? How to pass the buildingDetail variable to the other frame which I need to reload to refresh it's content ?elaine_g wrote:
I am wondering why does (r.a) give an error outside the method? What's the reason it only works when used inside the (b/r.a) maths function? This is illegal syntax:
class B {
int b;
A r = new A();
r.a; //syntax error
}Why? Class definition restricts what you can define within a class to a few things:
class X {
Y y = new Y(); //defining a field -- okay
public X() { //defining a constructor -- okay
void f() { //defining a method -- okay
}... and a few other things, but you can't just write "r.a" there. It also makes no sense -- that expression by itself just accesses a field and does nothing with it -- why bother?
This is also illegal syntax:
int doB() {
A r = new A();
r.a; // error: not a statement
}Again, all "r.a" does on its own is access a field and do nothing with it -- a "noop". Since it has no effect, writing this indicates confusion on the part of the coder, so it classified as a syntax error. There is no reason to write that. -
Often when I click a link within a web page, a message bar appears at the top of the page saying "Firefox has blocked this site from loading another page" or something similar. This happens frequently on banking or credit card sites. This is particularly annoying because it seems to disturb the operation of the link when I have to click the "Allow" box on the message bar. I would prefer to create a whitelist for this feature so it would not interrupt my banking operations. Failing that, I would like to know how to toggle the feature on and off. Failing that, I would like to know how to defeat the function.
See:
*Firefox > Options/Preferences > Advanced > General : Accessibility : [ ] "Warn me when web sites try to redirect or reload the page"
The setting in "Options > Advanced > General" is meant as an accessibility feature, as you can see by the label of that section, so that people with disabilities or people who use screen readers do not get confused and is not meant as a safety protection to stop redirecting.
See also:
*https://support.mozilla.org/kb/settings-network-updates-and-encryption#w_general-tab
*http://kb.mozillazine.org/accessibility.blockautorefresh
*http://kb.mozillazine.org/Accessibility_features_of_Firefox -
Clear loaded pictures in xml gallery to load another set
i cannot figure how to unload my already populated xml gallery, before loading new content :
here the functions i want :
//following 2 functions will be called by a button :
// removes previously placed objects
function clearLoadedPictures():void {
// Load another ,xml to load new pictures set - ok : works fine
function LoadNewPictures():void {
i_g = 0;
// xml data
var xml_gallery:XML = new XML();
var xml_gallery_List:XMLList = new XMLList;
// XML data loader...
var xmlUrlReq:URLRequest = new URLRequest("xml/gallery2.xml");// gallery2.xml will replace gallery.xml already loaded
var xml_gallery_UrlLoader:URLLoader = new URLLoader(xmlUrlReq);
xml_gallery_UrlLoader.addEventListener(Event.COMPLETE, xml_gallery_Complete);
xml_gallery_UrlLoader.addEventListener(IOErrorEvent.IO_ERROR, xml_gallery_LoadFailed);
here the xml gallery code :
var _mc:item;
var total:int;
var i_g:int;
var id:int;
var btn_Gallery_Ready:Boolean;
var speedX:Number;
var spaceR:Number;
var img_gallery_Loader:Loader;
i_g = 0;
// xml data
var xml_gallery:XML = new XML();
var xml_gallery_List:XMLList = new XMLList;
// XML data loader...
var xmlUrlReq:URLRequest = new URLRequest("xml/gallery.xml");
var xml_gallery_UrlLoader:URLLoader = new URLLoader(xmlUrlReq);
xml_gallery_UrlLoader.addEventListener(Event.COMPLETE, xml_gallery_Complete);
xml_gallery_UrlLoader.addEventListener(IOErrorEvent.IO_ERROR, xml_gallery_LoadFailed);
bottom24.gallery.content_mc.addEventListener(MouseEvent.ROLL_OVER, startScroll);
bottom24.gallery.content_mc.addEventListener(MouseEvent.ROLL_OUT, stopScroll); //
// xmlComplete function
function xml_gallery_Complete(e:Event):void
xml_gallery = XML(e.target.data); //
xml_gallery_List = xml_gallery.item; // <item> in gallery.xml
total = xml_gallery_List.length();
spaceR = xml_gallery.attribute("space"); // specified in gallery.xml file as is : <gallery space="119" speed="0.2">
speedX = xml_gallery.attribute("speed");
init_gallery();
function xml_gallery_LoadFailed(e:IOErrorEvent):void {
trace("Load Failed: " + e);
function init_gallery() //
//bottom.gallery.content_mc.itemHolder_mc.
_mc = new item(); //
_mc.alpha = 0;
//_mc.imgMask_mc.scaleY = 0; // condition pour apparition des timbres ds la gallery - OLD
_mc.imgMask_mc.alpha = 0; // condition pour apparition des timbres ds la gallery - NEW
_mc.x = i_g * spaceR;
_mc.btn.id = i_g;
_mc.btn.mouseChildren = false;
bottom24.gallery.content_mc.itemHolder_mc.addChild(_mc);
Tweener.addTween(_mc, {alpha:1, time:0.8, transition:"easeOutExpo"});
_mc.online_mc.alpha = 0; //invisible sans roll over
if (xml_gallery_List[i_g].url != "")
_mc.btn.buttonMode = true;
_mc.online_mc.visible = true;
btn_Gallery_Ready = true;
else
_mc.btn.buttonMode = false;
_mc.online_mc.visible = false;
btn_Gallery_Ready = false;
var imgRequest:URLRequest = new URLRequest (xml_gallery_List[i_g].image); //
img_gallery_Loader = new Loader(); // var imgLoader:Loader;
img_gallery_Loader.load(imgRequest); //
img_gallery_Loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, imgLoading);
img_gallery_Loader.contentLoaderInfo.addEventListener(Event.COMPLETE, img_gallery_Complete);
i_g++;
function imgLoading(event:ProgressEvent):void // tiny preloader in bottom thumbs pics
_mc.preloader_mc.width = Math.round(img_gallery_Loader.contentLoaderInfo.bytesLoaded / img_gallery_Loader.contentLoaderInfo.bytesTotal * 100);
function img_gallery_Complete(event:Event):void
_mc.imgHolder_mc.addChild(img_gallery_Loader);
Tweener.addTween(_mc.imgHolder_mc, {_saturation:0.9, time:0.6});// desaturate scrolling thumbs
//_mc.imgHolder_mc.alpha = 0.5; // test
// apparition des timbres ds la gallery, ici fade in : - NEW
Tweener.addTween(_mc.imgMask_mc, {"alpha":1, delay:i_g / 20, time:0.4, transition:"easeOutExpo"});// test
// apparition des timbres ds la gallery, ici image apparait de haut en bas : - OLD
//Tweener.addTween(_mc.imgMask_mc, {"scaleY":1, delay:i_g / 10, time:1, transition:"easeOutExpo"});
// la ligne de preloader qui diminue vers la gauche :
Tweener.addTween(_mc.preloader_mc, {"scaleX":0, delay:0, time:1, transition:"easeOutExpo"});
_mc.btn.addEventListener(MouseEvent.ROLL_OVER, onMouseOver);
_mc.btn.addEventListener(MouseEvent.ROLL_OUT, onMouseOut);
_mc.btn.addEventListener(MouseEvent.CLICK, onMouseClick);
if (i_g < total)
init_gallery();
thankshi,
back to work,
then i used a loop in the first clear function:
var n:int = 0;
while (n < xml_gallery_List.length() -1) {
bottom24.gallery.content_mc.itemHolder_mc.removeChildAt(n); //
i++;
and it remove all my previously loaded pictures,but it throw me an error :
RangeError: Error #2006: The supplied index is out of bounds.
at flash.display: DisplayObjectContainer/removeChildAt()
it seems error come from the removeChildAt, but i can't figure out what's wrong
i've tried to replace removeChildAt(n); by removeChild(n); and the loop crash Flash software....
any suggestion ?
Maybe you are looking for
-
From alv to standard transaction
Hi, Iam using alv hiereracy for a report. say i have a material field in header if i double click can i take me to mmo3 . if yes pls let me know how to proceed with this thanks swathi
-
Uninstalling Extension that won't go away
I have Dreamweaver 8 and installed Indigo Help Publisher for Dreamweaver to try it out. After evaluating it, I uninstalled it, but it didn't completely uninstall. I've reinstalled and uninstalled it several times to no avail. When I start DW, I get t
-
2013 Mac version 10.10 memory issue
Hey all, not enough free disk space? I got my mac w/ the 8GB memory almost full... I can't really save/download anything anymore. How can I use the space in the storage which is nearly 1TB... I clearly have room for stuff on there (?) Thanks... rooki
-
I somehow got a screen on my IPhone with my daily calander and weather. How do I access this screen and can I make it my default.
-
Podcast episode not updated on itunes
I uploaded a new episode to posterous however iTunes has not updated my episode and still has not refreshed my cover art. Here is my feed http://mysemeneya.posterous.com/rss.xml Feed Address: http://feeds.feedburner.com/ MySemeneyaPodcast Please