Dynamic images? Help greatly Appriciated!
I've searched the web for quite a while now, and cannot find
a definate answer to my problem.
I'm trying to dynamically load about 10 images into their own
movie clips, all of which will be on the screen at the same time.
It needs to be dynamic because the images will be changed
often.
I've tried "loadMovie" and am using the origonal flash mx,
version 6, so i have no loader component, which i think makes this
much easier.
I've searched this forum and havent found anything that seems
to work.
If someone would help me it would be great! I'm trying to get
a web site done and this has got me baffeled.
Thanks, and I greatly appriciate any help!
using enterFrame is even worse. loadFrame won't do anything
so there's no harm and no benefit.
the onEnterFrame() method is a loop. i know it sounds like it
should execute once when the play head enters a frame but that's
not what it does. it repeatedly executes fps times per second where
fps is your _level0 frame rate.
so, that bit of code will put a hit on a user's cpu with no
benefit because the loading can never really get much beyond
starting when it's re-started.
like i said in my above message, if you want to execute that
loadMovie() statement when the playhead enters the frame that
contains your loadMovie() statement, just use the code i gave
above, attached to the frame.
Similar Messages
-
When I reboot my iMac I'll get hard disk selection instead of fast login and I am not using boot camp! Any help is greatly appriciated!
Have you selected which disk you want to boot from? In System Preferences, click startup disk and choose the drive you want as your default boot drive.
-
Maybe someone can help me, it would be greatly appriciated. The first Apple ID I created was fine,until I entered a credit card with a low balance. Now I can't upgrade apps, or even d/l free apps.
Contact iTunes store support and pay what you owe.
-
Hi,
I want to create Badges from employee table (ID, NAME, JOB_TITLE, PHOTO). I downloaded and installed a demo application "USING DYNAMIC IMAGES IN PDF REPORT". It works fine with smale images < 20K. I'm getting the following error for images > 20K :
"ORA-06502: PL/SQL: numeric or value error: raw variable length too long"
it seems like a buffer problem.
could you pls help to solve this problem
Thanks,
RibhiHi Carsten
That was exactly* I was looking for. Maybe I should Google more in German ;-)
The main problem was that I defined my image outside the first repeating group (that doesn't repeat, it's always just one object) - the first group is followed by 7 more.
Just like the "Name" (that's positioned outside the group in the document header), I positioned the image above the table representing the group.
Doing that, the "Name" is filled correctly, the Image only when the Output Format is Excel or HTML - not Word or PDF ... makes no sense but that's tje way it is.
After moving the image inside the group....it works great!
(One more thing...the image size is fixed to the image you use as "dummy". Is there any way to make that more flexible, because now some scaling happens...)???
@Trent: That was the way we initially did it, but when the size of the row exceeds 32K...you know what happens.. And even with a small image the 32K limit is hit easily
The way I use it now (very similar to Carsten's description) there is no limit....
Thank you all!
Roel -
Dynamic Images in PDF and Escaping Special Characters
I used the following to create my own PDFs with dymnamic images:
http://marcsewtz.blogspot.com/2012_02_01_archive.html (Dynamic Images in PDF - What 32k Limit? )
I have installed this application on Oracle's free workspace to test.
The issue I am having is that when there is a special character in the description, such as <>'"& then the the PDF will not open. I have tried using the dmbs_xmlgen.convert to convert the description but haven't had any luck.
I'm a complete novice with xml. Any help with this is greatly appreciated.
Thanks,
GlenI have been able to find a solution, but it's not completely perfect. I have changed the "description" field as follows:
XMLCdata(replace(description,''&'',''and'')) description,
The characters greater than (>), less than (<), single qoute('), and double quote (") can now all be in the description and will not cause errors. For some reason, I couldn't get the & not to give an error no matter what I tried, so I just replaced the & with the word "and". This solution will work for my needs, but it would be nice to be able to get the & to display.
Does anyone know of a way to get the & to display correctly?
Thanks again,
Glen
The complete code I am using is below:
declare
l_print_layout clob;
l_xml_data clob;
begin
-- load print layout from database
for c1 in (
select layout from eba_pdfimg_layouts where id = :P1_LAYOUT
) loop
l_print_layout := wwv_flow_utilities.blob_to_clob(c1.layout );
end loop;
-- generate XML data
for c2 in (
select dbms_xmlgen.getxml('
select
id,
file_name,
mime_type,
XMLCdata(replace(description,''&'',''and'')) description,
-- description,
blob2clobase64(image,''Y'') image
from eba_pdfimg_images
') xml_data from dual
) loop
l_xml_data := c2.xml_data;
end loop;
-- download print document
wwv_flow.g_page_text_generated := true;
apex_util.download_print_document (
p_file_name => 'image_demo',
p_content_disposition => 'ATTACHMENT',
p_report_data => l_xml_data ,
p_report_layout => l_print_layout,
p_report_layout_type => 'rtf',
p_document_format => :P1_FORMAT
end; -
I have dipped in almost every search engine and this site to
locate some easier way to create dynamic image gallery in Flash 8
AS2 using ASP (as i am conversant with ASP only, although i found
many sites suggesting PHP and XML). I'd be very greatful to u all
if u could provide me some help in this part of my project.
I have tried this source also but neither the source throw
any error nor it displays the images, what could be wrong with the
source? Please Please Please Please Please Help me!!!!!!!!
this.createClassObject(mx.containers.ScrollPane,
"scroller_sp", 10);
scroller_sp. setSize (100, 300);
swfThumbs=["imgs/img1.jpg","imgs/img2.jpg","imgs/img3.jpg"]
this.createEmptyMovieClip("clipLoader",1);
for(i=0;i< swfThumbs.length;i++){
clipLoader.createEmptyMovieClip("clip"+i+"_mc",i)
clipLoader.attachMovie("clip"+i+"_mc","clip"+i+"_mc",i+10);
clipLoader.loadMovieNum(swfThumbs
,i+100);
scroller_sp.contentPath = clipLoader;
thanks in anticipation and regards
raajaindraHi,
I have a picture show.
It creates its own folder when you first upload images with
the integrated Image uploader. Then it loads the images in with
ASP.
Have a look at
http://netwings.info
- click the B1 Image-show.
When you are interested, the contact is at the site.
Regards,
Luciewong -
Dynamic Images Scroller - Almost Finished
Ciao Guys,
I am developing a Dynamic Images Scroller , It is almost
finished (even if it is still a bit rough)
Since I am a self-taught coder, I had to build the whole
project using different tutorials.
The scroller is XML driven and display the images which move
from left to right. When one of the images is clicked:
The scrolling STOPS.
The image clicked is enlarged
And the other pictures are scaled and faded away.
(No problem up to this point)
Then once the Enlarged picture is clicked again everything
should come back to the initial status.
My issue is that I haven’t be able to
“restart” the function which move the images along the
stage.
Once the enlarge image is clicked I delete the function which
scroll the image but How I should lunch it again?
Here is my messy code, Please help me and I’ll buy you
a beer when you are in London.
I am using AS2 and flash player 8Hi Carsten
That was exactly* I was looking for. Maybe I should Google more in German ;-)
The main problem was that I defined my image outside the first repeating group (that doesn't repeat, it's always just one object) - the first group is followed by 7 more.
Just like the "Name" (that's positioned outside the group in the document header), I positioned the image above the table representing the group.
Doing that, the "Name" is filled correctly, the Image only when the Output Format is Excel or HTML - not Word or PDF ... makes no sense but that's tje way it is.
After moving the image inside the group....it works great!
(One more thing...the image size is fixed to the image you use as "dummy". Is there any way to make that more flexible, because now some scaling happens...)???
@Trent: That was the way we initially did it, but when the size of the row exceeds 32K...you know what happens.. And even with a small image the 32K limit is hit easily
The way I use it now (very similar to Carsten's description) there is no limit....
Thank you all!
Roel -
Sever Newbie wants to try his hand with Dynamic Images
First off, I am a new Flash8 user (less than 3 months).
I've read a lot of posts on how to create a SWF using Dynamic
Images, but to tell you the truth...I can't seem to figure it out.
I'd like to recreate the following SWF using my own data as
this particular link <
http://www.respectsoft.com/weatherclock/get-weather.php>
is not always reliable.
I've read that you must convert each image into a movie and
then load that movie using the loadmovie. I can PROBABLY figure
that part out, but I've tried creating a FLA and inserting a MOVIE
image but nothing happens.
Like I said, I am about as green as they come, but we all
have to start somewhere.
Any tips / help / links would be GREATLY appreciated.
KenHi Lon,
I tried your suggestion, but it only works locally. When I
try it out on the Web, it doesn't work. I believe the reason why is
that I am trying to load a SWF from another website. Since SWF's
can't execute calls necessary to build the dynamic images...nothing
appears.
Is there a way around this?
Thanks again,
Ken
I load the following into a local SWF called "weather.swf" on
my website.
var myClip_mc:MovieClip =
this.createEmptyMovieClip("myClip_mc", this.getNextHighestDepth());
myClip_mc.loadMovie("
http://www.respectsoft.com/weatherclock/forecast.swf");
myClip_mc._x = 100;
myClip_mc._y = 100;
In the HTML of my webpage I have
<p align="center"><embed title="What will the
weather be for your visit?" src="/Public/weather.swf"
quality="high" wmode="transparent" bgcolor="#CC00CC" width="400"
height="170" align="middle" type="application/x-shockwave-flash"
pluginspage="
http://www.macromedia.com/go/getflashplayer"
/><br>
</p> -
How to display a dynamic image file from url?
Hey,I want to display a dynamic image file from url in applet.For example,a jpg file which from one video camera server,store one frame pictur for ever.My java file looks like here:
//PlayJpg.java:
import java.awt.*;
import java.applet.*;
import java.net.*;
public class PlayJpg extends Applet implements Runnable {
public static void main(String args[]) {
Frame F=new Frame("My Applet/Application Window");
F.setSize(480, 240);
PlayJpg A = new PlayJpg();
F.add(A);
A.start(); // Web browser calls start() automatically
// A.init(); - we skip calling it this time
// because it contains only Applet specific tasks.
F.setVisible(true);
Thread count = null;
String urlStr = null;
int sleepTime = 0;
Image image = null;
// called only for an applet - unless called explicitely by an appliaction
public void init() {
sleepTime = Integer.parseInt(getParameter("refreshTime"));
urlStr = getParameter("jpgFile");
// called only for an applet - unless called explicitely by an appliaction
public void start() {
count=(new Thread(this));
count.start();
// called only for applet when the browser leaves the web page
public void stop() {
count=null;
public void paint(Graphics g) {
try{
URL location=new URL(urlStr);
image = getToolkit().getImage(location);
}catch (MalformedURLException mue) {
showStatus (mue.toString());
}catch(Exception e){
System.out.println("Sorry. System Caught Exception in paint().");
System.out.println("e.getMessage():" + e.getMessage());
System.out.println("e.toString():" + e.toString());
System.out.println("e.printStackTrace():" );
e.printStackTrace();
if (image!=null) g.drawImage(image,1,1,320,240,this);
// called each time the display needs to be repainted
public void run() {
while (count==Thread.currentThread()) {
try {
Thread.currentThread().sleep(sleepTime*1000);
} catch(Exception e) {}
repaint(); // forces update of the screen
// end of PlayJpg.java
My Html file looks like here:
<html>
<applet code="PlayJpg.class" width=320 height=240>
<param name=jpgFile value="http://Localhost/playjpg/snapshot0.jpg">
<param name=refreshTime value="1">
</applet>
</html>
I only get the first frame picture for ever by my html.But the jpg file is dynamic.
Why?
Can you help me?
Thanks.
JoeHi,
Add this line inside your run() method, right before your call to repaint():
if (image != null) {image.flush();}Hope this helps,
Kurt. -
How do get a dynamic image to open in new browser window
I'm using DW CS3, mysql (MAMP) OS 10.6.2 I'm designing my online store. I need the customer to be able to click dynamic image/thumbnails to view a larger image in a new browser pop up window 400 x 400. An example of this functionality can be seen at :
http://www.designpublic.com/spot-on-square-roh-dresser
So far I can get the separate new browser window to open with the dynamic image, using the open new browser behavior, but the on click also advances to next page with the larger image. You have to press the back button to get back to the product page. I want the customer to be able to see the product page , while viewing larger image, and then close larger image, and still have the product page open. I don't understand why 2 windows are opening.
Thanks for the help people!
WilliamHi
I did look at it but, (and this is only my opinion, I do not like such effects) it is your decision.
If you view source you will see -
<a href="#" onclick="popWin('http://www.designpublic.com/catalog/product/gallery/id/12706/image/91883/', 'gallery', 'width=300,height=300,left=50,top=50,location=no,status=yes,scrollbars=yes,resizable=yes'); return false;" title="Spot on Square Roh Dresser" class="gallery-image-link"><img src="http://arcsmedia01.s3.amazonaws.com/catalog/product/cache/2/thumbnail/56x56/5e06319eda06f020e43594a9c230972d/r/o/roh_dresser1.jpg" alt="" /></a>
Which is controlled by the javascript function
popWin()
which you can view using the firefoxe dev toolbar - view javascript function.
PZ -
Showing dynamic images in BI Publisher PDF report
I defined a RTF report layout in BI Publisher. Almost done, but one requirement missing...
I should be able to include a dynamic image (so every "object" on the report has it's own image).
At first I embedded the base64 converted image in the XML output, but then I am running into the 32K limit. (Small pictures render fine).
Although Marc Sewtz sort of promised in June 2008 (!) : "One issue, which we'll address in the next version of Application Express, is the 32k limit on report columns." on his blogpost http://marcsewtz.blogspot.com/2008/06/one-question-about-pdf-printing-feature.html , it still not addressed.
So I tried to embed the image in the report using a trick described on the forum (and BIP documentation), by embedding a dummy picture and set the "Alt-text" of the picture to
(as an example) : url:{'http://www.oracleimg.com/us/assets/oralogo-small.gif'}.
The strange thing is, that works fine for HTML Output and Excel output, but not for Word and PDF (why it does work for Excel and not for Word is very mysterious....). And of course I need a PDF output.
I also tried to embed a FO snippet:
<fo:block>
<fo:external-graphic src="url:{'http://www.oracleimg.com/us/assets/oralogo-small.gif'}" />
</fo:block>
But that doesn't (seem to) work on any output...
But
<fo:block>
<fo:external-graphic src="D:\Users\rhartman\Documents\PrintScreen Files\Screenshot004.jpg" />
</fo:block>
does produce the image on the PDF output.
So who has an idea how to solve this issue?? You'll be rewarded with a lot of pionts ;-)
TIA
RoelHi Carsten
That was exactly* I was looking for. Maybe I should Google more in German ;-)
The main problem was that I defined my image outside the first repeating group (that doesn't repeat, it's always just one object) - the first group is followed by 7 more.
Just like the "Name" (that's positioned outside the group in the document header), I positioned the image above the table representing the group.
Doing that, the "Name" is filled correctly, the Image only when the Output Format is Excel or HTML - not Word or PDF ... makes no sense but that's tje way it is.
After moving the image inside the group....it works great!
(One more thing...the image size is fixed to the image you use as "dummy". Is there any way to make that more flexible, because now some scaling happens...)???
@Trent: That was the way we initially did it, but when the size of the row exceeds 32K...you know what happens.. And even with a small image the 32K limit is hit easily
The way I use it now (very similar to Carsten's description) there is no limit....
Thank you all!
Roel -
Not able to display a dynamic image
I'm not able to display a dynamic image on Adobe print form.
Here is what I did.
Please let me know what I need to do to get this working...
1. Created a Graphics node in the Context of the Adobe form.
2. In the URL tab of the graphics node defined the following two lines:
<URL pointing to the MIME repository folder>
IM_FILENAME_1
Where IM_FILENAME_1 is being passed to the Adobeform function module.
3. In the Layout mode, dragged and dropped the Graphics node from the
contenxt tab to the form layout. On doing so it appears as a image field in the form layout.
4. Activated the form.
BUT, when I run the form , the image is not showing up.
The idea is to pass the image file name to the form so that it will show up a dynamic image at run time.
PLEASE HELP.Hi Atul,
Try this, that should work.
In the interface , define a parameter type string where you will store the URL of the image .
In the initialization part of the interface , check if the URL is defined, in case it's empty define a default URL . You should put the compelte URL of the image like "http://www.company.org:8080/logo.logo.jpg" .
Then link this parameter to the Grpahic Node in the URL parameters .
Let me know if that works -
Hello All!
I am creating a dynamic image gallery, but when my external
images load in the empty movie clip, all the images are loading in
the same size/dimension. Does anyone know how I can command the MC
to load the images in different sizes, another words - to load them
according to its own size?
here's the AS
onClipEvent (load)
function imageMove()
var _loc1 = this;
for (i = 1; i <= num_of_image; i++)
mc = _loc1["image" + i];
if (i < hit)
tempx = small * (i - 1) + 30;
temps = small - 5;
mc.useHandCursor = true;
else if (i > hit)
tempx = big + small * (i - 2) + 30;
temps = small - 5;
mc.useHandCursor = true;
else
tempx = small * (i - 1) + 150; //distance of how far out the
displayed image jumps.
temps = big - 5; //distance between the displayed image and
thumbnails.
mc.swapDepths(1000);
display = txt
mc.useHandCursor = false;
} // end else if
mc._x = mc._x + (tempx - mc._x) / 3; //number of pixals on
x-axis the displayed image moves over to right side before growing
big.
mc._width = mc._width + (temps - mc._width) / 3; //number of
pixals on x-axis the displayed image moves over to left side before
growing big.
mc._height = mc._width * 4 / 3;
if (Math.abs(mc._width - temps) <= 1)
title._x = hit < 5 ? (_loc1["image" + hit]._x + big / 2) :
(_loc1["image" + hit]._x - big / 2 - 100);
title._y = 100;
} // end if
} // end of for
} // End of the function
function loopHye()
if (hit != num_of_image)
++_global.hit;
else
_global.hit = 1;
} // end else if
} // End of the function
getURL("FSCommand:allowscale", false);
big = 300;
//Large image width (400 works best for my portfolio site)
small = 60;//Small image width (40 works well for my
portfolio site)
num_of_image = 8;//Total number of images
timeGap = none;//Speed (speed of gaptime when each image is
displayed automatically. "2000" is default of this original file.
larger the number the slower the image changes. (type in "none"
will stop automatic images from changing.
_global.hit = 0;//First displyed image number (type "0" to
stop images from growing out)
txt = [" ", "image1", "image2", "image3", "image4", "image5",
"image6", "image7", "image8"];//insert text of each images between
for (i = 1; i <= num_of_image; i++)
attachMovie("image", "image" + i, i);
loadMovie("image/" + i + ".jpg", this["image" +
i].tar);//image folder path
mc = this["image" + i];
mc._x = small * (i - 1) + 30;
mc._y = 200; //where on the axis should the displays be.
mc._width = small - 5;
mc._height = mc._width * 4 / 3;
this["image" + i].onRelease = function ()
clearInterval(interval);
_global.hit = this._name.substr(5);
interval = setInterval(loopHye, timeGap);
} // end of for
interval = setInterval(loopHye, timeGap);
onClipEvent (enterFrame)
imageMove();
check out the file
http://www.wendiland.com/Gallery122b.fla
this is what the current gallery looks like
http://www.wendiland.com/print2.html
I'd appreciated if someone replies with any sort of
suggestions! thanks in advance!!!
- W£NDIif you google with "dynamic image gallery", you'll find a lot
of
tutorials & examples including pre-programmed solutions
if you prefer to do it yourself, you need to deal with
dynamic sites. DW
help chapters Preparing to Build Dynamic Sites, Making Pages
Dynamic &
Developing Applications Rapidly can also help to understand
in fact you don't need a database, the images can be read
from the
folder they're stored. that way to update a gallery you only
need to
remove/replace/add images. one folder for each gallery
and the application development forum is best suited for your
question
BTW, some nice photos in your page
hth,
jdoe
uvi wrote:
> I'm trying to create a dynamic image gallery that is
updated from a database, i
> managed to create a simple mysql database
> using phpmy admin, so I could update my image gallery
more often, I saw
> something that I like but I have no idea how to create
it here is the example:
>
http://flight001.com/store/trip.htm?itemid=307&sid=201&page=2
> I didnt manage to create this with dynamic table from
within dreamweaver 8,
> maybe I just don't know how,
> this is the link to a gallery on my website:
>
http://www.yuvallavy.com/work/scenic/scenic.htm.
I need all the help I can get
> I'm using dreamweaver 8 on a Mac and using PHP/MySql
server model.
> -
Hello All,
I have a requirement for dynamic images on Adobe form.
I have some images stored on portal server in a afolder called images which gets upadeted every hour . I have developed a java webservice which can get this images from the portal server.
The reponse of the webservice is like " http://<Hostname>:<portnumner>/images/abc.png". I have impoted this webservice as Adaptive webservice model in WD.
I have executed this webservice in WD and binded the response to IFRAME UI element and I am able to images(http://<Hostname>:<portnumner>/images/abc.png).
Now I want these images to be on the PDF.
I have installed and configurred ADS and binded the Webservice response as Datasource to the intercative form. I am able to see the datasourcse in the data view of the interactive form.
Now when I bind the response to the Image Field UI element I am unable to see the image.
Please let me know if anyone has any idea on this.
Thanks,Hi Naresh,
It's an issue with ADS. Exactly not an issue but a requirement. The server on which images are available, has to be exposed to ADS.
Your Admin might help you on that.
Regards,
SV. -
Dynamic images display issues in FF and Opera
Dreamweaver 8
http://daylily.net/polytepals/results.asp?CultivarName=Carolina%20Octopus
Can someone please help me correct the following problem. The
dynamic image
on this page displays properly in Explorer but it will not
display in Opera
or Firefox. It works correctly in Netscape when Netscape is
set to display
as Explorer.
This is affecting all my dynamic images.
Thank you,
Bobby<img src="\polytepals\PolyPhoto\carolina_octopus.jpg">
there are no backslashes in urls.
<img src="/polytepals/PolyPhoto/carolina_octopus.jpg">
Alan
Adobe Community Expert, dreamweaver
http://www.adobe.com/communities/experts/
Maybe you are looking for
-
Post Goods Receipt before putaway
Hi Experts, We're planning to implement SAP WM of SAP ECC 6.0. We're using inbound delivery for our goods receiving into the warehouse. The process steps that I found out from the SAP document is as follows: 1. Create inbound delivery 2. Pack if
-
Is it possible to create a forum in flash??
I'm creating a flash website and is this possible without using any kind of server side language, if so how do you do it, if not how do i integrate my code in my flash? tnx in advance...
-
Webi authorization for drill down
Hi all, we have made a report based on bex query with BW hierarchy. Our users can acces the correct hierarchy node (based on authorization in bw) but they cant drill down the data even when there is a "+" sign next to the hierarchy node. Can someone
-
Link speed on 2602 in Bridge mode
Hi I need to create a number of bridges on a installation, where i need to use some exsisting 5GHZ antennas I can only connect one 5Ghz antenna on each Access-point. What is the Max link speed then using a single Antenna - in the best signal senario?
-
Please point me to the right tutorial?
Hi all and thank you so long for your help. I have attended an "Invitation" thing presented by Nikon and Adobe yesterday. Adobe had a very clver guy there who worked so fast in his presentation, that it was impossible to neither take notes nor fol