PDA

View Full Version : open flash file in project



hamedheydari
08-03-2009, 05:10 AM
hello
in my project , there was 10- 20 flash file with different size And one "flash object".( for example one of Flash File is 800*600 , another 500*300 , or 1024 * 768 and ...)
i need , when flash file loaded,size of "flash object" set to flash file size ....
Who can help me?

mystica
08-03-2009, 05:05 PM
Specify the size of each flash-file (not the page-object), from FlashPropertiesTables in Globals (one table for each flash-file), and then call the files with a PageCreateObject command on the PageShowEvent. (Example attached).

hamedheydari
08-05-2009, 01:01 AM
thanx a lot
but this is open flash by create object with manual size.
i have 1000 flash and not enter manual size.i need resize it to default size by set machine....
help me please

longedge
08-05-2009, 02:32 AM
in my project , there was 10- 20 flash file

i have 1000 flash

Seems like they are reproducing :)

Would it be an option for you to open them 'externally' (in which case the files will open at their default size) using -


File.Open("AutoPlay\\Flash\\filename.swf", "", SW_SHOWNORMAL);.

hamedheydari
08-05-2009, 03:22 AM
oh , no
i need to open defualt size flash in flash object ...

longedge
08-05-2009, 04:21 AM
oh , no
i need to open defualt size flash in flash object ...

Then you need to specify the size and position as they are opened.

longedge
08-05-2009, 06:06 AM
Just as a matter of interest, why not just use one size for all. The vector format makes flash particularly useful when re-sizing.

hamedheydari
08-05-2009, 08:56 AM
thank you "longedge"
i coulden't import my flash in your project
this 3 flash open by default size
i attach 2 flash and 1 project
did you help me ? ???

hamedheydari
08-05-2009, 09:22 AM
i upload one project
i put a flash in main page to show what is out off default size
an in page 2 put 1 flash to show how to change size manually . i need change it automatic for 500 swf file ...

longedge
08-05-2009, 11:59 AM
thank you "longedge"
i coulden't import my flash in your project
this 3 flash open by default size
i attach 2 flash and 1 project
did you help me ? ???

I did not intend the example for you to import your own files.

It was meant to show that re-sizing a flash object is very easy and works very well no matter what the size of the original. The 3 included files are 100x100, 200x200 and 300x300 but you can re-size the smallest to lbe larger than the largest and it remains perfectly acceptable.

Admittedly there are exceptions but but generally speaking you can choose a middle setting in terms of width and height for the flash object and then import all sizes into it.

p.s. - I don't see any attachement with your posts.

hamedheydari
08-06-2009, 01:22 AM
http://rapidshare.com/files/264049495/-flash-.apz

cellsclinic
02-20-2010, 10:14 AM
it,s amazing